Backend Guide

Use the TS SDK in Node.js or server-side tooling to build scripts, sign transactions with private keys, and call RPC directly.

  1. Create a PhantasmaAPI instance.

  2. Build a script with ScriptBuilder.

  3. Create and sign a Transaction.

  4. Broadcast with sendRawTransaction and poll getTransaction for execution state.

For Carbon token flows, use the Carbon helpers and sendCarbonTransaction.

circle-info

Start with the step-by-step guide: Quickstart.

circle-info

For Carbon token flows, see Carbon Workflows.

Examples

Create a Transaction

Create Script Call

Creating a New Address

Decode Transfer Events

Get a Block by Height

Get a Transaction

Get Data from New Blocks

Get User Balances

Importing a Wallet

Invoke a Script

Send a Transaction

Sign a Transaction

Transfer Tokens

Create New Carbon Token

Create New Carbon Token Series

Mint New Carbon NFT

Infuse an NFT

Last updated