- Run
npm i
to install all the dependencies - Run
npm run dev
to start the local development server - Copy the contents from .env.example file to .env file
- (Optional) you can use a custom RPC URL and put it under the
NEXT_PUBLIC_SOLANA_RPC=
in a .env file
- Make sure you are on the home page.
- Connect your wallet.
- Enter the address of the token you want to trade.
- Enter the address of the token you want to receive.
- Enter their respective amounts.
- Now click on Create button and your escrow will be created.
- Share the on-going page with the person you want to trade with.
- Alternatively, you can share the dial.to link which opens up the Blink for your escrow.
- You as a seller can refund anytime before it is taken by the person you are trading with.
- Contract address:
Dic2Ci9AfyNFJcQCZQb7YJnT8LAPkLA9MJwsQqz4idC3
- Repo: https://github.com/Manice18/blink-escrow-contract.git
- Original: https://github.com/deanmlittle/anchor-escrow-2024 (Note: I haven't changed any code from the original contract, just ran on my local machine and got the contract address).