Get transactions by block number
GET/blocks/:blockNumber/txs
Get transactions by block number
Request
Path Parameters
blockNumber integerrequired
Block Number
Responses
- 200
- 500
OK
- application/json
- Schema
- Example (from schema)
Schema
Array [
]
result
object
items
object[]
transactionHash string
transactionIndex integer
blockHash string
blockNumber integer
from string
to string
contractAddress string
status integer
gas integer
gasPrice string
effectiveGasPrice string
gasUsed integer
cumulativeGasUsed integer
logsBloom string
input string
nonce integer
value string
type integer
v string
r string
s string
blockTime integer
chainId string
maxFeePerGas string
maxPriorityFeePerGas string
payer string
payerV string
payerR string
payerS string
expiredTime integer
{
"result": {
"items": [
{
"transactionHash": "string",
"transactionIndex": 0,
"blockHash": "string",
"blockNumber": 0,
"from": "string",
"to": "string",
"contractAddress": "string",
"status": 0,
"gas": 0,
"gasPrice": "string",
"effectiveGasPrice": "string",
"gasUsed": 0,
"cumulativeGasUsed": 0,
"logsBloom": "string",
"input": "string",
"nonce": 0,
"value": "string",
"type": 0,
"v": "string",
"r": "string",
"s": "string",
"blockTime": 0,
"chainId": "string",
"maxFeePerGas": "string",
"maxPriorityFeePerGas": "string",
"payer": "string",
"payerV": "string",
"payerR": "string",
"payerS": "string",
"expiredTime": 0
}
]
}
}
internal error
- application/json
- Schema
- Example (from schema)
Schema
errorCode integer
message string
{
"errorCode": 0,
"message": "string"
}
Loading...
Was this helpful?
Happy React is loading...