Skip to content

MeatMask Connection

VoidChain now supports MetaMask with a virtual ERC20 adapter

VoidChain has completed its MetaMask wallet integration. Developers and users can connect to the VoidChain network through MetaMask to query and use assets on the chain.

The integration uses a virtual smart contract adapter (a precompiled adapter, not a deployed contract). It addresses the mismatch between the 9 decimal places of VoidChain’s native TC and MetaMask’s default 18-decimal wei model for native currencies.

Important information

The adapter is a native precompiled virtual address within the chain, with no independently deployed contract or contract audit risk. The underlying asset remains native VoidChain TC, with the same security as the native mainnet ledger and no additional custody or bridging logic.

How it works

  1. The virtual adapter exposes standard ERC20 interfaces (balanceOf and the Transfer event), following MetaMask’s ERC20 token reading conventions.
  2. Internally, it maps to the underlying VoidChain TC account balance and automatically converts the precision used for display.
  3. Users can import this ERC20 token into MetaMask to view balances and interact with DApps.
  4. Transactions, the ledger, and consensus continue to follow native VoidChain rules, without changing the mainnet asset model.

Network parameters (ChainID)

  • Mainnet transaction ChainID: 36000

📌 Virtual adapter reference configuration (copy directly into MetaMask)

{
  "token_address": "0x0000000000000000000000000000000000abcdef",
  "standard": "ERC20",
  "decimals": 9,
  "symbol": "TCP",
  "name": "VoidChain TC",
  "event_topic_transfer": "0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef"
}

Import into MetaMask

  1. Add a network in MetaMask: RPC URL https://wallet.voidchain.net/api.
    ChainID 36000, currency symbol TC.
    Block explorer URL https://explorer.voidchain.net/#/.
  2. Go to “Tokens” → “Import tokens” and select “Custom token”.
  3. Copy token_address from the configuration above into the token contract address field.
  4. MetaMask will automatically read the symbol and decimal places. Confirm to import.
  5. After importing, you can view your TC balance. TC and TCP are always equivalent; transfers must use TCP. DApps can use the adapter for transfers and queries.

Developer notes

  • Use ChainID 36000 when connecting a DApp to MetaMask. Prefer the virtual adapter’s balanceOf to read TC balances.
  • The Transfer event uses the standard ERC20 topic, so existing EVM components can listen for events.

Reminder

Tokens deployed on VoidChain must implement the following interfaces for seamless integration with MetaMask:

function decimals() external view returns (uint8);
function symbol() external view returns (string memory);
function name() external view returns (string memory);
function supportsInterface(bytes4 interfaceId) external pure returns (bool);
function transfer(address _to, uint256 _value) external returns (bool);
function balanceOf(address _owner) external view returns (uint256);

On this page