Skip to main content

Get ERC20 token mints

GEThttps://deep-index.moralis.io/api/v2/erc20/mints
QUERY PARAMS
chainstring
The chain to query
from_blocknumber
The block number from which the mints will be returned
to_blocknumber
The block number to which the mints will be returned
limitnumber
The desired page size of the result.
contract_addressesarray
Contract addresses to only include
exclude_contractsarray
Contract addresses to ignore
wallet_addressesarray
Wallet addresses to only include
exclude_walletsarray
Wallet addresses to ignore
cursorstring
The cursor returned in the previous response (used to getting the next page).
Responses
API KEY
import Moralis from 'moralis';

try {
await Moralis.start({
apiKey: "YOUR_API_KEY"
});

const response = await Moralis.EvmApi.token.getErc20Mints({
"chain": "0x1",
"contractAddresses": [],
"excludeContracts": [],
"walletAddresses": [],
"excludeWallets": []
});

console.log(response.raw);
} catch (e) {
console.error(e);
}
Response Example
{
"contract_address": "0x3105d328c66d8d55092358cf595d54608178e9b5",
"transaction_hash": "0xdd9006489e46670e0e85d1fb88823099e7f596b08aeaac023e9da0851f26fdd5",
"transaction_index": 204,
"log_index": 204,
"block_timestamp": "2021-05-07T11:08:35.000Z",
"block_number": 12386788,
"block_hash": "0x9b559aef7ea858608c2e554246fe4a24287e7aeeb976848df2b9a2531f4b9171",
"to_wallet": "0x3105d328c66d8d55092358cf595d54608178e9b5",
"value": "1234"
}