Options
All
  • Public
  • Public/Protected
  • All
Menu

@aurora-is-near/relayer

Web3 Proxy Server for the NEAR EVM

Project license Discord Lints

Implements a JSON-RPC server compatible with Ethereum's Web3 API for NEAR's EVM environment.

Usage

Prerequisites

npm install

Usage for LocalNet

To run the proxy server, first start nearcore and then execute:

npm run start

Usage for BetaNet

To run the proxy server, replace you.betanet with your BetaNet account:

NEAR_ENV=betanet NEAR_MASTER_ACCOUNT=you.betanet npm run start

Endpoint URL

In your MetaMask, Truffle, etc: change the endpoint URL to the URL of this server.

For example, using HTTPie:

http post http://localhost:8545 jsonrpc=2.0 id=1 method=eth_blockNumber params:='[]'

Status

Method Status Notes
web3_clientVersion
web3_sha3
net_version
net_peerCount
net_listening
eth_protocolVersion
eth_syncing
eth_coinbase
eth_chainId
eth_mining
eth_hashrate
eth_gasPrice
eth_accounts
eth_blockNumber
eth_getBalance
eth_getStorageAt
eth_getTransactionCount
eth_getBlockTransactionCountByHash
eth_getBlockTransactionCountByNumber
eth_getUncleCountByBlockHash
eth_getUncleCountByBlockNumber
eth_getCode
eth_sign
eth_signTransaction
eth_sendTransaction
eth_sendRawTransaction
eth_call
eth_estimateGas
eth_getBlockByHash
eth_getBlockByNumber
eth_getTransactionByHash
eth_getTransactionByBlockHashAndIndex
eth_getTransactionByBlockNumberAndIndex
eth_getTransactionReceipt
eth_getUncleByBlockHashAndIndex
eth_getUncleByBlockNumberAndIndex
eth_getCompilers Unsupported.
eth_compileLLL Unsupported.
eth_compileSolidity Unsupported.
eth_compileSerpent Unsupported.
eth_newFilter
eth_newBlockFilter
eth_newPendingTransactionFilter
eth_uninstallFilter
eth_getFilterChanges
eth_getFilterLogs
eth_getLogs
eth_getWork Unsupported.
eth_submitWork Unsupported.
eth_submitHashrate Unsupported.
db_putString Deprecated.
db_getString Deprecated.
db_putHex Deprecated.
db_getHex Deprecated.
shh_post Discontinued.
shh_version Discontinued.
shh_newIdentity Discontinued.
shh_hasIdentity Discontinued.
shh_newGroup Discontinued.
shh_addToGroup Discontinued.
shh_newFilter Discontinued.
shh_uninstallFilter Discontinued.
shh_getFilterChanges Discontinued.
shh_getMessages Discontinued.

Legend: ❌ = not supported. 🚧 = work in progress. ✅ = supported.