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:
account-address
: sending transactions on behalf of a Treasure Account user who has already started a session for the provided backend wallet.backend-wallet
: sending transactions as a backend wallet.
- >= Node 22.12.0
- AWS KMS-configured backend wallet (see docs to learn more)
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