New: getTransactionsForAddress - Query transaction history with advanced filtering, sorting, and pagination. Learn More
New: getTransactionsForAddress - Query transaction history with advanced filtering, sorting, and pagination. Learn More
返回分类账中已确认区块的身份和交易信息。
curl --request POST \
--url 'https://mainnet.helius-rpc.com/?api-key=' \
--header 'Content-Type: application/json' \
--data '
{
"jsonrpc": "2.0",
"id": "1",
"method": "getBlock",
"params": [
430
]
}
'{
"jsonrpc": "2.0",
"id": "<string>",
"result": {
"blockhash": "DUCT8VSgk2BXkMhQfxKVYfikEZCQf4dZ4ioPdGdaVxMN",
"previousBlockhash": "HA2fJgGqmQezCXJRVNZAWPbRMXCPjUyo7VjRF47JGdYs",
"parentSlot": 429,
"transactions": [
{
"meta": {},
"transaction": {
"message": {
"accountKeys": [
"<string>"
],
"header": {
"numReadonlySignedAccounts": 123,
"numReadonlyUnsignedAccounts": 123,
"numRequiredSignatures": 123
},
"instructions": [
{
"accounts": [
123
],
"data": "<string>",
"programIdIndex": 123,
"stackHeight": 123
}
],
"recentBlockhash": "<string>"
},
"signatures": [
"<string>"
]
}
}
],
"blockTime": null,
"blockHeight": null,
"rewards": [
{
"pubkey": "<string>",
"lamports": 123,
"rewardType": "<string>"
}
]
}
}成功检索到区块详情。
2.0 显示 子属性
此区块的 blockhash(base-58 编码字符串)。
"DUCT8VSgk2BXkMhQfxKVYfikEZCQf4dZ4ioPdGdaVxMN"
区块父级的 blockhash。
"HA2fJgGqmQezCXJRVNZAWPbRMXCPjUyo7VjRF47JGdYs"
此区块父级的槽位索引。
429
交易详情数组。
显示 子属性
与交易相关的元数据。
交易详情。
显示 子属性
显示 子属性
此交易中使用的账户公钥数组。
程序指令数组。
显示 子属性
账户索引数组。
程序输入数据以base58编码。
accountKeys数组中程序ID的索引。
堆栈高度。
此交易中使用的最近区块哈希。
此交易的签名数组(base-58编码)。
估计的生产时间,以Unix时间戳表示。
null
在此区块下的区块数量。
null
此页面对您有帮助吗?
curl --request POST \
--url 'https://mainnet.helius-rpc.com/?api-key=' \
--header 'Content-Type: application/json' \
--data '
{
"jsonrpc": "2.0",
"id": "1",
"method": "getBlock",
"params": [
430
]
}
'{
"jsonrpc": "2.0",
"id": "<string>",
"result": {
"blockhash": "DUCT8VSgk2BXkMhQfxKVYfikEZCQf4dZ4ioPdGdaVxMN",
"previousBlockhash": "HA2fJgGqmQezCXJRVNZAWPbRMXCPjUyo7VjRF47JGdYs",
"parentSlot": 429,
"transactions": [
{
"meta": {},
"transaction": {
"message": {
"accountKeys": [
"<string>"
],
"header": {
"numReadonlySignedAccounts": 123,
"numReadonlyUnsignedAccounts": 123,
"numRequiredSignatures": 123
},
"instructions": [
{
"accounts": [
123
],
"data": "<string>",
"programIdIndex": 123,
"stackHeight": 123
}
],
"recentBlockhash": "<string>"
},
"signatures": [
"<string>"
]
}
}
],
"blockTime": null,
"blockHeight": null,
"rewards": [
{
"pubkey": "<string>",
"lamports": 123,
"rewardType": "<string>"
}
]
}
}