Configure and claim ERC721 NFTs

Remarks

Manage claim phases and claim ERC721 NFTs that have been lazily minted.

Example

const contract = await sdk.getContract("{{contract_address}}");
await contract.erc721.claim(tokenId, quantity);

Hierarchy

  • Erc721Claimable

Implements

  • DetectableFeature

Constructors

Properties

contractWrapper: ContractWrapper<IClaimableERC721>
erc721: Erc721<BaseERC721>
featureName: "ERC721ClaimCustom" = FEATURE_NFT_CLAIM_CUSTOM.name
to: {
    prepare: ((...args) => Promise<Transaction<TransactionResultWithId<NFT>[]>>);
    (...args): Promise<TResult>;
} = ...

Type declaration

    • (...args): Promise<TResult>
    • Claim NFTs to a specific Wallet

      Parameters

      • Rest ...args: [destinationAddress: string, quantity: BigNumberish, options?: ClaimOptions]

      Returns Promise<TResult>

      • Receipt for the transaction

      Remarks

      Let the specified wallet claim NFTs.

      Example

      const address = "{{wallet_address}}"; // address of the wallet you want to claim the NFTs
      const quantity = 1; // how many NFTs you want to claim

      const tx = await contract.erc721.claimTo(address, quantity);
      const receipt = tx[0].receipt; // the transaction receipt
  • prepare: ((...args) => Promise<Transaction<TransactionResultWithId<NFT>[]>>)

Methods

  • Construct a claim transaction without executing it. This is useful for estimating the gas cost of a claim transaction, overriding transaction options and having fine grained control over the transaction execution.

    Parameters

    • destinationAddress: string

      Address you want to send the token to

    • quantity: BigNumberish

      Quantity of the tokens you want to claim

    • Optional options: ClaimOptions

      Options for claiming the NFTs

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

    Deprecated

    Use contract.erc721.claim.prepare(...args) instead

Generated using TypeDoc