Skip to Content
Native FeaturesOverview

Native Features

TOS Network provides powerful features at the protocol level rather than as smart contracts. This means:

  • Lower gas costs - No contract overhead
  • Better performance - Optimized native code
  • Higher security - Audited core implementation
  • Simpler integration - Standard syscall interface

Feature Status

FeatureStatusPriorityDescription
Referral SystemImplementedP0Multi-level relationship tracking
Batch TransferImplementedP0Up to 500 recipients per transaction
VRF RandomnessImplementedP0Verifiable random numbers
A2A ProtocolImplementedP0Agent-to-Agent communication
TOS Name ServiceImplementedP0Human-readable account names
Compliance & KYCImplementedP0Protocol-level identity verification
Privacy TransferImplementedP1Encrypted balances and transfers
Scheduled TasksImplementedP1Time-triggered contract execution
MEV ProtectionPartialP1Front-running prevention
Native NFTImplementedP2Protocol-level NFT support
Token EconomicsImplementedP0TOS tokenomics and distribution
DeFi EcosystemPartialP1Complete DeFi infrastructure
Arbitration SystemPlannedP2Dispute resolution for escrows
Atomic SwapPlannedP2Cross-chain atomic exchanges
Cross-Chain BridgePlannedP3Bridge to other blockchains

Implemented Features

How Native Features Work

Native features are accessed through syscalls - special functions that smart contracts can call to interact with protocol-level capabilities.

Example: Using Referral Syscalls

use tako_sdk::*; #[no_mangle] pub extern "C" fn distribute_rewards() { let buyer = get_tx_sender(); let amount = get_call_value(); // Native syscall: get 3 levels of uplines let (uplines, count) = get_uplines(&buyer, 3).unwrap(); // Distribute rewards let rates = [1000u64, 500, 300]; // 10%, 5%, 3% for i in 0..(count as usize).min(3) { let reward = amount * rates[i] / 10000; if reward > 0 { transfer(&uplines[i], reward).ok(); } } }

Example: Using VRF Randomness

use tako_sdk::*; fn roll_dice() -> u8 { let seed = get_block_hash(); // Native syscall: generate VRF random let output = vrf_random(&seed).expect("VRF failed"); // Map to dice value 1-6 (output.random[0] % 6) + 1 }

Cost Comparison

Native features are significantly cheaper than smart contract implementations:

OperationNative (TOS)Smart Contract (TRON)Savings
Bind referrer$0.01$0.5098%
Query 10 uplines$0.001$0.1099%
VRF random$0.01$0.25 (Chainlink)96%
100-recipient batch$0.05$10.0099.5%
Private transfer$0.02N/A-

Architecture

┌─────────────────────────────────────────────────────┐ │ Smart Contracts │ │ (TAKO Runtime) │ └───────────────────────┬─────────────────────────────┘ │ syscalls ┌───────────────────────┴─────────────────────────────┐ │ Native Features │ │ ┌─────────┬─────────┬─────────┬─────────────────┐ │ │ │Referral │ VRF │ Privacy │ Scheduled Tasks │ │ │ │ System │ Random │ (UNO) │ │ │ │ └─────────┴─────────┴─────────┴─────────────────┘ │ └───────────────────────┬─────────────────────────────┘ ┌───────────────────────┴─────────────────────────────┐ │ TOS Blockchain Core │ │ (Consensus, State, Storage) │ └─────────────────────────────────────────────────────┘

Getting Started

  1. Choose a feature from the list above
  2. Read the documentation for syscall interfaces
  3. Use the TAKO SDK in your smart contracts
  4. Test on devnet before deploying to mainnet

All native features are available on testnet for development and testing.

Last updated on