API Methods

Follow
 

 The Blockdaemon API lets you interact with an EVM-based client via JSON-RPC

 

Methods

web3_clientVersion         current client version

 

web3_sha3          Hashes data

 

net_listening          returns listening status

 

net_peerCount        number of peers

 

net_version         Network identifier associated with network

 

eth_blockNumber          Returns the number of most recent block.

 

eth_call        Executes a new message call (locally) immediately without creating a transaction on the block chain.

 

eth_chainId         Returns the currently configured chain id

 

eth_estimateGas         Generates and returns an estimate of how much gas is necessary to allow the transaction to complete. 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.

 

eth_gasPrice         Returns the current price per gas in wei

 

eth_getBalance          Returns Ether balance of a given or account or contract

 

eth_getBlockByHash          Gets a block for a given hash

 

eth_getBlockByNumber          Gets a block for a given number

 

eth_getBlockTransactionCountByHash          Returns the number of transactions in a block from a block matching the given block hash.

 

eth_getBlockTransactionCountByNumber         Returns the number of transactions in a block from a block matching the given block number.

 

eth_getCode        Returns code at a given contract address

 

eth_getRawTransactionByHash         Returns raw transaction data of a transaction with the given hash.

 

eth_getRawTransactionByBlockHashAndIndex          Returns raw transaction data of a transaction with the given hash.

 

eth_getRawTransactionByBlockNumberAndIndex          Returns raw transaction data of a transaction with the given hash.

 

eth_getLogs          Returns an array of all logs matching a given filter object.

 

eth_getStorageAt         Gets a storage value from a contract address, a position, and an optional blockNumber

 

eth_getTransactionByBlockHashAndIndex          Returns the information about a transaction requested by the block hash and index of which it was mined.

 

eth_getTransactionByBlockNumberAndIndex          Returns the information about a transaction requested by the block hash and index of which it was mined.

 

eth_getTransactionByHash          Returns the information about a transaction requested by transaction hash.

 

eth_getTransactionCount          Returns the number of transactions sent from an address

 

eth_getTransactionReceipt         Returns the receipt information of a transaction by its hash.

 

eth_getUncleByBlockHashAndIndex          Returns information about a uncle of a block by hash and uncle index position.

 

eth_getUncleByBlockNumberAndIndex          Returns information about a uncle of a block by hash and uncle index position.

 

eth_getUncleCountByBlockHash          Returns the number of uncles in a block from a block matching the given block hash.

 

eth_getUncleCountByBlockNumber         Returns the number of uncles in a block from a block matching the given block number.

 

eth_getWork          Returns the hash of the current block, the seedHash, and the boundary condition to be met ('target').

 

eth_hashrate          Returns the number of hashes per second that the node is mining with.

 

eth_mining          Returns true if client is actively mining new blocks.

 

eth_protocolVersion          Returns the current ethereum protocol version.

 

eth_sendRawTransaction          Creates new message call transaction or a contract creation for signed transactions.

 

eth_submitHashrate          Used for submitting mining hashrate.

 

eth_submitWork          Used for submitting a proof-of-work solution.

 

eth_syncing          Returns an object with data about the sync status or false.

 

Resources

 

 

 
 

 

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

 

0 out of 0 found this helpful

Comments

0 comments

Please sign in to leave a comment.