jinglescode / mesh-demo-multisig-minting

Home Page:https://mesh-demo-multisig-minting.vercel.app/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Tutorial

Setup

Step 1: Connect Browser Wallet

Step 2: Setup App Wallet

  • create create-mining-transaction.ts file under pages/api
  • get new wallet from https://meshjs.dev/apis/appwallet or your own wallet
  • create koios provider instance
  • initialize AppWallet

Step 3: Create Minting Transaction

Step 4: Call the Minting endpoint

  • install axios
  • create backend folder and index.ts file
  • create post() function
  • create createTransaction() function
  • add await wallet.getUtxos();
  • add await createTransaction(recipientAddress, utxos);
  • add await wallet.signTx(unsignedTx, true);
  • add await wallet.submitTx(signedTx);

Bonus: Listen for TX confirmation

  • add koiosProvider.onTxConfirmed

UI

  • add simple UI look and feel

Vercel

  • sign in Vercel
  • create new project and link it

About

https://mesh-demo-multisig-minting.vercel.app/

License:Apache License 2.0


Languages

Language:TypeScript 72.0%Language:CSS 24.9%Language:JavaScript 3.0%