Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.binibit.com/llms.txt

Use this file to discover all available pages before exploring further.

Connection details

ParameterValue
Chain nameBiniChain
Chain ID(pending mainnet)
RPC URLhttps://rpc.binibit.com
WebSocket URLwss://rpc.binibit.com (when published)
Block explorerhttps://scan.binibit.com
Native currencyBINI
Decimals18

Add to MetaMask

await window.ethereum.request({
  method: "wallet_addEthereumChain",
  params: [{
    chainId: "0x...",                        // hex of chainId
    chainName: "BiniChain",
    nativeCurrency: {
      name: "BINI",
      symbol: "BINI",
      decimals: 18,
    },
    rpcUrls: ["https://rpc.binibit.com"],
    blockExplorerUrls: ["https://scan.binibit.com"],
  }]
});
Once finalized, the chain will be addable via chainlist.org (community list) for easy click-to-add.

ethers.js

import { ethers } from "ethers";

const provider = new ethers.JsonRpcProvider("https://rpc.binibit.com");
const network = await provider.getNetwork();
console.log("Connected to:", network.name, "chainId:", network.chainId);

viem

import { createPublicClient, http } from "viem";

const biniChain = {
  id: /* chainId */,
  name: "BiniChain",
  nativeCurrency: { name: "BINI", symbol: "BINI", decimals: 18 },
  rpcUrls: { default: { http: ["https://rpc.binibit.com"] } },
  blockExplorers: { default: { name: "Binibit Scan", url: "https://scan.binibit.com" } },
};

const client = createPublicClient({
  chain: biniChain,
  transport: http(),
});

Hardhat config

// hardhat.config.js
module.exports = {
  networks: {
    binichain: {
      url: "https://rpc.binibit.com",
      chainId: /* chainId */,
      accounts: [process.env.PRIVATE_KEY],
    },
  },
};

Foundry config

# foundry.toml
[rpc_endpoints]
binichain = "https://rpc.binibit.com"

[etherscan]
binichain = { key = "...", url = "https://scan.binibit.com/api" }

Sandbox / testnet

During the sandbox phase, contracts have been deployed on Base Sepolia (chainId 84532) for development and testing. See BaiDEX → Contracts for testnet addresses. The BiniChain mainnet RPC and chainId values will be published as part of the v2.x rollout.

Architecture

Underlying chain design

RPC

Endpoint usage and limits

Block explorer

scan.binibit.com

Native BINI

Gas token