- Overview
- Bitcoin
- Transaction
- Block
- Chain
- Memory Pool
- Ethereum
- ETH Methods
- Returns array of all accounts owned by the client.
- Returns the number of most recent block.
- Executes a new message call immediately without creating a transaction on the block chain.
- Returns the current gas price in the default EVM denomination parameter.
- Returns the balance of the account of given address.
- Returns information about a block by hash.
- Returns information about a block by block number.
- Returns the number of transactions sent from an address.
- Returns the number of transactions in a block from a block matching the given block hash.
- Returns code at a given address.
- Polling method for a filter, which returns an array of logs which occurred since last poll.
- Returns an array of all logs matching filter with given id.
- Returns an array of all logs matching a given filter object.
- Returns the value from a storage position at a given address.
- Returns information about a transaction by block hash and transaction index position.
- Returns information about a transaction by block number and transaction index position.
- Returns the information about a transaction requested by transaction hash.
- Returns the value from a storage position at a given address.
- Returns the receipt of a transaction by transaction hash.
- Returns information about a uncle of a block by hash and uncle index position.
- Returns information about a uncle of a block by number and uncle index position.
- Returns the number of transactions in a block matching the given block number.
- Returns the number of uncles in a block from a block matching the given block number.
- Creates a filter in the node, to notify when a new block arrives.
- Creates a filter object, based on filter options, to notify when the state changes (logs).
- Creates a filter in the node, to notify when new pending transactions arrive.
- Returns the current ethereum protocol version.
- Creates new message call transaction or a contract creation for signed transactions.
- Creates new message call transaction or a contract creation, if the data field contains code.
- The sign method calculates an Ethereum specific signature with: sign(keccak256("\x19Ethereum Signed Message:\n" + len(message) + message))).
- 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.
- Uninstalls a filter with given id. Should always be called when watch is no longer needed.
- Net Methods
- Web3 Methods
Get block by hash.
GET
/block/{blockHash}
block
Last modified:2024-05-27 22:00:31
Request
Path Params
blockHash
string
required
Request samples
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request GET '/block/'
Responses
🟢200successful operation
application/json
Body
hash
string
optional
confirmations
integer <int64>
optional
strippedsize
integer <int64>
optional
size
integer <int64>
optional
weight
integer <int64>
optional
height
integer <int64>
optional
version
integer <int64>
optional
versionHex
string
optional
merkleroot
string
optional
tx
array[object (Transaction) {15}]
optional
amount
number <float>
optional
fee
number <float>
optional
confirmations
integer <int64>
optional
blockhash
string
optional
blockindex
integer <int64>
optional
blocktime
integer <int32>
optional
txid
string
optional
txhash
string
optional
version
integer
optional
size
integer
optional
vsize
integer
optional
locktime
integer
optional
time
integer <int32>
optional
timereceived
integer <int32>
optional
bip125-replaceable
enum<string>
optional
Allowed values:
yesnounknown
time
integer <int32>
optional
mediantime
integer <int32>
optional
nonce
integer <int32>
optional
bits
string
optional
difficulty
number <float>
optional
chainwork
string
optional
Example
{
"hash": "string",
"confirmations": 0,
"strippedsize": 0,
"size": 0,
"weight": 0,
"height": 0,
"version": 0,
"versionHex": "string",
"merkleroot": "string",
"tx": [
{
"amount": 0,
"fee": 0,
"confirmations": 0,
"blockhash": "string",
"blockindex": 0,
"blocktime": 0,
"txid": "string",
"txhash": "string",
"version": 0,
"size": 0,
"vsize": 0,
"locktime": 0,
"time": 0,
"timereceived": 0,
"bip125-replaceable": "yes"
}
],
"time": 0,
"mediantime": 0,
"nonce": 0,
"bits": "string",
"difficulty": 0,
"chainwork": "string"
}
🟠400Invalid hash
🟠404Block not found
Modified at 2024-05-27 22:00:31