4EVERLAND Documents
HomeTwitterDiscordBlogs
  • Welcome to 4EVERLAND
  • Get started
    • Our Features
    • Quick Start Guide
      • Registration
      • Login options
        • MetaMask
        • OKX Wallet
        • Binance Web3 Wallet
        • Bitget Wallet
        • Phantom
        • Petra
        • Lilico
      • Usage Introduction
      • Dashboard stats
      • Account
        • Linking Your EVM Wallet to 4EVERLAND Account
        • Balance Alert
    • Billing and Pricing
      • What is LAND?
      • How to Obtain LAND?
      • Pricing Model
      • Q&As
    • Tokenomics
  • HOSITNG
    • What is Hosting?
      • IPFS Hosting
      • Arweave Hosting
        • Auto-Generation of Manifest
      • Internet Computer Hosting
      • Greenfield Hosting
    • Guides
      • Creating a Deployment
        • With Git
        • With IPFS Hash
        • With a Template
      • Site Deployment
      • Domain Management
        • DNS Setup Guide
        • ENS Setup Guide
        • SNS Setup Guide
          • The gateway: 4sol.xyz
        • SPACE ID Setup Guide
      • Project Setting
        • Git
      • Troubleshooting
      • Common Frameworks
    • Hosting Templates Centre
      • Templates Configuration File
    • Quick Addition
      • Implement Github 4EVER Pin
      • Github Deployment Button
    • Hosting API
      • Create Project API
      • Deploy Project API
      • Get Task Info API
      • IPNS Deployment Update API
    • Hosting CLI
  • Storage
    • Bucket
      • IPFS Bucket
        • Get Root CID - Snapshots
      • Arweave Bucket
        • Path Manifests
          • Instructions for Building Manifest
          • Auto-Generation of Manifest
        • Arweave Tags
        • Unleash Arweave
      • Guides
      • Bucket API - S3 Compatible
        • Coding Examples
          • AWS SDK - Go (Golang)
          • AWS SDK - Java
          • AWS SDK - JavaScript
          • AWS SDK - .NET
          • AWS SDK - PHP
          • AWS SDK - Python
          • AWS SDK - Ruby
        • S3 Tags Instructions
      • 4EVER Security Token Service API
      • Bucket Tools
      • Bucket Gateway Optimizer
    • 4EVER Pin
      • Guides
      • Pinning Services API
      • IPFS Migrator
    • Storage SDK
  • Gateways
    • IPFS Gateway
    • IC Gateway
    • Arweave Gateway
    • Dedicated Gateways
      • Gateway Access Controls
      • Video Streaming
      • IPFS Image Optimizer
    • IPNS Manager
      • IPNS Manager API
  • RPC
    • Guides
    • API Keys
    • JSON Web Token (JWT)
    • What's CUs/CUPS
    • WebSockets
    • Archive Node
    • Debug API
    • Chains RPC
      • BSC / opBNB
      • Ethereum
      • Optimism
      • Polygon
      • Taiko
  • AI
    • AI RPC
      • Quick Start
      • Models
      • API Keys
      • Requests & Responses
      • Parameters
    • 4EVER Chat
  • RaaS - Beta
    • What's Rollups?
    • 4EVER Rollup Stack
  • DePIN
    • 4EVER Network
    • Storage Nodes
  • More
    • Use Cases
      • Livepeer
      • Lens Protocol
      • Optopia.ai
      • Linear Finance
      • Snapshot
      • Tape
      • Taiko
      • Hey.xyz
      • SyncSwap
    • Community
    • Tutorials
    • Security
    • 4EVERLAND FAQ
Powered by GitBook
On this page
  • API Endpoints
  • Example
  • Parameters
  • Request Example
  • Response Example
  • Networks
  • BNB Smart Chain Testnet
  • opBNB Chain Mainnet
  • opBNB Chain Testnet
  • Block range limitaion
  1. RPC
  2. Chains RPC

BSC / opBNB

Last updated 10 months ago

The 4EVERLAND RPC follows the JSON-RPC data format standard for Ethereum and supports all the methods in . This tutorial will provide an example of the request method for . Other methods can be referenced using this example.

API Endpoints

The requested URL, combined with the API Key, is as follows:

Endpoint(https): https://bsc-mainnet.4everland.org/v1/{apikey}

Endpoint(wss): wss://bsc-mainnet.4everland.org/ws/v1/{apikey}

Example

Take method as an example

Parameters

  1. DATA, 20 Bytes - address to check for balance.

  2. QUANTITY|TAG - integer block number, or the string "latest", "earliest" or "pending"

params: ["0x407d73d8a49eeb85d32cf465507dd71d507100c1", "latest"]

Request Example

curl --request POST \
     --url https://bsc-mainnet.4everland.org/v1/1659dfb40aa24bbb8153a677b98064d7 \
     --header 'accept: application/json' \
     --header 'content-type: application/json' \
     --data '
{
  "id": 1,
  "jsonrpc": "2.0",
  "params": [
    "0x145BD3C05D8d3117d133f577fa9af538ba353e8C",
    "latest"
  ],
  "method": "eth_getBalance"
}
'

Response Example

{
  "jsonrpc": "2.0",
  "id": 1,
  "result": "0x2eb9bcf4ec145"
}

Networks

By substituting the URL in the example with the endpoints of other networks, you can request content from other networks.

BNB Smart Chain Testnet

Endpoint(https): https://bsc-testnet.4everland.org/v1/{apikey}

Endpoint(wss): wss://bsc-testnet.4everland.org/ws/v1/{apikey}

opBNB Chain Mainnet

Endpoint(https): https://opbnb-mainnet.4everland.org/v1/{apikey}

Endpoint(wss): wss://opbnb-mainnet.4everland.org/ws/v1/{apikey}

opBNB Chain Testnet

Endpoint(https): https://opbnb-testnet.4everland.org/v1/{apikey}

Endpoint(wss): wss://opbnb-testnet.4everland.org/ws/v1/{apikey}

Block range limitaion

When considering the block range, it is important to note that the response size for the getFilterLogs and getLogs methods varies accordingly. Specifically:

  • Block range exceeding 50K: Unavailable for querying.

  • Block range less than or equal to 100: Experiences no limitation on response size.

  • Block range falling between 100 and 50K: At most, 50K records will be provided in the response.

If you have any questions, please join our , or send us an email at .

Ethereum JSON RPC
eth_getBalance
eth_getBalance
Discord server
contact@4everland.org