Skip to content
Complete API Reference

Go SDK Complete API Reference

The public API of the Go SDK, by area: RPC methods, result models, VM and transactions, Carbon.

Pages

PageUse it when
RPC ClientYou need typed RPC wrappers, raw calls, pagination, broadcast helpers, or address-type variants.
RPC Result ModelsYou need fields and helpers returned by account, token, block, transaction, NFT, auction, archive, or network calls.
VM and Transaction APIsYou need keys, addresses, VM script building, transaction signing, binary helpers, or VM object decoding.
Carbon API and Wire FormatYou need Carbon transaction builders, schemas, metadata, fee options, wire structures, signing, or result parsers.
Public API InventoryYou 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.