Build on VTT.
The official TypeScript SDK for the VTT blockchain. Install it from npm and start building in minutes.
import { VttClient } from "@vettor/sdk";
const client = new VttClient("https://testnet.vettor.org");
// Get latest block
const block = await client.getBlock("latest");
console.log("Block:", block.number);
// Get balance
const balance = await client.getBalance("0x...");
console.log("Balance:", balance);Full SDK documentation and examples available on GitHub and npm.
The VTT node exposes a JSON-RPC 2.0 API on port 9944. All methods use the vtt_ namespace.
| METHOD | DESCRIPTION |
|---|---|
| vtt_blockNumber | Returns the latest block number |
| vtt_getBlockByNumber | Returns block data by number |
| vtt_getBalance | Returns the VTT balance for an address |
| vtt_sendRawTransaction | Submits a signed transaction |
| vtt_call | Executes a read-only contract call |
| vtt_getTransactionReceipt | Returns the receipt for a transaction |
See the full documentation for all available methods and parameters.
Write smart contracts in Rust and compile them to WebAssembly (WASM) for deployment on the VTT blockchain. The WASM VM provides deterministic, gas-metered execution with strict resource limits.
Contracts interact with the blockchain through a host ABI that provides access to storage, balance queries, cross-contract calls, and event emission. See the documentation for the full contract development guide.