Vanko App
Documentation

Complete guide to building real-time finance applications on BSC with Vanko App protocol

Getting Started

What is Vanko App?

Vanko App is a protocol for real-time finance on BSC (Binance Smart Chain). It enables:

  • Token Streaming: Continuous token flows
  • Vesting Schedules: Trustless token lockups
  • Escrow Systems: Secure peer-to-peer payments
  • DAO Treasury: Automated distributions

Quick Start

npm install @vanko/sdk
import { VankoClient } from '@vanko/sdk';

const vanko = new VankoClient({
  network: 'bsc-mainnet',
  privateKey: process.env.PRIVATE_KEY
});

// Create a token stream
const stream = await vanko.createStream({
  recipient: '0x...',
  token: '0x...',
  amount: '1000000000000000000', // 1 token
  duration: 30 * 24 * 60 * 60 // 30 days
});

API Reference

Core Methods

createStream()

Creates a new token stream

vanko.createStream(options: StreamOptions)

createVesting()

Creates a vesting schedule

vanko.createVesting(options: VestingOptions)

createEscrow()

Creates an escrow contract

vanko.createEscrow(options: EscrowOptions)

Examples

Payroll Streaming

Stream salaries continuously to team members:

// Stream $USDC salary for 30 days
const payrollStream = await vanko.createStream({
  recipient: employeeWallet,
  token: USDC_ADDRESS,
  amount: ethers.utils.parseUnits('3000', 6), // $3000
  duration: 30 * 24 * 60 * 60, // 30 days
  startTime: Math.floor(Date.now() / 1000)
});

Team Vesting

Create trustless vesting for team tokens:

// 2-year vesting with 6-month cliff
const vesting = await vanko.createVesting({
  beneficiary: teamMemberWallet,
  token: VANKO_TOKEN,
  amount: ethers.utils.parseUnits('10000', 18),
  duration: 2 * 365 * 24 * 60 * 60, // 2 years
  cliff: 6 * 30 * 24 * 60 * 60 // 6 months
});

Contract Addresses

BSC Mainnet

Vanko Protocol0x...coming soon
$VANKO Token0x...coming soon
Streaming Factory0x...coming soon

Support & Community