HomeGuidesAPI ReferenceChangelog
GuidesAPI ReferenceCommunityDiscordBlogFAQBug BountyAnnouncementsChange Log
API Reference

eth_getTransactionByBlockNumberAndIndex

Returns information about a transaction by block number and transaction index position.

Parameters

IndexData TypeDescription
1QUANTITY|TAGa block number, or the string "earliest", "latest",
2QUANTITYthe transaction index position

Returns

object - a transaction object or null when no transaction was found. See eth_getTransactionByBlockHashAndIndex

Example

curl -X POST 'https://api.shasta.trongrid.io/jsonrpc' --data '{
	"jsonrpc": "2.0",
	"method": "eth_getTransactionByBlockNumberAndIndex",
	"params": ["0xfb82f0", "0x0"],
	"id": 64
}'

Result

{"jsonrpc":"2.0","id":64,"result":null}