Implements a JSON-RPC server compatible with Ethereum's Web3 API for NEAR's EVM environment.
npm install
To run the proxy server, first start nearcore and then execute:
npm run start
To run the proxy server, replace you.betanet
with your BetaNet account:
NEAR_ENV=betanet NEAR_MASTER_ACCOUNT=you.betanet npm run start
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:='[]'
Legend: ❌ = not supported. 🚧 = work in progress. ✅ = supported.