Phantasma SDKs
Phantasma SDKs provide language-specific APIs for RPC calls, key handling, transaction signing, VM script construction, and Carbon workflows.
Script Builder
Every SDK has a ScriptBuilder for VM scripts: contract calls, interop calls,
gas, transfers, staking and NFT operations. The C# methods are documented
under Script Builder; the other SDKs document theirs on their VM pages.
External Calls
External calls, also called interop calls, are VM calls into chain runtime functionality. Use the External Calls reference when a script needs runtime data or chain operations exposed outside a contract API.
Fees Under Gas Model v2
The chain bills every byte a transaction puts in the block, and it escrows SOUL for every storage quantum the transaction adds. A Carbon message therefore carries a gas offer and a storage ceiling, and both have to be set before it is signed. A message signed with a zero offer is never admitted. Fees And Gas describes the rules the chain applies.
Every SDK computes both from the message itself and from the chain’s own gas configuration. Builders carry no prices. The flow is the same in each language: build the message, plan it, sign it, send it. Each SDK also has one call that does all four.
Each SDK documents this on its own fees page:
| SDK | Page |
|---|---|
| TypeScript | Fees And Broadcasting |
| C# | Fees And Broadcasting |
| Unity | Carbon Transactions And Fees |
| Go | Fees And Broadcasting |
| Python | Fees And Broadcasting |
| Rust | Fees And Broadcasting |
| C++ | Fees And Broadcasting |
Supported Languages
- C#
- C++
- Go
- Python
- Rust
- TypeScript (usable from JavaScript)
C# SDK / Godot Engine
The C# SDK is a set of .NET libraries with no engine dependency; a Godot project in C# uses it like any other package.
TypeScript / JavaScript SDK
Go SDK
Python SDK
Rust SDK
Unity SDK / Unity Engine
C++ / Unreal Engine
The C++ SDK is a header-only library with no engine dependency; an Unreal Engine project includes it with its own JSON, HTTP and crypto adapters.