Smart Contracts
This section has been reorganized. Please visit the new Smart Contracts documentation.
TOS uses TAKO, an eBPF-inspired smart contract runtime where contracts are written in Rust using the tako_sdk crate.
New Documentation
Smart Contracts Overview
Learn about TAKO, the Rust-based smart contract platform
TAKO SDK ReferenceComplete API reference for the tako_sdk crate
Contract ExamplesERC20, VRF, Referral rewards, and more
Deployment GuideHow to deploy contracts to TOS Network
Quick Example
#![no_std]
#![no_main]
use tako_sdk::*;
#[no_mangle]
pub extern "C" fn entrypoint() -> u64 {
log("Hello from TOS!");
SUCCESS
}See the full documentation for more details.
Last updated on