Go SDK Complete API Reference
The public API of the Go SDK, by area: RPC methods, result models, VM and transactions, Carbon.
Pages
| Page | Use it when |
|---|---|
| RPC Client | You need typed RPC wrappers, raw calls, pagination, broadcast helpers, or address-type variants. |
| RPC Result Models | You need fields and helpers returned by account, token, block, transaction, NFT, auction, archive, or network calls. |
| VM and Transaction APIs | You need keys, addresses, VM script building, transaction signing, binary helpers, or VM object decoding. |
| Carbon API and Wire Format | You need Carbon transaction builders, schemas, metadata, fee options, wire structures, signing, or result parsers. |
| Public API Inventory | You need the complete list of exported identifiers under pkg/**. |
Import Policy
Prefer package-level imports that match the feature being used:
import (
"github.com/phantasma-io/phantasma-sdk-go/pkg/carbon"
"github.com/phantasma-io/phantasma-sdk-go/pkg/cryptography"
"github.com/phantasma-io/phantasma-sdk-go/pkg/rpc"
"github.com/phantasma-io/phantasma-sdk-go/pkg/rpc/response"
scriptbuilder "github.com/phantasma-io/phantasma-sdk-go/pkg/vm/script_builder"
)The SDK keeps lower-level packages public for wire tooling. Application code should not depend on lower-level internals when a higher-level package provides the same operation.