API REST BFA Scan [GET]


  
    

Método getBlocks

Retorna la información de los últimos 10 bloques creados en la BFA.

URL: http://201.190.142.76/bfascan/Blocks/getBlocks

Ejemplo de respuesta:

[{"hash":"0xf9371a1ec8f1b1c9b35a49b76ef2d9f6b66afa60936b93627640866a943aabb5","timeStamp":"1559326852","number":"4225029","transactions_associated":"0"},{"hash":"0xd23581aab7a9c8412b6f90255971ae148c45e4e74f798a6189f790b9135f436c","timeStamp":"1559326847","number":"4225028","transactions_associated":"0"} ...]

Método getBlocks/[HASH]

Retorna la información de un bloque.

URL: http://201.190.142.76/bfascan/Blocks/getBlocks/[HASH]

Ejemplo de respuesta:

[{"hash":"0x48891f2bdea48025782212c2b12f03f205e9353f539434b72f08a0673da285c5","from":"0xac952ae0716e8aded07dda498f182f4983af682a","to":"0x7cbf323520d6fda0858b85dc357db6143fbe997b","blockNumber":"4225180","blockHash":"0x2384c401469b0e7c84200d4461dd2716e52c9309db2f94b8a81c7b82c0da5df1","timestamp":"1559327607"},{"hash":"0xefe3655007b2c58c1d946f3bd19ddb0ebf4003d89da7398d9bc6303cce3834e3","from":"0xac952ae0716e8aded07dda498f182f4983af682a","to":"0x7cbf323520d6fda0858b85dc357db6143fbe997b","blockNumber":"4225157","blockHash":"0x0d9c5ba61031d2c1f0fe2ec149c0f8b1f99815385db55cf687d55164e1dd3542","timestamp":"1559327492"} ...]   
  
    

Método getTxs

Retorna la información de las últimas 10 transacciones creadas en la BFA.

URL: http://201.190.142.76/bfascan/transactions/getTxs

Ejemplo de respuesta:

[{"hash":"0x16cce7a11a88328b8006c830386a372c8bbb904065fe68fa53c960a9c0664aea","from":"0xac952ae0716e8aded07dda498f182f4983af682a","to":"0x7cbf323520d6fda0858b85dc357db6143fbe997b","blockNumber":"4225203","blockHash":"0x875a2409009d69fdfdc45991d625d0b771af493c81ef5131ceeb0e829e7ffb2d","timestamp":"1559327722"},{"hash":"0x48891f2bdea48025782212c2b12f03f205e9353f539434b72f08a0673da285c5","from":"0xac952ae0716e8aded07dda498f182f4983af682a","to":"0x7cbf323520d6fda0858b85dc357db6143fbe997b","blockNumber":"4225180","blockHash":"0x2384c401469b0e7c84200d4461dd2716e52c9309db2f94b8a81c7b82c0da5df1","timestamp":"1559327607"}, ...]

Método getTxs/[HASH]

Retorna la información de una transacción.

URL: http://201.190.142.76/bfascan/transactions/getTxs/[HASH]

Ejemplo de respuesta:

[{"transactions":{"hash":"0x16cce7a11a88328b8006c830386a372c8bbb904065fe68fa53c960a9c0664aea","blockHash":"0x875a2409009d69fdfdc45991d625d0b771af493c81ef5131ceeb0e829e7ffb2d","blockNumber":"4225203","from":"0xac952ae0716e8aded07dda498f182f4983af682a","gas":"250000","gasPrice":"1","input":null,"nonce":"327748","r":"0x4d4d6582e853871d5cd6f7b56772b56141011fc7ac4a698a43ff44e6785987e7","s":"0x4d7fb06cc82a0e4c3442034295e49c43cc3864f7b82a21a88e1c900915fa1a00","to":"0x7cbf323520d6fda0858b85dc357db6143fbe997b","transactionIndex":"0","v":"0x17f44054","value":"0","created":"2019-05-31 15:35:25","modified":"2019-05-31 15:35:25","timestamp":"1559327722"}}]
>

Método getTxsByAddress/[HASH]

Retorna la información de todas las Transacciones del Address pasado por parámetro.

URL: http://201.190.142.76/bfascan/transactions/getTxsByAddress/[HASH]

Ejemplo de respuesta:

[{"transactions":[{"hash":"0xb485a0e0ecb01af4bea2ac27e3f4af442f43656e905a3372d74ebc8fd78a2870","blockHash":"0xe81f70415975f8ac8396994d605cec5f5d19ed1bb5ac6ebdc16d60334a8d4b60","blockNumber":"4225295","from":"0xac952ae0716e8aded07dda498f182f4983af682a","gas":"250000","gasPrice":"1","input":null,"nonce":"327790","r":"0x2acbd82ddfd7289757da1fe30f51da5d83ef934efbd3ad817fe9b822916f7164","s":"0x519ee690ac0f64ab0f75a001855078b9e1e68f4457feef77a8a249cfc19cfe6","to":"0x7cbf323520d6fda0858b85dc357db6143fbe997b","transactionIndex":"15","v":"0x17f44053","value":"0","created":"2019-05-31 15:43:07","modified":"2019-05-31 15:43:07","timestamp":"0x5cf175b6"} ...]}]

