Skip to Content
EcosystemEcosystem Overview

TOS Network Ecosystem Integration Hub

Connect your project with the growing TOS Network ecosystem through our comprehensive integration guides and partner APIs.

๐Ÿš€ Quick Start Guide

1. Build from Source

Clone and build the TOS Network node software:

# Clone the repository git clone https://github.com/tos-network/tos.git cd tos # Build for local platform (recommended for development) ./build_local.sh # Or build manually with cargo cargo build --release

Supported Platforms:

  • Linux (x86_64, ARM64, ARMv7)
  • macOS (Intel x86_64, Apple Silicon arm64)
  • Windows (x86_64)

2. Configure Environment

Copy and configure your environment:

# Copy environment template cp .env.example .env

Edit .env with your settings:

# Network selection TOS_NETWORK=testnet # mainnet or testnet # Logging RUST_LOG=info # debug/info/warn/error # Daemon configuration TOS_RPC_BIND_ADDRESS=0.0.0.0:8080 TOS_P2P_BIND_ADDRESS=0.0.0.0:2125 # Mining configuration TOS_MINER_ADDRESS=your_wallet_address_here TOS_MINER_THREADS=4 # Testnet seed nodes TOS_PRIORITY_NODES=157.7.65.157:2125,157.7.78.65:2125,157.7.192.216:2125

3. Run the Daemon

Start the TOS Network daemon:

# Run with default settings ./build/local/tos_daemon --network testnet # Or with custom configuration ./build/local/tos_daemon \ --network testnet \ --dir-path /var/run/tos/data \ --rpc-bind-address 0.0.0.0:8080 \ --p2p-bind-address 0.0.0.0:2125 \ --priority-nodes 157.7.65.157:2125

4. Run with Docker

For containerized deployment:

# Copy environment configuration cp .env.example .env # Start daemon only docker-compose up tos-daemon # Start daemon + miner docker-compose --profile miner up # Start all services (daemon + miner + wallet) docker-compose --profile miner --profile wallet up

5. Use the Wallet

The TOS wallet supports account management and transactions:

# Run wallet CLI ./build/local/tos_wallet # Example: Transfer TOS ./build/local/tos_wallet transfer \ --address tos1qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq8cczjp \ --amount 10.5

6. Start Mining

Connect miner to your daemon:

# Set environment variables export TOS_DAEMON_URL=ws://localhost:8080 export TOS_MINER_ADDRESS=your_wallet_address export TOS_MINER_THREADS=4 # Start mining ./build/local/tos_miner

๐Ÿ› ๏ธ Development Tools

Project Structure

tos/ โ”œโ”€โ”€ common/ # Shared libraries (crypto, tx, rpc, network) โ”œโ”€โ”€ daemon/ # Blockchain node daemon โ”œโ”€โ”€ miner/ # Mining software โ”œโ”€โ”€ wallet/ # Wallet application โ”œโ”€โ”€ genesis/ # Genesis block generator โ”œโ”€โ”€ tck/ # Test Compatibility Kit โ””โ”€โ”€ proto/ # Protocol Buffers definitions

RPC Endpoints

The daemon exposes HTTP/JSON-RPC on port 8080:

# Health check curl http://localhost:8080/health # Example RPC call curl -X POST http://localhost:8080/rpc \ -H "Content-Type: application/json" \ -d '{"jsonrpc":"2.0","method":"get_block_height","params":[],"id":1}'

Testing Framework

TOS includes a comprehensive Test Compatibility Kit (TCK):

# Run all tests cargo test --workspace # Run specific component tests cargo test -p tos_daemon cargo test -p tos_wallet # TCK structure tck/ โ”œโ”€โ”€ contracts/ # 58+ test contracts โ”œโ”€โ”€ tests/ # 62+ test suites โ”œโ”€โ”€ specs/ # Specification tests โ”œโ”€โ”€ scenarios/ # Integration scenarios โ””โ”€โ”€ fuzz/ # Fuzz testing

Build Scripts

# Local development build ./build_local.sh # Cross-platform release build (requires `cross`) cargo install cross ./build_all.sh # Docker image build ./docker-build.sh # Build daemon ./docker-build.sh --app tos_miner --tag v1.0.0 # Build miner ./docker-build.sh --all --tag latest # Build all

๐Ÿ“‹ Integration Checklist

Pre-Integration

  • Review partner documentation
  • Obtain necessary API credentials
  • Set up development environment
  • Plan integration architecture
  • Define testing strategy

Development Phase

  • Implement core integration logic
  • Add error handling and retries
  • Implement authentication/authorization
  • Add logging and monitoring
  • Write comprehensive tests

Testing Phase

  • Unit tests for all functions
  • Integration tests with partner APIs
  • Load testing for high-volume scenarios
  • Security testing and penetration testing
  • User acceptance testing

Production Deployment

  • Configure production environment
  • Set up monitoring and alerting
  • Implement rate limiting and circuit breakers
  • Deploy with zero downtime strategy
  • Monitor initial rollout

Post-Deployment

  • Monitor performance metrics
  • Track integration health
  • Optimize based on usage patterns
  • Regular security audits
  • Partner relationship management

๐Ÿค Partner Program

Become a TOS Network Partner

Join our growing ecosystem of integration partners:

  1. Apply for Partnership

    • Submit integration proposal
    • Technical review process
    • Partnership agreement
  2. Technical Integration

    • Access to partner APIs
    • Technical support team
    • Integration testing environment
  3. Go-to-Market Support

    • Joint marketing opportunities
    • Co-branded materials
    • Event participation
  4. Ongoing Partnership

    • Regular technical reviews
    • Feature collaboration
    • Revenue sharing opportunities

Partner Benefits

  • Technical Support: Dedicated integration support team
  • Marketing Support: Joint promotional opportunities
  • Priority Access: Early access to new features and APIs
  • Revenue Sharing: Earn from successful integrations
  • Ecosystem Growth: Be part of the growing TOS Network

๐Ÿ†˜ Support and Resources

Technical Support

Partner Resources

  • Partner Portal: Access exclusive resources and tools
  • Technical Documentation: Comprehensive API documentation
  • Sample Code: Ready-to-use integration examples
  • Best Practices: Proven integration patterns

Community

  • Developer Forum: Community-driven support
  • Monthly Calls: Technical discussion sessions
  • Hackathons: Build and showcase integrations
  • Conferences: Network with other partners

Ready to integrate? Choose your integration type above and start building with TOS Networkโ€™s comprehensive ecosystem!

โ€œDonโ€™t Trust, Verify itโ€ - All integrations are built with transparency and verifiability at their core!

Last updated on