BlockRazor
Go to website
English
English
  • 👉About BlockRazor
  • 👨‍💻Use Cases
    • Wallet
    • DEX
    • Searcher
    • Trading Bot
    • Algorithmic Trading
  • 💸Solana
    • Overview
    • Authentication
    • APIs
      • sendTransaction
      • getTransactionFee
      • Sandwich Detector
  • 🖥️BSC
    • Authentication
    • Dedicate Node
      • Create Dedicate Node
      • Utilize Dedicate Node
    • High-performance Network
      • Proto
      • Subscribe NewTxs
      • Subscribe NewBlocks
      • Send RawTx
      • Send RawTxBatch
      • Full Node Synchronization
    • Block Builder
      • Send Bundle
      • Send PrivateTransaction
      • Call Bundle
      • Trace Bundle
    • APIs
      • GetGasPriceStream
      • GetAllGasPriceStream
      • Sandwich Detector
  • 🛡️Scutum(ETH & BSC)
    • Overview
    • New to MEV
    • Exclusive for Project
    • General for Wallet User
    • Searcher
      • Authentication
      • Subscribe Bundle
      • Send Bundle
  • 📄Statement
    • Privacy Statement
Powered by GitBook
On this page
  • 1. Get the endpoint
  • 2. Calling JSON RPC methods
  1. BSC
  2. Dedicate Node

Utilize Dedicate Node

PreviousCreate Dedicate NodeNextHigh-performance Network

Last updated 11 hours ago

1. Get the endpoint

2. Calling JSON RPC methods

Standard JSON RPC methods

Custom JSON RPC Methods

BSC Dedicate Node (Geth) supports bundle simulation. The method name is eth_simulateBundles. The request and return examples are as follows:

Request

curl -X POST <dedicate node url> \
  -H "Content-Type: application/json" \
  -d '{
    "jsonrpc": "2.0",
    "id": 1,
    "method": "eth_simulateBundles",
    "params": [
      [
        {
          "from": "0x03Ae1e3082dD5E338e8Ae8572A34bcdF8be40362",
          "to": "0x55d398326f99059fF775485246999027B3197955",
          "data": "0x18160ddd",
          "gas": "0x100000"
        }
      ],
      "latest" // Specifies the block height or status to be simulated. latest indicates the latest produced block.

    ]
  }'

Response

{"jsonrpc":"2.0","id":1,"result":[{"return":"0x","gasUsed":21160}]}
{"jsonrpc":"2.0","id":1,"result":[{"return":"0x","gasUsed":21070,"revertReason":"execution reverted"}]}
{"jsonrpc":"2.0","id":1,"result":[{"return":"0x","gasUsed":0,"error":"err: intrinsic gas too low: have 0, want 21000 (supplied gas 0)"}]}

The standard JSON RPC method of BSC Dedicate Node (Geth) is fully compatible with Ethereum Geth. For specific calling methods, please refer to

🖥️
https://ethereum.org/en/developers/docs/apis/json-rpc/#json-rpc-methods
to the Portal, go to 【Dedicate Node】 to get the endpoint
Log in