Método getTxsByBlock/[HASH]

Retorna la información de todas las Transacciones del Bloque pasado por parámetro.

URL: http://201.190.142.76/bfascan/transactions/getTxsByBlock/[HASH]

Ejemplo de respuesta:

[{"transactions":[{"hash":"0xb485a0e0ecb01af4bea2ac27e3f4af442f43656e905a3372d74ebc8fd78a2870","blockHash":"0xe81f70415975f8ac8396994d605cec5f5d19ed1bb5ac6ebdc16d60334a8d4b60","blockNumber":"4225295","from":"0xac952ae0716e8aded07dda498f182f4983af682a","gas":"250000","gasPrice":"1","input":null,"nonce":"327790","r":"0x2acbd82ddfd7289757da1fe30f51da5d83ef934efbd3ad817fe9b822916f7164","s":"0x519ee690ac0f64ab0f75a001855078b9e1e68f4457feef77a8a249cfc19cfe6","to":"0x7cbf323520d6fda0858b85dc357db6143fbe997b","transactionIndex":"15","v":"0x17f44053","value":"0","created":"2019-05-31 15:43:07","modified":"2019-05-31 15:43:07","timestamp":"0x5cf175b6"},{"hash":"0x2f04ea4e7c3c66c4bdc543ccea21ca2fb1a43998061023f78cbe6a1fbe1af840","blockHash":"0xe81f70415975f8ac8396994d605cec5f5d19ed1bb5ac6ebdc16d60334a8d4b60","blockNumber":"4225295","from":"0xac952ae0716e8aded07dda498f182f4983af682a","gas":"250000","gasPrice":"1","input":null,"nonce":"327784","r":"0xa2592b12d32d9318ce83ea6de79ba11c3bb6aaa23458c5e5a0895914808c1f73","s":"0x43bc1d3d2c123d10545f5f65e1798859354252da8ec3e713a1a500aa1aa868f2","to":"0x7cbf323520d6fda0858b85dc357db6143fbe997b","transactionIndex":"9","v":"0x17f44054","value":"0","created":"2019-05-31 15:43:06","modified":"2019-05-31 15:43:06","timestamp":"0x5cf175b6"} ... ]}]   
  
    

Método getAds

Retorna la información de la Dirección (address) pasada por parámetro.

URL: http://201.190.142.76/bfascan/Addresses/getAds/[HASH]

Ejemplo de respuesta:

[{"addresses":{"hash":"0xac952ae0716e8aded07dda498f182f4983af682a","balance":null,"tag":null,"created":"2019-05-19 04:33:10","modified":"2019-05-19 04:33:10","txn":"325326"}}]   
    

Método getMiners

Retorna una lista con todos los selladores, con el número, hash y timestamp del último bloque minado por cada uno.

Se puede pasar por parámetro el HASH del sellador para retornar la información particular.

URL: http://201.190.142.76/bfascan/Miners/getMiners/

Ejemplo de respuesta:

[{"last_block_number":"4656672","last_block_hash":"0x673715f5041acf2a5cbe24d7abb49f5754678148445096ddf04d2209848edddb","last_block_timestamp":"1561485110","hash":"0x354779914a94ad428d2b53ae96cce3010bb0ce1e","nombre":"Red Link"},{"last_block_number":"4656671","last_block_hash":"0x3b3e2d1f73e64429fffe4359c5c0fa90fa6d4470abe47f19166e90a4bdaa8f22","last_block_timestamp":"1561485105","hash":"0xf36475eb25ba0c825455f150b26e24ab9449a443","nombre":"SRT \/ Superintendencia de Riesgos del Trabajo"},{"last_block_number":"4656670","last_block_hash":"0xae6facae449ff317a8e0177f3a680a854e5982724fe9fd4f7219a554582ac486","last_block_timestamp":"1561485100","hash":"0x998c2651db6f76ca568c0071667d265bcc1b1e98","nombre":"ASI \/ Agencia de Sistemas de Informaci\u00f3n, CABA"},{"last_block_number":"4656669","last_block_hash":"0x6c4da94e8ec873449bee5f8369319320e11afce42b6068656a2542257a77c5b0","last_block_timestamp":"1561485095","hash":"0x39170a1ce03729d141dfaf8077c08b72c9cfdd0c","nombre":"IXPBB \/ IXP Bahia Blanca"} ...]