Closed youngkidwarrior closed 3 years ago
Instantiate a provider for the backend.
Export a ethers jsonrpc provider connected to the xdai RPC.
Checkout the ethers json rpc docs to see how this works.
The xdai rpc is currently https://rpc.xdaichain.com/
You can test if its working by querying for the blockNumber with provider.getBlockNumber()
Instantiate a provider for the backend.
Export a ethers jsonrpc provider connected to the xdai RPC.
Checkout the ethers json rpc docs to see how this works.
The xdai rpc is currently https://rpc.xdaichain.com/
You can test if its working by querying for the blockNumber with provider.getBlockNumber()