BlockRazor
Go to website
繁体中文
繁体中文
  • 👉关于BlockRazor
  • 👨‍💻用户案例
    • 钱包
    • 去中心化交易所
    • Trading Bot
    • Searcher
    • 量化交易系统
  • 💸Solana
    • 总览
    • Authentication
    • APIs
      • sendTransaction
      • getTransactionFee
      • Sandwich Detector
  • 🖥️BSC
    • Authentication
    • Dedicate Node
      • 創建Dedicate Node
      • 使用Dedicate Node
    • 高性能網絡
      • Proto
      • Subscribe NewTxs
      • Subscribe NewBlocks
      • Send RawTx
      • Send RawTxBatch
      • 全節點同步
    • Block Builder
      • Send Bundle
      • Send PrivateTransaction
      • Call Bundle
      • Trace Bundle
    • APIs
      • GetGasPriceStream
      • GetAllGasPriceStream
      • Sandwich Detector
  • 🛡️Scutum(ETH & BSC)
    • 总览
    • New to MEV
    • 項目專屬RPC
    • 錢包用戶通用RPC
    • Searcher
      • Authentication
      • Subscribe Bundle
      • Send Bundle
  • 📄声明
    • 隱私聲明
Powered by GitBook
On this page
  • 1. 獲取端點
  • 2. 調用JSON RPC方法
  1. BSC
  2. Dedicate Node

使用Dedicate Node

Previous創建Dedicate NodeNext高性能網絡

Last updated 3 days ago

1. 獲取端點

2. 調用JSON RPC方法

標準JSON RPC方法

定製JSON RPC方法

BSC Dedicate Node(Geth)支持bundle模擬,方法名eth_simulateBundles,請求和返回示例如下:

請求

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" // 指定模擬的區塊高度或狀態,latest表示最新已打包的區塊
    ]
  }'

返回

{"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)"}]}

BSC Dedicate Node(Geth)的標準JSON RPC方法於Ethereum Geth完全兼容,具體調用方法請參考

🖥️
https://ethereum.org/en/developers/docs/apis/json-rpc/#json-rpc-methods
控制台,前往【Dedicate Node】獲取端點URL
登錄