Skip to content

Commit

Permalink
Merge pull request #529 from MoralisWeb3/add-opbnb-rpc-docs
Browse files Browse the repository at this point in the history
added opbnb
  • Loading branch information
bharathbabu-moralis authored Oct 28, 2024
2 parents 68f8210 + 879487e commit 758e39e
Show file tree
Hide file tree
Showing 3 changed files with 109 additions and 0 deletions.
65 changes: 65 additions & 0 deletions docs/07-rpc-nodes/reference/13-opBNB-json-rpc-api.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
---
title: "opBNB JSON RPC API"
slug: "/rpc-nodes/opbnb-json-rpc-api"
sidebar_position: 12
---

# opBNB JSON RPC API

## Introduction

opBNB is a Layer 2 scaling solution built on BNB Chain, offering fast and affordable transactions while maintaining compatibility with the Ethereum Virtual Machine (EVM). This makes opBNB a great choice for decentralized applications (dApps) that prioritize performance, including DeFi and NFT ecosystems.

## Supported Networks

The opBNB RPC API is available for the following network:

1. **opBNB Mainnet**

## Network Details

| Network | Chain ID | EVM Chain | RPC URLs |
| --------- | ---------- | -------------- | -------------------------------------------------------------------------------- |
| **opBNB** | 0xcc (204) | EvmChain.opBNB | [https://site1.moralis-nodes.com/opbnb/](https://site1.moralis-nodes.com/opbnb/) |
| | | | [https://site2.moralis-nodes.com/opbnb/](https://site2.moralis-nodes.com/opbnb/) |

## Supported RPC Methods

- [eth_blockNumber](/rpc-nodes/reference/eth_blockNumber)
- [eth_call](/rpc-nodes/reference/eth_call)
- [eth_chainId](/rpc-nodes/reference/eth_chainId)
- [eth_createAccessList](/rpc-nodes/reference/eth_createAccessList)
- [eth_estimateGas](/rpc-nodes/reference/eth_estimateGas)
- [eth_feeHistory](/rpc-nodes/reference/eth_feeHistory)
- [eth_gasPrice](/rpc-nodes/reference/eth_gasPrice)
- [eth_getBalance](/rpc-nodes/reference/eth_getBalance)
- [eth_getBlockByHash](/rpc-nodes/reference/eth_getBlockByHash)
- [eth_getBlockByNumber](/rpc-nodes/reference/eth_getBlockByNumber)
- [eth_getBlockTransactionCountByHash](/rpc-nodes/reference/eth_getBlockTransactionCountByHash)
- [eth_getBlockTransactionCountByNumber](/rpc-nodes/reference/eth_getBlockTransactionCountByNumber)
- [eth_getBlockReceipts](/rpc-nodes/reference/eth_getBlockReceipts)
- [eth_getCode](/rpc-nodes/reference/eth_getCode)
- [eth_getLogs](/rpc-nodes/reference/eth_getLogs)
- [eth_getProof](/rpc-nodes/reference/eth_getProof)
- [eth_getStorageAt](/rpc-nodes/reference/eth_getStorageAt)
- [eth_getTransactionByHash](/rpc-nodes/reference/eth_getTransactionByHash)
- [eth_getTransactionByBlockHashAndIndex](/rpc-nodes/reference/eth_getTransactionByBlockHashAndIndex)
- [eth_getTransactionByBlockNumberAndIndex](/rpc-nodes/reference/eth_getTransactionByBlockNumberAndIndex)
- [eth_getTransactionCount](/rpc-nodes/reference/eth_getTransactionCount)
- [eth_getTransactionReceipt](/rpc-nodes/reference/eth_getTransactionReceipt)
- [eth_getUncleByBlockHashAndIndex](/rpc-nodes/reference/eth_getUncleByBlockHashAndIndex)
- [eth_getUncleByBlockNumberAndIndex](/rpc-nodes/reference/eth_getUncleByBlockNumberAndIndex)
- [eth_getUncleCountByBlockHash](/rpc-nodes/reference/eth_getUncleCountByBlockHash)
- [eth_getUncleCountByBlockNumber](/rpc-nodes/reference/eth_getUncleCountByBlockNumber)
- [eth_maxPriorityFeePerGas](/rpc-nodes/reference/eth_maxPriorityFeePerGas)
- [eth_sendRawTransaction](/rpc-nodes/reference/eth_sendRawTransaction)

## Supported Extended RPC Methods

- [eth_getTransactions](/rpc-nodes/reference/extended-rpc/eth_getTransactions)
- [eth_getDecodedTransactions](/rpc-nodes/reference/extended-rpc/eth_getDecodedTransactions)
- [eth_getTokenBalances](/rpc-nodes/reference/extended-rpc/eth_getTokenBalances)
- [eth_getTokenPrice](/rpc-nodes/reference/extended-rpc/eth_getTokenPrice)
- [eth_getTokenMetadata](/rpc-nodes/reference/extended-rpc/eth_getTokenMetadata)
- [eth_getNFTBalances](/rpc-nodes/reference/extended-rpc/eth_getNFTBalances)
- [eth_getNFTCollections](/rpc-nodes/reference/extended-rpc/eth_getNFTCollections)
32 changes: 32 additions & 0 deletions docs/configs/api-reference/evmChainData.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1202,6 +1202,38 @@ const chainData = [
reason: "Coming soon",
},
},
{
name: "opBNB",
logo: "/img/content/opbnb.png",
type: "Mainnet",
chainID: "0xcc (204)",
evmChain: "EvmChain.opBNB",
isNew: false,
evmApi: {
supported: false,
internalTxs: false,
erc20Swaps: false,
nftTrades: false,
reason: "Coming soon",
queryParams: ["n/a"],
},
streamsApi: {
supported: false,
reason: "Coming soon",
internalTxs: false,
},
rpcNodes: {
supported: true,
urls: [
"https://site1.moralis-nodes.com/opbnb/",
"https://site2.moralis-nodes.com/opbnb/",
],
},
authApi: {
supported: false,
reason: "Coming soon",
},
},
{
name: "Polygon zkEVM",
logo: "/img/content/polygon-zkevm.png",
Expand Down
12 changes: 12 additions & 0 deletions src/css/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -1427,6 +1427,18 @@ li.dropdown-divider {
vertical-align: middle;
}

.menu__link[href$="opbnb-json-rpc-api"]::before {
content: "";
background-image: url("https://raw.githubusercontent.com/MoralisWeb3/docs/main/static/img/content/opbnb.png");
background-size: contain;
background-repeat: no-repeat;
display: inline-block;
width: 20px;
height: 20px;
margin-right: 8px;
vertical-align: middle;
}

/* Zetachain */
.menu__link[href$="zetachain-json-rpc-api"]::before {
content: "";
Expand Down

0 comments on commit 758e39e

Please sign in to comment.