Back to UCX

UCX Smart Contracts

Deployed Contracts on UniChain

UCX Token:

Token Factory:

Token Locker:

Integration Example

Here's how to interact with the UCX Token on UniChain using ethers.js:

import { ethers } from 'ethers';

// Network Configuration
const NETWORK_CONFIG = {
  chainId: 130,
  rpcUrl: 'https://api.mainnet.abs.xyz',
  explorerUrl: 'https://uniscan.xyz'
};

// Contract Addresses
const UCX_ADDRESS = '0x1234...5678';
const UCX_ABI = [...]; // Token ABI

async function getBalance(address) {
  const provider = new ethers.providers.JsonRpcProvider(NETWORK_CONFIG.rpcUrl);
  const contract = new ethers.Contract(UCX_ADDRESS, UCX_ABI, provider);
  const balance = await contract.balanceOf(address);
  return ethers.utils.formatUnits(balance, 18);
}

UniChain Network Features

  • High throughput and low latency
  • EVM compatible smart contracts
  • Low transaction fees
  • Fast block confirmation times

Security Considerations

  • Always verify contract addresses on UniChainScan before interaction
  • Review transaction parameters and gas estimates (ETH)
  • Implement proper access controls and error handling
  • Test thoroughly on testnet before mainnet deployment