eth_getTransactionByBlockNumberAndIndex
网络: Polygon · 主网 · Chain ID 137(0x89)
计为 1 个 Request。 计费规则见 Request Counting。
描述
按区块号和索引返回交易。
参数
| 参数 | 类型 | 必填 | 说明 |
|---|---|---|---|
block | blockTag | 是 | 区块号或 tag |
index | hex | 是 | 交易索引(十六进制) |
请求
{
"jsonrpc": "2.0",
"method": "eth_getTransactionByBlockNumberAndIndex",
"params": ["latest", "0x0"],
"id": 1
}代码示例
curl -X POST https://polygon-bor-rpc.blockreq.com/v1/rpc/public \
-H "Content-Type: application/json" \
-d '{"jsonrpc":"2.0","method":"eth_getTransactionByBlockNumberAndIndex","params":["latest","0x0"],"id":1}'