getWalletTokenTransfers
Parameters
walletAddress:(string)REQUIRED - The address of the walletcontractAddress:(string)OPTIONAL - The address of the ERC20 token contractfromBlock:(string)OPTIONAL - Indicate the starting block from which to get the transferstoBlock: (string)OPTIONAL - Indicate ending block up to which to get the transferssecondWalletAddress:(integer)OPTIONAL - Filter transfers involving the given wallet address and a second addressonlyIncoming:(bolean)OPTIONAL - Return only incoming transfersonlyOutgoing:(bolean)OPTIONAL - Return only outgoing transferspageSize:(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
walletAddress:<string>- The address of the walletcount:<integer>- The number of allowancesnextPageKey:<string>- Key used to get the next page of results. Must be set to the value of nextPageKey returned in the previous responsetokenTransfers:<array>- The array of Token Transfer objectscontractAddress:<string>- The token contract addresscontractDecimals:<string>- Token decimals specified in the contractcontractName:<string>- The name of the tokencontractSymbols:<string>- The name of the tokenfromAddress:<string>- Address from which the transfer originatedtoAddress:<array>- Destination address for the transfervalue:<string>- Token amountblockHash:<string>- The hash of the blockblockNumber:<integer>- The block heightblockTimestamp:<string>- The timestamp of the blocktransactionHash:<string>- The hash of the transactiontransactionIndex:<integer>- The index of the transactionlogIndex:<integer>- The index of the log
Example Request and Result for getWalletTokenTransfers
Request
curl --location 'https://eth-mainnet.blastapi.io/<project-id>/builder/getWalletTokenTransfers?walletAddress=0x58edF78281334335EfFa23101bBe3371b6a36A51&contractAddress=0xF411903cbC70a74d22900a5DE66A2dda66507255'
Result
{
"walletAddress": "0x58edf78281334335effa23101bbe3371b6a36a51",
"count": 100,
"nextPageKey": "NDE4ZmU0ZjU4ZDNhOjE2OTg3NjI5MDI6MTg0NjI1NDQ6OTYwMDAxNjkwMDAwMDA",
"tokenTransfers": [
{
"contractAddress": "0xf411903cbc70a74d22900a5de66a2dda66507255",
"contractDecimals": "18",
"contractName": "VERA",
"contractSymbol": "VRA",
"fromAddress": "0x4a48e7939558d97c806567a0f463baf5bcc39ad1",
"toAddress": "0x58edf78281334335effa23101bbe3371b6a36a51",
"value": "115633550000000000000000",
"blockHash": "0x8a1ce1d83a2d08392b1d3c82399ca46c89fdd061613fc8a50894619fa8292b14",
"blockNumber": 18469847,
"blockTimestamp": "2023-10-31T11:35:47.000Z",
"transactionHash": "0x42c65e1e013e6cf330814dc6e6a3328881050a6f71360b34720fe77c4b68df65",
"transactionIndex": 121,
"logIndex": 430
},
{
"contractAddress": "0xf411903cbc70a74d22900a5de66a2dda66507255",
"contractDecimals": "18",
"contractName": "VERA",
"contractSymbol": "VRA",
"fromAddress": "0x999b3c530fd34f70d7abd90629447d300bf4b7f2",
"toAddress": "0x58edf78281334335effa23101bbe3371b6a36a51",
"value": "1890153550000000000000000",
"blockHash": "0x8a1ce1d83a2d08392b1d3c82399ca46c89fdd061613fc8a50894619fa8292b14",
"blockNumber": 18469847,
"blockTimestamp": "2023-10-31T11:35:47.000Z",
"transactionHash": "0x35c2e1597d8d9cb7a9fad2c24a4b9475ee86dddc58904a3347a596a206480c04",
"transactionIndex": 120,
"logIndex": 427
},
```