Ethereum

Ethereum endpoints

Supported methods for Ethereum. Please note that to use these methods you must specify both the API token, eth in this case, and the network on which you want to make the call. For example, if you want to know the balance of a Bitcoin Cash address in the main network, the corresponding endpoint is as follows: http://server/eth/mainnet/getAddressBalance

Return the balance of any address

post

Return the balance of any address

Body
addressstringRequired

Ethereum address

Example: 0x625ACaEdeF812d2842eFd2Fb0294682A868455bd
Responses
chevron-right
200

Successful response

application/json
post
/getAddressBalance
200

Successful response

Return the balance of an array of addresses

post

Return the balance of an array of addresses

Body
addressesstring[]Required

Ethereum address

Example: 0x625ACaEdeF812d2842eFd2Fb0294682A868455bd
Responses
chevron-right
200

Successful response

application/json
post
/getAddressesBalance
200

Successful response

Returns latest block hash and index

post

Returns latest block hash and index

Body
objectOptional
Responses
chevron-right
200

Successful response

application/json
post
/getHeight
200

Successful response

Returns the current price per gas in wei.

post

Returns the current price per gas in wei.

Body
objectOptional
Responses
chevron-right
200

Successful response

application/json
post
/getGasPrice
200

Successful response

Returns if blockchain is syncing

post

Returns True if blocks are syncing and returns False if theres no synchronization or is fully sychronize

Body
objectOptional
Responses
chevron-right
200

Successful response

application/json
post
/syncing
200

Successful response

Broadcast a transaction to the network

post

Broadcast a transaction to the network

Body
rawTransactionstringRequired

The transaction hash in hex

Example: 0xd46e8dd67c5d32be8d46e8dd67c5d32be8058bb8eb970870f072445675058bb8eb970870f072445675
Responses
chevron-right
200

Successful response

application/json
post
/broadcastTransaction
200

Successful response

Generates and returns an estimate of how much gas is necessary to allow the transaction to complete

post

The transaction will not be added to the blockchain. Note that the estimate may be significantly more than the amount of gas actually used by the transaction, for a variety of reasons including EVM mechanics and node performance.

Body
Responses
chevron-right
200

Successful response

application/json
post
/estimateGas
200

Successful response

Returns the information of any block giving its hash

post

Returns the information of any block giving its hash

Body
blockHashstringRequired

A string representing the hash (32 bytes) of a block

Example: 0x6403b287ab8bd587cd9e07c3d2ca62269f19dfb7c195892980f14d71fefa7cdd
verboseinteger · enumOptional

Verbosity mode. With 2 value, transactions inside the block are returned completly, otherwise, only transactions hash will be returned

Default: 2Example: 2Possible values:
Responses
chevron-right
200

Successful response

application/json
post
/getBlockByHash
200

Successful response

Returns the information of any block giving its height

post

Returns the information of any block giving its height

Body
blockNumberstringRequired

Ethereum block height. Supports the param latest to get the last block of the chain. The param can be in decimal or hexadecimal format

Example: 0x1
verboseinteger · enumOptional

Verbosity mode. With 2 value, transactions inside the block are returned completly, otherwise, only transactions hash will be returned

Default: 2Example: 2Possible values:
Responses
chevron-right
200Success
application/json
post
/getBlockByNumber
200Success

Returns the number of success/pending transactions of any address

post

Returns the number of success/pending transactions of any address

Body
addressstringRequired

Ethereum address

Example: 0x625ACaEdeF812d2842eFd2Fb0294682A868455bd
pendingbooleanRequired

True to get pending blocks

Example: true
Responses
chevron-right
200Success
application/json
post
/getAddressTransactionCount
200Success

Returns the number of success/pending transactions of an array of addresses

post

Returns the number of success/pending transactions of an array of addresses

Body
Responses
chevron-right
200Success
application/json
post
/getAddressesTransactionCount
200Success

Returns the receipt of a transaction by transaction hash

post

Returns the receipt of a transaction by transaction hash

Body
txHashstringRequired

Hash of the transaction

Example: 0x8784d99762bccd03b2086eabccee0d77f14d05463281e121a62abfebcf0d2d5f
Responses
chevron-right
200Success
application/json
post
/getTransactionReceipt
200Success

Returns the transaction info given its transaction hash

post

Returns the transaction info given its transaction hash

Body
txHashstringRequired

Hash of the transaction

Example: 0x8784d99762bccd03b2086eabccee0d77f14d05463281e121a62abfebcf0d2d5f
Responses
chevron-right
200Success
application/json
post
/getTransaction
200Success

Returns the transactions info of an array of transactions hash

post

Returns the transactions info of an array of transactions hash

Body
txHashesstring[]Required

Hash of the transaction

Example: 0x8784d99762bccd03b2086eabccee0d77f14d05463281e121a62abfebcf0d2d5f
Responses
chevron-right
200Success
application/json
post
/getTransactions
200Success

Executes a new message call immediately without creating a transaction on the block chain

post

Executes a new message call immediately without creating a transaction on the block chain

Body
blockNumberone ofRequired
string · enumOptionalExample: latestPossible values:
or
stringOptionalPattern: [0-9]
Responses
chevron-right
200Success
application/json
post
/call
200Success

Get transaction history of an address

post

Get transaction history of an address

Body
addressstringRequired

Ethereum address

Example: 0x625ACaEdeF812d2842eFd2Fb0294682A868455bd
Responses
chevron-right
200Success
application/json
post
/getAddressHistory
200Success

Get transaction history of an array of address

post

Get transaction history of an array of addresses

Body
addressesstring[]Optional

Ethereum address

Example: 0x625ACaEdeF812d2842eFd2Fb0294682A868455bd
Responses
chevron-right
200Success
application/json
post
/getAddressesHistory
200Success

Returns the status of the transaction indexing process.

post

Returns the status of the transaction indexing process.

Body
objectOptional
Responses
chevron-right
200Success
application/json
post
/indexing
200Success

Last updated