Skip to content

Latest commit

 

History

History

backend-to-backend

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

Treasure Development Kit - Backend-to-Backend Example

Examples showing how to use the vanilla JS/TS (core) Treasure Development Kit package to send backend-to-backend transaction requests. There are currently two supported flows:

  1. account-address: sending transactions on behalf of a Treasure Account user who has already started a session for the provided backend wallet.
  2. backend-wallet: sending transactions as a backend wallet.

Prerequisites

Development

Install dependencies:

pnpm install

Create .env file based on example and fill in with relevant environment variables:

cp .env.example .env

Run scripts:

$ pnpm start:account-address
$ pnpm start:backend-wallet