Skip to content
Quick Start

Quick start

Smart contract Development

Smart contracts are written in TOMB and deployed with pha-deploy:

Connecting to the Chain APIs

Note

Every Phantasma node serves both a JSON-RPC and a REST interface on the same host. In these pages, “RPC” means the node endpoint unless REST or JSON-RPC is called out explicitly.

The interface paths are the same on every node and network:

InterfacePathNotes
JSON-RPC/rpcPrimary programmatic interface (HTTP POST).
REST/api/v1Same methods and argument names as JSON-RPC.
JSON-RPC, REST/rpc/v2, /api/v2The same methods with metadata and NFT property values as real JSON.
API reference/The node root redirects to the interactive Swagger UI.

For example, on mainnet node 1, JSON-RPC is https://pharpc1.phantasma.info/rpc and REST is https://pharpc1.phantasma.info/api/v1. In production, discover live nodes from the network’s peers list instead of hardcoding a single node. Node RPC describes every method and answer.

Mainnet

ResourceEndpoint
Explorerexplorer.phantasma.info
RPC node 1
https://pharpc1.phantasma.info
RPC node 2
https://pharpc2.phantasma.info
RPC node 3
https://pharpc3.phantasma.info
Peers list
https://peers.phantasma.info/mainnet-getpeers.json

Testnet

ResourceEndpoint
Explorertestnet-explorer.phantasma.info
RPC node
https://testnet.phantasma.info
Peers list
https://peers.phantasma.info/testnet-getpeers.json

Devnet

ResourceEndpoint
Explorerdevnet-explorer.phantasma.info
RPC node
https://devnet.phantasma.info
Peers list
https://peers.phantasma.info/devnet-getpeers.json

Phantasma SDKs

Note

Phantasma ships SDKs for C#, Unity, TypeScript/JavaScript, Go, Python, Rust, and C++. Pick the one that matches your stack.