The Pando-eth-rpc-adaptor project is aiming to provide an adaptor which translates the Pando RPC interface to the Ethereum RPC interface.
Setup
First, install **Go ** and set environment variables GOPATH , GOBIN, and PATH. Next, clone the Pando blockchain repo and install Pando following the steps below:
On a macOS machine, the following command should build the pando-eth-rpc-adaptor.exe binary under build/windows/
makewindows
Run the Adaptor with a local Pando private testnet
First, run a private testnet Pando node with its RPC port opened at 16888:
cd $PANDO_HOMEcp-r./integration/pandoproject../pandoprojectmkdir~/.pandoclicp-r./integration/pandoproject/pandocli/*~/.pandocli/chmod700~/.pandocli/keys/encryptedpandostart--config=../pandoprojects/node_eth_rpcchooseapassword
Then, open another terminal, create the config folder for the RPC adaptor
mkdir-p../pandoprojects/eth-rpc-adaptor
Use your favorite editor to open file ../pandoprojects/eth-rpc-adaptor/config.yaml, paste in the follow content, save and close the file:
Then, launch the adaptor binary with the following command:
cd $PANDO_RPCpando-eth-rpc-adaptorstart--config=../pandoproject/eth-rpc-adaptor
The RPC adaptor will first create 10 test wallets, which will be useful for running tests with dev tools like Truffle, Hardhat. After the test wallets are created, the ETH RPC APIs will be ready for use.
RPC APIs
The RPC APIs should conform to the Ethereum JSON RPC API standard: https://eth.wiki/json-rpc/API. We currently support the following Ethereum RPC APIs: