Mint ERC20 Tokens

Remarks

Token minting functionality that handles unit parsing for you.

Example

const contract = await sdk.getContract("{{contract_address}}");
await contract.nft.mint.to(walletAddress, nftMetadata);

Hierarchy

  • Erc20Mintable

Implements

  • DetectableFeature

Constructors

Properties

batch: undefined | Erc20BatchMintable

Batch mint Tokens to many addresses

contractWrapper: ContractWrapper<IMintableERC20>
erc20: Erc20<BaseERC20 | BaseSignatureMintERC20>
featureName: "ERC20Mintable" = FEATURE_TOKEN_MINTABLE.name
to: {
    prepare: ((...args) => Promise<Transaction<Omit<TransactionResultWithMetadata<unknown>, "data">>>);
    (...args): Promise<TResult>;
} = ...

Type declaration

    • (...args): Promise<TResult>
    • Mint Tokens

      Parameters

      • Rest ...args: [to: string, amount: string | number]

      Returns Promise<TResult>

      Remarks

      Mint tokens to a specified address.

      Example

      const toAddress = "{{wallet_address}}"; // Address of the wallet you want to mint the tokens to
      const amount = "1.5"; // The amount of this token you want to mint
      await contract.token.mint.to(toAddress, amount);
  • prepare: ((...args) => Promise<Transaction<Omit<TransactionResultWithMetadata<unknown>, "data">>>)
      • (...args): Promise<Transaction<Omit<TransactionResultWithMetadata<unknown>, "data">>>
      • Parameters

        • Rest ...args: [to: string, amount: string | number]

        Returns Promise<Transaction<Omit<TransactionResultWithMetadata<unknown>, "data">>>

Methods

Generated using TypeDoc