Skip to content

Contract ​

ERC20 ​

approve() ​

Parameters


*tokenAddress string

Contract address of token.


*amount string | number

Amount of tokens approve.

Example ​

tsx
const tx = await reddio.erc20.approve({
  tokenAddress: "0x941661bd1134dc7cc3d107bf006b8631f6e65ad5",
  amount: "1",
});

Return ​

TransactionResponse.

allowance() ​

Parameters


*tokenAddress string

Contract address of token.

Example ​

tsx
const tx = await reddio.erc20.allowance({
  tokenAddress: "0x941661bd1134dc7cc3d107bf006b8631f6e65ad5",
});

Return ​

TransactionResponse.

ERC721 ​

approve() ​

Parameters


*tokenAddress string

Contract address of token.


*tokenId string | number

tokenId of token.

Example ​

tsx
const tx = await reddio.erc20.approve({
  tokenAddress: "0x941661bd1134dc7cc3d107bf006b8631f6e65ad5",
  tokenId: "1",
});

Return ​

TransactionResponse.