📘

This only applies for three types of contract

  • thirdweb Edition Drops
  • thirdweb Signature contracts (Signature Drop or Edition with Signature Minting)
  • Metaplex Auction House contract on Solana.

If you are not using one of the contracts listed above, there is no need to dive into this.

thirdweb Edition contracts

If you are using a thirdweb Edition Drop, you are required to set the contractArgs field to provide data on which specific token ID of the Edition Drop is being claimed.

An example of the JSON format for passing in contractArgs in our APIs:

{
  "tokenId": "1"
}

thirdweb Signature contracts

If you are using a thirdweb Signature NFT Drop or Edition with Signature Minting contracts, you are required to set the contractArgs field to provide the signature data that will be used to perform the minting. This must be generated by the thirdweb signature generation functions. See thirdweb's guide on signature-based minting.

Below is an example of the JSON format for passing in contractArgs in our APIs. This can be retrieved by taking the signedPayload of the response in any of thirdweb's signature generation methods:

{
  "payload": {
    "...": "Payload generated from thirdweb"
  },
  "signature": "Signature string generated from thirdweb"
}

Metaplex Auction House

If you are using a Metaplex Auction House contract, you are required to set the contractArgs field to provide information on the token that is being sold. Note: Paper only supports direct sales (i.e. "Buy Now"s) and cannot facilitate any bidding for an auction. You must also ensure that your Auction House configuration allows the execute_sale operation to be made public, without approval needed from the Auction House Authority.

Below is an example of the JSON format for passing in contractArgs in our APIs.

{
  mintAddress: "address of the token mint",
  tokenAccount: "address of the token account (seller)",
  sellerWalletAddress: "public address of the seller",
  price: {
    value: "0.1",
    currency: "SOL" /* SOL is the only supported currency on auction house */
  },
}