Skip to main content

Ethereum JSON-RPC

Coinweb exposes an EVM-compatible chain through the standard Ethereum JSON-RPC API.

The RPC endpoint is available at https://api-cloud.coinweb.io/eth-rpc-service (in general, https://{coinweb-node}/eth-rpc-service).

This EVM-compatible chain exposes an ERC-20 interface for all Coinweb-native tokens, as well as CWEB transfers, CWEB being the native token for this chain.

This means that integrations can use the same interface as for the Ethereum family of blockchains.

The chain parameters are:

ChainParameterValue
DevnetChainID5777575191361 ( 0x54132512341 )
CurrencyCWEB
BNBChainID2222222 ( 0x21e88e )
CurrencyCWEB
function name() public view returns (string)
function symbol() public view returns (string)
function decimals() public view returns (uint8)
// function totalSupply() public view returns (uint256)
function balanceOf(address _owner) public view returns (uint256 balance)
// function transfer(address _to, uint256 _value) public returns (bool success)
// function transferFrom(address _from, address _to, uint256 _value) public returns (bool success)
// function approve(address _spender, uint256 _value) public returns (bool success)
// function allowance(address _owner, address _spender) public view returns (uint256 remaining)

JSON-RPC commands supported:


Coinweb © 2024