getTokenTransfers
Parameters
contractAddress
:(string)
REQUIRED - The token contract addressfromBlock
:(string)
OPTIONAL - Starting block for the querytoBlock
: (string)
OPTIONAL - Ending block for the querypageSize
:(integer)
OPTIONAL - Number of records to be retrieved on one pagepageKey
:(string)
OPTIONAL - Key used to get the next page of results. Must be set to the value of nextPageKey returned in the previous response
Returns
contractAddress
:<string>
- The token contract addresscontractDecimals
:<string>
- Token decimals specified in the contractcontractName
:<string>
- The name of the tokencontractSymbols
:<string>
- The name of the tokencount
:<integer>
- The number of transfersnextPageKey
:<string>
- Key to get the next page of results, if more results are availabletokenTransfers
:<array>
- The array of Token Transfers for the specified token contractfromAddress
:<string>
- The wallet address from which tokens were transferredtoAddress
:<string>
- Destination wallet addressvalue
:<string>
- The amount of tokens to be transferredblockHash
:<string>
- The hash of the block in which the transfer transaction was executedblockNumber
:<integer>
- The height of the block in which the transfer transaction was executedblockTimestamp
:<string>
- The timestamp of the block in which the transfer transaction was executedtransactionHash
:<string>
- The hash of the token transfer transactiontransactionIndex
:<integer>
- The number or the token transfer transactionlogIndex
:<integer>
- The index of the transaction log
Example Request and Result for getTokenTransfers
Request
curl --location 'https://eth-mainnet.blastapi.io/<project-id>/builder/getTokenTransfers?contractAddress=0x013062189dc3dcc99e9Cee714c513033b8d99e3c&pageSize=1&fromBlock=188505&toBlock=18188504'
Result
{
"contractAddress": "0x013062189dc3dcc99e9cee714c513033b8d99e3c",
"contractDecimals": "18",
"contractName": "Bware",
"contractSymbol": "INFRA",
"count": 1,
"nextPageKey": "MWNiOWMzZDJjMjkzOjE2OTg2NzU4NDk6MTgxODYxMzI6NDAwMDAxOTAwMDAwMDpCd2FyZTpJTkZSQToxOA",
"tokenTransfers": [
{
"fromAddress": "0xd891830c826a8b0b2205ee9b6581d37a3efdf9af",
"toAddress": "0x7e20e121ded9ed7c67b4971eed536e8f82873df3",
"value": "753153937504918480988",
"blockHash": "0x8c94a152fa30958f289803e783f0da34fba305ad4399ed5a3dada6a2e18dc40d",
"blockNumber": 18186132,
"blockTimestamp": "2023-09-21T18:47:59.000Z",
"transactionHash": "0x4b3bd6e0c0694639162ae1c40a6745ea4308d33898f832e18ea069a6dccef036",
"transactionIndex": 4,
"logIndex": 19
}
]
}