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.
-
Open the
config.ts
file. -
Supply the correct values for the following variables:
API_ROOT
: The root URL of the API.BEARER_TOKEN
: The bearer token for authentication.
-
Open the
index.ts
file. -
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.
After setting up the configuration, you can run the example by executing the following command:
npm install
npm run start