Backend
Use the TS SDK in Node.js or server-side tooling to build scripts, sign transactions with private keys, and call RPC directly.
Recommended Flow
- Create a
PhantasmaAPIinstance. - Build a script with
ScriptBuilder. - Create and sign a
Transaction. - Broadcast with
sendRawTransactionand pollgetTransactionfor execution state.
For Carbon flows, build the message with a Carbon helper and pass it to
sendTransaction, which plans the fee, signs and broadcasts. Use
sendCarbonTransaction when the envelope is already signed and serialized.
Note
Start with the step-by-step guide: Quickstart.
Note
For Carbon token flows, see Carbon Workflows and Fees And Broadcasting.
Examples
Create New Carbon Token Series
Note
If you want to see full projects, check: