API Reference
Complete API reference for the Netrun SDK.
Netrun Class
new Netrun(config: NetrunConfig)
interface NetrunConfig {
network: "mainnet" | "devnet" | "localnet";
rpcUrl?: string;
commitment?: Commitment;
}Assets API
netrun.assets.create(params: CreateAssetParams): Promise<Asset> netrun.assets.update(address: string, params: UpdateParams): Promise<Asset> netrun.assets.burn(address: string): Promise<void> netrun.assets.transfer(address: string, to: string): Promise<void> netrun.assets.get(address: string): Promise<Asset> netrun.assets.list(owner?: string): Promise<Asset[]>
Collections API
netrun.collections.create(params: CreateCollectionParams): Promise<Collection> netrun.collections.update(address: string, params: UpdateParams): Promise<Collection> netrun.collections.verify(collection: string, asset: string): Promise<void> netrun.collections.get(address: string): Promise<Collection>
Modules API
netrun.modules.list(): Promise<Module[]> netrun.modules.get(id: string): Promise<Module> netrun.modules.submit(params: SubmitParams): Promise<Submission>