Skip to content

Latest commit

 

History

History
28 lines (19 loc) · 1.15 KB

File metadata and controls

28 lines (19 loc) · 1.15 KB

ERC721 Meta Transaction Example

Welcome to the ERC721 Meta Transaction Example! This example demonstrates how to perform meta-transactions for ERC721 token transfers and is based on a Venly ERC115 contract that implements the ERC721 standard (example contract here. Follow the steps below to set up and run the example.

Setup

  1. Open the config.ts file.

  2. Supply the correct values for the following variables:

    • API_ROOT: The root URL of the API.
    • BEARER_TOKEN: The bearer token for authentication.
  3. Open the index.ts file.

  4. Replace the example values with the actual values from your account:

    • chain: The chain you are using to perform the meta-transaction.
    • userWallet: The wallet of the user that holds the NFT.
    • payerWallet: The wallet of the user paying for the NFT.
    • token: The token being transferred.
    • toWalletAddress: The address where the NFT will be sent to.

Running the Example

After setting up the configuration, you can run the example by executing the following command:

npm install
npm run start