Skip to content
This repository was archived by the owner on Apr 10, 2024. It is now read-only.

Missed RPC calls implemented in BSC geth#5

Merged
gladcow merged 3 commits into
stablefrom
bsc_rpc_api
Feb 27, 2023
Merged

Missed RPC calls implemented in BSC geth#5
gladcow merged 3 commits into
stablefrom
bsc_rpc_api

Conversation

@gladcow

@gladcow gladcow commented Jan 27, 2023

Copy link
Copy Markdown

BSC geth contains several RPC API calls under 'eth' namespace which are missed in Erigon. That means some issues are possible when you are trying to substitute BSC geth instance with Erigon instance, some services that use this API can be broken.

Full list of this RPC calls:

  • eth_getDiffAccountsWithScope
  • eth_getHeaderByHash
  • eth_getDiffAccounts
  • eth_getVerifyResult
  • eth_health
  • eth_getHeaderByNumber
  • eth_getTransactionsByBlockNumber
  • eth_resend
  • eth_fillTransaction
  • eth_getTransactionDataAndReceipt
  • eth_getTransactionReceiptsByBlockNumber
  • eth_pendingTransactions
  • eth_getHashrate
  • eth_etherbase
  • eth_subscribeSyncStatus
  • eth_getFilterLogs

Some of this calls are not implemented in original geth too, so this API set is optional, it is available only if user adds bsc entity to -http.api parameter (i.e. ./rpcdaemon --datadir=/dev --private.api.addr=localhost:9090 --http.api=eth,erigon,web3,net,debug,trace,parity,txpool,bsc). But user can call them in 'eth' namespace in spite of the bsc name for this API module (i.e. python code: response = requests.post('http://localhost:18545', json=request("eth_getTransactionReceiptsByBlockNumber", params=[1]))).

Not all of this functions are implemented here (for example, functions related to account usage like eth_resend or eth_pendingTransactions, etc.) but I have added their declaration to have the full list of missed implementation for the future improvements.

@gladcow gladcow changed the base branch from upstream_devel to stable February 27, 2023 14:58
@gladcow gladcow merged commit 6282579 into stable Feb 27, 2023
@gladcow gladcow deleted the bsc_rpc_api branch February 27, 2023 15:10
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant