Skip to content

Manice18/blink-escrow

Repository files navigation

blinkescrow

Blink Escrow - Web3 Escrow Service with latest Solana Blinks.

Setting up

  • 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

Usage

Creating Escrow:

  • 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.

Sharing your escrow for taking:

  • 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 Details: