Step through the dock. Which Saturn protocol are you building for today?
A complete developer reference for every public method a builder can call.
Saturn contracts are deployed on Phantasma. Use the
phantasma-sdk-ts or any Phantasma-compatible library to call them.
Every write method requires the caller to be a wallet witness; read methods can
be called from anywhere.
npm install phantasma-sdk-ts
const api = new PhantasmaAPI(rpcUrl);
const script = sb.begin()
.callContract("saturnrouter", "getPoolInfo", [poolId])
.endScript();
const res = await api.invokeRawScript("main", script);
// Poltergeist / Ecto or phantasma-ts builder.
// Call a public write like saturnswap.swap(...).
// The user signs; their wallet becomes the witness.
// Ready-made scripts for every Saturn contract:
// github.com/Infinite-Star-Studios/
// SaturnDex4ExampleScripts
git clone https://github.com/Infinite-Star-Studios/SaturnDex4ExampleScripts.git
Join the Saturn builder community, grab ready-to-run example scripts, and ship faster on Phantasma.