Eth JSON-RPC API: add aliases for new methods.
This commit is contained in:
parent
5a1f8d8f28
commit
7c2dcc8db6
10
node/rpc.go
10
node/rpc.go
@ -99,6 +99,16 @@ func FullNodeHandler(a v1api.FullNode, permissioned bool, opts ...jsonrpc.Server
|
|||||||
rpcServer.AliasMethod("eth_estimateGas", "Filecoin.EthEstimateGas")
|
rpcServer.AliasMethod("eth_estimateGas", "Filecoin.EthEstimateGas")
|
||||||
rpcServer.AliasMethod("eth_call", "Filecoin.EthCall")
|
rpcServer.AliasMethod("eth_call", "Filecoin.EthCall")
|
||||||
|
|
||||||
|
rpcServer.AliasMethod("eth_getLogs", "Filecoin.EthGetLogs")
|
||||||
|
rpcServer.AliasMethod("eth_getFilterChanges", "Filecoin.EthGetFilterChanges")
|
||||||
|
rpcServer.AliasMethod("eth_getFilterLogs", "Filecoin.EthGetFilterLogs")
|
||||||
|
rpcServer.AliasMethod("eth_newFilter", "Filecoin.EthNewFilter")
|
||||||
|
rpcServer.AliasMethod("eth_newBlockFilter", "Filecoin.EthNewBlockFilter")
|
||||||
|
rpcServer.AliasMethod("eth_newPendingTransactionFilter", "Filecoin.EthNewPendingTransactionFilter")
|
||||||
|
rpcServer.AliasMethod("eth_uninstallFilter", "Filecoin.EthUninstallFilter")
|
||||||
|
rpcServer.AliasMethod("eth_subscribe", "Filecoin.EthSubscribe")
|
||||||
|
rpcServer.AliasMethod("eth_unsubscribe", "Filecoin.EthUnsubscribe")
|
||||||
|
|
||||||
rpcServer.AliasMethod("net_version", "Filecoin.NetVersion")
|
rpcServer.AliasMethod("net_version", "Filecoin.NetVersion")
|
||||||
rpcServer.AliasMethod("net_listening", "Filecoin.NetListening")
|
rpcServer.AliasMethod("net_listening", "Filecoin.NetListening")
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user