Skip to main content

getTokenMints

Parameters

  • contractAddress :(string) REQUIRED - The token contract address
  • fromBlock : (string) OPTIONAL - Starting block for the query
  • toBlock : (string) OPTIONAL - Ending block for the query
  • toAddress : (string) OPTIONAL - Destination address for minting tokens
  • pageSize : (integer) OPTIONAL - Number of records to be retrieved on one page
  • pageKey : (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 address
  • contractDecimals : <string> - Token decimals specified in the contract
  • contractName: <string> - The name of the token
  • contractSymbols: <string> - The name of the token
  • count : <integer> - The number of token mints
  • nextPageKey: <string> - Key to get the next page of results, if more results are available
  • tokenBurns: <array> - The array of Token Mints for the given contract
    • toAddress : <string> - Destination address for minting tokens
    • value : <string> - The amount of tokens to be minted
    • blockHash : <string> - The hash of the block in which the transfer transaction was executed
    • blockNumber : <integer> - The height of the block in which the transfer transaction was executed
    • blockTimestamp : <string> - The timestamp of the block in which the transfer transaction was executed
    • transactionHash: <string>- The hash of the token transfer transaction
    • transactionIndex: <integer> - The number or the token transfer transaction
    • logIndex : <integer> - The index of the transaction log

Example Request and Result for getTokenMints

Request

curl --location 'https://eth-mainnet.blastapi.io/<project-id>/builder/getTokenMints?contractAddress=0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48&toAddress=0x8536570835979b1fa04c0413e2610f57880f1036'

Result

{
"contractAddress": "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48",
"contractDecimals": "6",
"contractName": "USD Coin",
"contractSymbol": "USDC",
"count": 13,
"tokenMints": [
{
"toAddress": "0x8536570835979b1fa04c0413e2610f57880f1036",
"value": "299718333854",
"blockHash": "0x24787a0fd262d3319d84e66ec8d2da76b12dba825f9a5943aee974ab737edb9d",
"blockNumber": 18188973,
"blockTimestamp": "2023-09-22T04:20:35.000Z",
"transactionHash": "0x20ecdf7287f77bff65870f20deefa95c7740fb4975f322f30ce1ed99d090878d",
"transactionIndex": 88,
"logIndex": 219
},
{
"toAddress": "0x8536570835979b1fa04c0413e2610f57880f1036",
"value": "200000000000",
"blockHash": "0xc9093cc0f6ab9fb20eaef8e96cd383844ee30c75ec85c2774d7e8c2f740429f6",
"blockNumber": 18188959,
"blockTimestamp": "2023-09-22T04:17:35.000Z",
"transactionHash": "0xb973d34889f2933af5dca40315c7badf41fec32ef2e5b73ea8711528dad60dcb",
"transactionIndex": 92,
"logIndex": 126
},
{
"toAddress": "0x8536570835979b1fa04c0413e2610f57880f1036",
"value": "299763440203",
"blockHash": "0x9459af99c98281c19e545c35047c40d0f9df02082de10ab2d693b67a3f2dffac",
"blockNumber": 18188811,
"blockTimestamp": "2023-09-22T03:47:35.000Z",
"transactionHash": "0xd1f46a7d4b471450f677670ae3168e3af9071869699e062ffaf0cfdf5db1a2e7",
"transactionIndex": 53,
"logIndex": 196
},
{
"toAddress": "0x8536570835979b1fa04c0413e2610f57880f1036",
"value": "200000000000",
"blockHash": "0x05ec06a3a4ef9e64161cddf140fd49e68b98d44f94cce9abce4a0f3a6cd7a3ce",
"blockNumber": 18188797,
"blockTimestamp": "2023-09-22T03:44:47.000Z",
"transactionHash": "0xa8fca966c9f9f0602749728e9fd1b6e0c3a1dc2f491275126a58a65f7798730e",
"transactionIndex": 8,
"logIndex": 16
},
{
"toAddress": "0x8536570835979b1fa04c0413e2610f57880f1036",
"value": "189715893275",
"blockHash": "0x466d0730b20d14e52f4edd716b28f5717c5c12fef04bea1b69278ba8da70121f",
"blockNumber": 18093553,
"blockTimestamp": "2023-09-08T18:42:35.000Z",
"transactionHash": "0x3121323e1bff09f685d654b8f2f3b20410e8087bc4d5592a49b6a87f11c5c9ac",
"transactionIndex": 119,
"logIndex": 402
},
{
"toAddress": "0x8536570835979b1fa04c0413e2610f57880f1036",
"value": "200000000000",
"blockHash": "0x3d3a0aa77762178f5ca10c9849d85907ee545f2becf4be9c6c5bdbce07b6c6f4",
"blockNumber": 18093528,
"blockTimestamp": "2023-09-08T18:37:35.000Z",
"transactionHash": "0x5a8ff35f87427d3beff6caf68ce3fee22e1e1a0feba17b9d078e40549e695b78",
"transactionIndex": 104,
"logIndex": 285
},
{
"toAddress": "0x8536570835979b1fa04c0413e2610f57880f1036",
"value": "100000000000",
"blockHash": "0xe7de0681e58aa591199c58a648a7ea5dfcf71e4aa07eaa33736a052ccd5fb3fe",
"blockNumber": 18093494,
"blockTimestamp": "2023-09-08T18:30:47.000Z",
"transactionHash": "0xab3b6feb4c1693b3010cd6c29cac3e3ad910c49d5f4ca7a6e8d407b0465d8d46",
"transactionIndex": 98,
"logIndex": 173
},
{
"toAddress": "0x8536570835979b1fa04c0413e2610f57880f1036",
"value": "199880797375",
"blockHash": "0xa5a9fc911ac6f663b2ee42ce7a08c041556cdfd30494031802e1c3d56ffd7fa3",
"blockNumber": 18084381,
"blockTimestamp": "2023-09-07T11:54:35.000Z",
"transactionHash": "0x7368f9b641c4871cfe6900f636087a36944a4ebfe2ff9e740fb5f001d613ffba",
"transactionIndex": 137,
"logIndex": 445
},
{
"toAddress": "0x8536570835979b1fa04c0413e2610f57880f1036",
"value": "199877508110",
"blockHash": "0xdd363b010175e42075136cbd87acf0423086c31717a4119e18cc3977c4f11642",
"blockNumber": 18071846,
"blockTimestamp": "2023-09-05T17:45:35.000Z",
"transactionHash": "0x9dafa910b9fd3277f4f88d55acc40d5f3404cc9d033fbf7874c03f19018c32cb",
"transactionIndex": 173,
"logIndex": 294
},
{
"toAddress": "0x8536570835979b1fa04c0413e2610f57880f1036",
"value": "11276840090",
"blockHash": "0x0484ba121346bf7a1d4496d4acd44a58b94c0d64583530ec4cd45c652c854e72",
"blockNumber": 17636115,
"blockTimestamp": "2023-07-06T16:53:47.000Z",
"transactionHash": "0x36ae977b1b02d216531cf1325fd755624a27100890020f20e9536a4be2ea652b",
"transactionIndex": 225,
"logIndex": 602
},
{
"toAddress": "0x8536570835979b1fa04c0413e2610f57880f1036",
"value": "62665707606",
"blockHash": "0x3f4e0e8f64e3abc735e0d7d138f9f58aa875eb8070062dbe320cff875d1909d2",
"blockNumber": 17635840,
"blockTimestamp": "2023-07-06T15:58:35.000Z",
"transactionHash": "0x7bf10386a6e78a6a64b2d390a3b1897bfdc6de9d64fe502f89eda43e559e0164",
"transactionIndex": 121,
"logIndex": 317
},
{
"toAddress": "0x8536570835979b1fa04c0413e2610f57880f1036",
"value": "9761082500",
"blockHash": "0xa3af7ca15b51293da7d88e589151a13cfdcf2856cd31dec5c421d18ac60f8db0",
"blockNumber": 17635708,
"blockTimestamp": "2023-07-06T15:31:35.000Z",
"transactionHash": "0xa3845428abdba1f146d014d7e5ad9c1cc541a598434de216476726f6992f54ee",
"transactionIndex": 183,
"logIndex": 383
},
{
"toAddress": "0x8536570835979b1fa04c0413e2610f57880f1036",
"value": "2471150556",
"blockHash": "0x5543e55dc718f7945d3fa084549e92780f8b7362bc2ef1c510971931d452b1bb",
"blockNumber": 17635605,
"blockTimestamp": "2023-07-06T15:10:35.000Z",
"transactionHash": "0x643a62dcf687d362a39d3fd2a074c96247e332134bdf9df0e8fb064a034f3689",
"transactionIndex": 166,
"logIndex": 435
}
]
}