Skip to content

Latest commit

 

History

1 Commit

Folders and files

NameName
Last commit message
Last commit date
 
 

Repository files navigation

BrainArk Network

Network configuration and connection guide for BrainArk Blockchain — a layer-1 network built on Hyperledger Besu, purpose-built for Real World Asset (RWA) tokenization.

Network Details

Parameter Value
Network Name BrainArk Blockchain
Chain ID 1236
Native Currency BAK
Currency Decimals 18
RPC URL https://rpc.brainark.online
Block Explorer https://explorer.brainark.online
Consensus IBFT 2.0 (Proof of Authority)

Add to MetaMask

Click Add Network in MetaMask and enter the details above, or use the one-click button at rwa.brainark.online.

Manual Configuration

{
  "chainName": "BrainArk Blockchain",
  "chainId": "0x4D4",
  "nativeCurrency": {
    "name": "BAK",
    "symbol": "BAK",
    "decimals": 18
  },
  "rpcUrls": ["https://rpc.brainark.online"],
  "blockExplorerUrls": ["https://explorer.brainark.online"]
}

Add via JavaScript (ethers.js)

await window.ethereum.request({
  method: "wallet_addEthereumChain",
  params: [{
    chainId: "0x4D4",
    chainName: "BrainArk Blockchain",
    nativeCurrency: { name: "BAK", symbol: "BAK", decimals: 18 },
    rpcUrls: ["https://rpc.brainark.online"],
    blockExplorerUrls: ["https://explorer.brainark.online"]
  }]
});

Add via viem / wagmi

import { defineChain } from "viem";

export const brainarkChain = defineChain({
  id: 1236,
  name: "BrainArk Blockchain",
  nativeCurrency: { name: "BAK", symbol: "BAK", decimals: 18 },
  rpcUrls: {
    default: { http: ["https://rpc.brainark.online"] }
  },
  blockExplorers: {
    default: { name: "BrainArk Explorer", url: "https://explorer.brainark.online" }
  }
});

Connect with ethers.js

const { ethers } = require("ethers");

const provider = new ethers.JsonRpcProvider("https://rpc.brainark.online");

// Verify connection
const network = await provider.getNetwork();
console.log(network.chainId); // 1236n

// Get BAK balance (BAK is native coin — use getBalance, NOT balanceOf)
const balance = await provider.getBalance("0xYourAddress");
console.log(ethers.formatEther(balance), "BAK");

Connect with viem

import { createPublicClient, http, formatEther } from "viem";
import { brainarkChain } from "./chain";

const client = createPublicClient({
  chain: brainarkChain,
  transport: http("https://rpc.brainark.online")
});

// Get BAK balance
const balance = await client.getBalance({ address: "0xYourAddress" });
console.log(formatEther(balance), "BAK");

Important Notes

  • BAK is the native coin (like ETH on Ethereum). Use provider.getBalance(), not balanceOf().
  • For payable contract calls, send BAK as { value: amount }.
  • The chain uses IBFT 2.0 consensus — fast finality, ~2 second block times.
  • Gas price: 1000 wei (very low fees by design).

Key Contract Addresses

Contract Address
AssetRegistryCore (proxy) 0xFf76Ea2EED588D0bFAF5466Bd0F20C3D980bd95D
StakingManager (proxy) 0x3071300Ee44211E3401925636f0D4F3F11eb13f5
Marketplace (proxy) 0x5C1A47d5E813211025e6653099BAAc89E8DeF9C3
BrainArkVault (proxy) 0x4210D86Db8b8B3Be0613fF924CD4AF0aDEC9C1A7
ARBridge 0xAf4bF9ACdd4e35eB32Ed06c87C7C1E0C96501964

Links

License

MIT

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors