What I want to do is run a relayer on a custom network, which would entail the following:
deploy relayhub on the network
run a relayer from a reachable url
register relayer
fund dapp
I was having some trouble with the second step,
i believe https://github.com/OpenZeppelin/openzeppelin-gsn-helpers/releases this is where i can get a downloadable binary for my OS
I’m using macOS Catalina (v10.15.1), could you guide me through the steps to installing the binary?
Also,
was wondering, if running a relayer is only about getting a reachable URL - is it independent of the network RelayHub is deployed on?
if yes, then is there a general purpose Relayer available, URL for which can be used directly?
Each Relayer is configured for a specific network. In the GSN multiple Relayers can be running. It is a matter of running the Relayer with the appropriate options for the network you are using.
Hey @abcoathup,
I was able to get a running relayer on my preferred network, thanks for all the help
Had to switch OS though. Wasn’t able to get one up and running on MacOS Catalina. It was a breeze on Linux and Windows
hey @abcoathup
so i was able to successfully run my GSN enabled contract on local dev environment (thanks to you )
i’m having some trouble in registering a relayer on matic’s test network
so when i run
const provider = new HDWalletProvider(mnemonic, "https://testnetv3.matic.network");
const web3 = new Web3(provider);
registerRelay(web3, {
relayUrl: 'http://localhost:8090'
}).then(console.log)
my account is deducted of 6 ETH, 5 of which go to an address that relayer provides and 1 goes to the contract relayHub
i can see these transactions on the block explorer, but each time my console returns with the following error:
Will wait up to 30s for the relay to be ready
(node:14949) UnhandledPromiseRejectionWarning: Error: Failed to fund relay: 'Error: Relay not ready after 30s'
i tried increasing the timeout, but still face the same error
Yes! that was indeed the issue, but I later figured the problem had less to do with the register script and more to do with TruffleHDWalletProvider - i still haven’t pinned down the exact issue, but there is some nasty way that package works - it kept making my code go into loops
anyway, fixed it using some other wallet