# Interchain API ## Docs - [Introduction](https://docs.interchain.land/doc-538429.md): ## API Docs - Transaction [Get transaction by hash.](https://docs.interchain.land/bitcoin/get-transaction.md): Given a transaction hash: returns a transaction in binary, hex-encoded binary, or JSON formats. For full TX query capability, one must enable the transaction index via txindex=1 command line / configuration option. - Block [Get block by hash.](https://docs.interchain.land/api-7557635.md): Given a block hash: returns a block, in binary, hex-encoded binary or JSON formats. The HTTP request and response are both handled entirely in-memory, thus making maximum memory usage at least 2.66MB (1 MB max block, plus hex encoding) per request. With the /notxdetails/ option JSON response will only contain the transaction hash instead of the complete transaction details. The option only affects the JSON response. - Block [Get block by hash.](https://docs.interchain.land/api-7557636.md): Given a block hash: returns a block, in binary, hex-encoded binary or JSON formats. The HTTP request and response are both handled entirely in-memory, thus making maximum memory usage at least 2.66MB (1 MB max block, plus hex encoding) per request. With the /notxdetails/ option JSON response will only contain the transaction hash instead of the complete transaction details. The option only affects the JSON response. - Chain [Returns various state info regarding block chain processing.](https://docs.interchain.land/api-7557637.md): Returns various state info regarding block chain processing. Only supports JSON as output format. - Memory Pool [Returns various information about the TX mempool.](https://docs.interchain.land/api-7557638.md): Only supports JSON as output format. - Memory Pool [Returns transactions in the TX mempool.](https://docs.interchain.land/api-7557639.md): Only supports JSON as output format. - Memory Pool [Returns headers.](https://docs.interchain.land/api-7557640.md): Only supports BIN and HEX as output format. - Memory Pool [Returns Unspent Transaction (TX) Outputs](https://docs.interchain.land/api-7557641.md): Only supports JSON as output format. - ETH Methods [Returns array of all accounts owned by the client.](https://docs.interchain.land/api-7557643.md): - ETH Methods [Returns the number of most recent block.](https://docs.interchain.land/api-7557644.md): - ETH Methods [Executes a new message call immediately without creating a transaction on the block chain.](https://docs.interchain.land/api-7557645.md): Request body sample: {"jsonrpc":"2.0","method":"eth_call","params":[{ - ETH Methods [](https://docs.interchain.land/api-7557646.md): Request body sample: {"jsonrpc":"2.0","method":"eth_estimateGas","params":[{ - ETH Methods [Returns the current gas price in the default EVM denomination parameter.](https://docs.interchain.land/api-7557647.md): - ETH Methods [Returns the balance of the account of given address.](https://docs.interchain.land/api-7557648.md): Request body sample: {"jsonrpc":"2.0","method":"eth_getBalance","params":["0x407d73d8a49eeb85d32cf465507dd71d507100c1", "latest"],"id":1} - ETH Methods [Returns information about a block by hash.](https://docs.interchain.land/api-7557649.md): Request body sample: {"jsonrpc":"2.0","method":"eth_getBlockByHash","params":["0xdc0818cf78f21a8e70579cb46a43643f78291264dda342ae31049421c82d21ae", false],"id":1} - ETH Methods [Returns information about a block by block number.](https://docs.interchain.land/api-7557650.md): Request body sample: {"jsonrpc":"2.0","method":"eth_getBlockByNumber","params":["0x1b4", true],"id":1} - ETH Methods [Returns the number of transactions sent from an address.](https://docs.interchain.land/api-7557651.md): Request body sample: {"jsonrpc":"2.0","method":"eth_getTransactionCount","params":["0x407d73d8a49eeb85d32cf465507dd71d507100c1","latest"],"id":1} - ETH Methods [Returns the number of transactions in a block from a block matching the given block hash.](https://docs.interchain.land/api-7557652.md): Request body sample: {"jsonrpc":"2.0","method":"eth_getBlockTransactionCountByHash","params":["0xb903239f8543d04b5dc1ba6579132b143087c68db1b2168786408fcbce568238"],"id":1} - ETH Methods [Returns code at a given address.](https://docs.interchain.land/api-7557653.md): Request body sample: {"jsonrpc":"2.0","method":"eth_getCode","params":["0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b", "0x2"],"id":1} - ETH Methods [Polling method for a filter, which returns an array of logs which occurred since last poll.](https://docs.interchain.land/api-7557654.md): Request body sample: {"jsonrpc":"2.0","method":"eth_getFilterChanges","params":["0x16"],"id":73} - ETH Methods [Returns an array of all logs matching filter with given id.](https://docs.interchain.land/api-7557655.md): Request body sample: {"jsonrpc":"2.0","method":"eth_getFilterLogs","params":["0x16"],"id":74} - ETH Methods [Returns an array of all logs matching a given filter object.](https://docs.interchain.land/api-7557656.md): Request body sample: {"jsonrpc":"2.0","method":"eth_getLogs","params":[{"topics":["0x000000000000000000000000a94f5374fce5edbc8e2a8697c15331677e6ebf0b"]}],"id":74} - ETH Methods [Returns the value from a storage position at a given address.](https://docs.interchain.land/api-7557657.md): Request body sample: {"jsonrpc":"2.0","method":"eth_getBalance","params":["0x407d73d8a49eeb85d32cf465507dd71d507100c1", "latest"],"id":1} - ETH Methods [Returns information about a transaction by block hash and transaction index position.](https://docs.interchain.land/api-7557658.md): Request body sample: {"jsonrpc":"2.0","method":"eth_getTransactionByBlockHashAndIndex","params":["0xc6ef2fc5426d6ad6fd9e2a26abeab0aa2411b7ab17f30a99d3cb96aed1d1055b", "0x0"],"id":1} - ETH Methods [Returns information about a transaction by block number and transaction index position.](https://docs.interchain.land/api-7557659.md): Request body sample: {"jsonrpc":"2.0","method":"eth_getTransactionByBlockNumberAndIndex","params":["0x29c", "0x0"],"id":1} - ETH Methods [Returns the information about a transaction requested by transaction hash.](https://docs.interchain.land/api-7557660.md): Request body sample: {"jsonrpc":"2.0","method":"eth_getTransactionByHash","params":["0x88df016429689c079f3b2f6ad39fa052532c56795b733da78a91ebe6a713944b"],"id":1} - ETH Methods [Returns the value from a storage position at a given address.](https://docs.interchain.land/api-7557661.md): Request body sample: {"jsonrpc":"2.0", "method": "eth_getStorageAt", "params": ["0x295a70b2de5e3953354a6a8344e616ed314d7251", "0x0", "latest"], "id": 1} - ETH Methods [Returns the receipt of a transaction by transaction hash.](https://docs.interchain.land/api-7557662.md): Request body sample: {"jsonrpc":"2.0","method":"eth_getTransactionReceipt","params":["0xb903239f8543d04b5dc1ba6579132b143087c68db1b2168786408fcbce568238"],"id":1} - ETH Methods [Returns information about a uncle of a block by hash and uncle index position.](https://docs.interchain.land/api-7557663.md): Request body sample: {"jsonrpc":"2.0","method":"eth_getUncleByBlockHashAndIndex","params":["0xc6ef2fc5426d6ad6fd9e2a26abeab0aa2411b7ab17f30a99d3cb96aed1d1055b", "0x0"],"id":1} - ETH Methods [Returns information about a uncle of a block by number and uncle index position.](https://docs.interchain.land/api-7557664.md): Request body sample: {"jsonrpc":"2.0","method":"eth_getUncleByBlockNumberAndIndex","params":["0x29c", "0x0"],"id":1} - ETH Methods [Returns the number of transactions in a block matching the given block number.](https://docs.interchain.land/api-7557665.md): Request body sample: {"jsonrpc":"2.0","method":"eth_getBlockTransactionCountByNumber","params":["0xe8"],"id":1} - ETH Methods [Returns the number of uncles in a block from a block matching the given block number.](https://docs.interchain.land/api-7557666.md): Request body sample: {"jsonrpc":"2.0","method":"eth_getUncleCountByBlockNumber","params":["0xe8"],"id":1} - ETH Methods [Creates a filter in the node, to notify when a new block arrives.](https://docs.interchain.land/api-7557667.md): - ETH Methods [Creates a filter object, based on filter options, to notify when the state changes (logs).](https://docs.interchain.land/api-7557668.md): Request body sample: {"jsonrpc":"2.0","method":"eth_newFilter","params":[{ - ETH Methods [Creates a filter in the node, to notify when new pending transactions arrive.](https://docs.interchain.land/api-7557669.md): - ETH Methods [Returns the current ethereum protocol version.](https://docs.interchain.land/api-7557670.md): - ETH Methods [Creates new message call transaction or a contract creation for signed transactions.](https://docs.interchain.land/api-7557671.md): Request body sample: {"jsonrpc":"2.0","method":"eth_sendRawTransaction","params":["0xd46e8dd67c5d32be8d46e8dd67c5d32be8058bb8eb970870f072445675058bb8eb970870f072445675"],"id":1} - ETH Methods [Creates new message call transaction or a contract creation, if the data field contains code.](https://docs.interchain.land/api-7557672.md): Request body sample: { "id": 1, "jsonrpc": "2.0", "method": "eth_sendTransaction", "params": [{ "from": "0xb60e8dd61c5d32be8058bb8eb970870f07233155", "data": "0xd46e8dd67c5d32be8d46e8dd67c5d32be8058bb8eb970870f072445675058bb8eb970870f072445675" }] } - ETH Methods [The sign method calculates an Ethereum specific signature with: sign(keccak256("\x19Ethereum Signed Message:\n" + len(message) + message))).](https://docs.interchain.land/api-7557673.md): Request body sample: {"jsonrpc":"2.0","method":"eth_sign","params":["0x9b2055d370f73ec7d8a03e965129118dc8f5bf83", "0xdeadbeaf"],"id":1} - ETH Methods [The sync status object may need to be different depending on the details of Tendermint's sync protocol. However, the 'synced' result is simply a boolean, and can easily be derived from Tendermint's internal sync state.](https://docs.interchain.land/api-7557674.md): - ETH Methods [Uninstalls a filter with given id. Should always be called when watch is no longer needed.](https://docs.interchain.land/api-7557675.md): Request body sample: {"jsonrpc":"2.0","method":"eth_uninstallFilter","params":["0xb"],"id":73} - Net Methods [Returns if client is actively listening for network connections.](https://docs.interchain.land/api-7557676.md): - Net Methods [Returns the number of peers currently connected to the client.](https://docs.interchain.land/api-7557677.md): - Net Methods [Returns the current network id.](https://docs.interchain.land/api-7557678.md): - Web3 Methods [Get the web3 client version.](https://docs.interchain.land/api-7557679.md): - Web3 Methods [Returns Keccak-256 (not the standardized SHA3-256) of the given data.](https://docs.interchain.land/api-7557680.md): Request body sample: {"jsonrpc":"2.0","method":"web3_sha3","params":["0x67656c6c6f20776f726c64"],"id":1}