Railnet SDK
TypeScript SDK for the Railnet protocol, built on viem. It reads the protocol's contracts and builds the calls that write to them. It sends nothing. Every write is a call you simulate and send with viem or wagmi.
Getting started
Install the package and make a first read.
Guides
Deploy, deposit, operate, handle a revert.
Reference
Every action, hook and type.
AI Agents
Intent skills, llms.txt and the MCP server.
Quick Start
import { , } from 'viem'
import { } from 'viem/chains'
import { } from '@railnetorg/railnet-sdk'
const = ({
: ,
: (),
})
const = await (, {
: '0x...',
: '0x...',
})
.(.) // shares held
.(.) // equivalent asset valuePackages
| Export | Contents |
|---|---|
@railnetorg/railnet-sdk | actions, call builders, ABIs, addresses, types |
@railnetorg/railnet-sdk/react | hooks and query options, on wagmi and TanStack Query |
@railnetorg/railnet-sdk/staging | addresses of the staging deployments |
The protocol itself is documented at docs.railnet.org.