Skip to content
Complete API Reference

C++ SDK Complete API Reference

The public API of the C++ SDK: the RPC client and its result structs, the key, VM and transaction types, the Carbon API and the full declaration inventory.

Pages

PageUse it when
RPC ClientYou need high-level RPC calls, low-level JSON builders/parsers, or method caveats.
RPC Result ModelsYou need result model groups and where to find their fields.
VM and Transaction APIsYou need key/address handling, VM scripts, transaction signing, or binary helpers.
Carbon API and Wire FormatYou need Carbon serialization, schemas, token/series/NFT builders, fee options, signing, or result parsers.
Public API InventoryYou need the complete list of public declarations exposed by headers under include/**.

Header And Adapter Rules

JSON and HTTP adapters are selected before including PhantasmaAPI.h; crypto adapters such as Adapters/PhantasmaAPI_openssl.h are included immediately after PhantasmaAPI.h. Carbon transaction signing uses the crypto adapter.

The Carbon headers expose a mix of view structs and owned helper structs. When a builder returns a TxEnvelope, keep it alive until signing or serialization is complete because it owns buffers referenced by the TxMsg.