Skip to content

APIs

Beam API

To interact with the Beam Network, we offer you a powerful API accessible via HTTP or through dedicated server-side SDKs. Currently, SDKs are available for Node.js (TypeScript) and C# (RestSharp). If you are looking for support in another language, please contact us.

To learn more about the Beam API, please see the dedicated Beam SDK docs, which include guides, references, and examples.

Beam Subnet-EVM API

The Subnet-EVM APIs mirror the Coreth APIs with one exception - Avalanche Specific APIs, identifiable by the ‘avax.’ prefix. In addition, Subnet-EVM supports standard Ethereum APIs, increasing its applicability. For in-depth information about Coreth APIs, please refer here.

Moreover, Subnet-EVM introduces unique APIs not present in Coreth:

  • eth_feeConfig: Subnet-EVM comes with an API request for getting fee config at a specific block. You can use this API to check your activated fee config. (Details)

  • eth_getChainConfig: eth_getChainConfig returns the Chain Config of the blockchain. This API is enabled by default with internal-blockchain namespace. (Details)

  • eth_getActivePrecompilesAt: eth_getActivePrecompilesAt returns activated precompiles at a specific timestamp. If no timestamp is provided it returns the latest block timestamp. This API is enabled by default with internal-blockchain namespace. (Details)

JSON-RPC Endpoint

To interact with the Beam EVM via the JSON-RPC endpoint:

/ext/bc/blockchainID/rpc

Where blockchainID is the ID of the blockchain running the EVM. Find the correct blockchain ID here for Mainnet or Testnet.

Example Call

curl -X POST --data '{
"jsonrpc": "2.0",
"method": "eth_feeConfig",
"params": [
"latest"
],
"id": 1
}' -H 'content-type:application/json;' 127.0.0.1:9650/ext/bc/2tmrrBo1Lgt1mzzvPSFt73kkQKFas5d1AP88tv9cicwoFp8BSn/rpc

This calls the function eth_feeConfig for the Beam Mainnet (Blockchain ID 2tmrrBo1Lgt1mzzvPSFt73kkQKFas5d1AP88tv9cicwoFp8BSn).

APIs Overview

Beam’s API overview. Find a variety of APIs each designed for a different purpose.

TitleDescription
Beam APIBeam specific API
AvalancheGoAvalancheGo APIs, Postman collection, public servers, and release notes
AvalancheJSAvalancheJS APIs
Avalanche Metrics APIAvalanche Metrics API
Glacier APIHigh-performance API for easy access to indexed blockchain data