Interface: Erc20ApprovalInput
moralis-monorepo / @moralisweb3/common-evm-utils / Erc20ApprovalInput
Interface: Erc20ApprovalInput
@moralisweb3/common-evm-utils.Erc20ApprovalInput
This can be any object with valid erc20 approval data.
Example
const input = {
chain: 1,
toWallet: "0x09f4fc6081026c85070886599e83f599ecf82405",
contractAddress: "0xa0e8fed3426391fdb446516799c4d6248e2b2860",
blockHash: "0xa5f87d4341642b89e3ccb81449e3083032c36fface2c2042941b8bd9afe83f79",
blockNumber: "16868690",
blockTimestamp: "2023-03-20T11:48:59.000Z",
transactionHash: "0xb7b4d321e2ab26c1cde1a2ef49413e21b65dcc663d6de8f75ddbdd868b98b4bf",
transactionIndex: "4",
logIndex: "25",
possibleSpam: false,
value: "100000000000000000000000000000",
tokenName: 'Test Token',
tokenSymbol: 'TST',
tokenLogo: 'https://example.com/logo.png',
tokenDecimals: 18
}
Table of contents
Properties
- blockHash
- blockNumber
- blockTimestamp
- chain
- contractAddress
- fromWallet
- logIndex
- possibleSpam
- toWallet
- tokenDecimals
- tokenLogo
- tokenName
- tokenSymbol
- transactionHash
- transactionIndex
- value
Properties
blockHash
• blockHash: string
blockNumber
• blockNumber: BigNumberInput
blockTimestamp
• blockTimestamp: DateInput
chain
• chain: EvmChainish
contractAddress
• contractAddress: EvmAddressInput
fromWallet
• fromWallet: EvmAddressInput
logIndex
• logIndex: number
possibleSpam
• possibleSpam: boolean
toWallet
• toWallet: EvmAddressInput
tokenDecimals
• tokenDecimals: number
tokenLogo
• Optional
tokenLogo: string
tokenName
• tokenName: string
tokenSymbol
• tokenSymbol: string
transactionHash
• transactionHash: string
transactionIndex
• transactionIndex: number
value
• value: BigNumberInput