Skip to main content

Testnet (TRON Nile)

BCO Protocol contracts are deployed on the TRON Nile testnet for development and integration testing.

Contract Addresses

ContractNile Testnet AddressType
BCOTokenTBDImmutable
DeedRegistryTBDUUPS Proxy
BCOStakingTBDUUPS Proxy
TimelockControllerTBDImmutable

Connecting to Nile

  1. Open TronLink browser extension
  2. Click the network selector (top right)
  3. Select Nile Testnet
  4. Your wallet address is the same across networks

TronWeb Configuration

const TronWeb = require('tronweb');

const tronWeb = new TronWeb({
fullHost: 'https://nile.trongrid.io',
headers: { 'TRON-PRO-API-KEY': 'your-api-key' },
privateKey: 'your-private-key'
});

Hardhat Configuration

// hardhat.config.ts
networks: {
nile: {
url: 'https://nile.trongrid.io/jsonrpc',
accounts: [process.env.DEPLOYER_PRIVATE_KEY],
}
}

Getting Test TRX

Test TRX for the Nile network can be obtained from the official TRON faucet:

  1. Visit the Nile Faucet
  2. Enter your TRON wallet address
  3. Complete the verification
  4. Receive test TRX (usually 10,000 TRX)

Differences from Mainnet

ParameterNile TestnetMainnet
Network IDNileMainnet
TRXTest tokens (no value)Real tokens
Block time~3 seconds~3 seconds
Explorernile.tronscan.orgtronscan.io
API endpointnile.trongrid.ioapi.trongrid.io
Admin transfer delayShorter (for testing)48 hours
Timelock delayShorter (for testing)72 hours

Testing Workflow

1. Get test TRX from faucet
2. Connect to Nile in TronLink
3. Interact with testnet contracts
4. Verify behavior matches documentation
5. Deploy to mainnet when ready

All contract functions, events, and errors behave identically on testnet and mainnet. The only differences are configuration parameters (delays, limits) which may be set to shorter values on testnet for faster testing cycles.