Ayudh
Ayudh

Reputation: 1763

web3 stuck at sendTransaction

I'm following the tutorial here: https://chainstack.com/how-to-create-blockchain-bridge/ and getting stuck (seeing nothing) at line 34 in contract-methods.js and if I set timeouts, I get a timeout.

Here's the repo for it: https://github.com/chainstack/blockchain-bridge-simplified

What is the issue?

Upvotes: 0

Views: 258

Answers (2)

Ayudh
Ayudh

Reputation: 1763

I was using the DogeChain https RPC endpoint prefixed with wss:// and postfixed with /ws but I spoke with someone in the DogeChain team and there's no WSS endpoint yet so that's why the sendTransaction was having an error.

Upvotes: 0

Antonio U
Antonio U

Reputation: 141

hey 👋 I'm the author of the article. The first thing that come to mind is: have you deployed the ERC20 token contracts in both chains? In addition, have you set up all the environment variables for the backend job?

BRIDGE_WALLET
ORIGIN_TOKEN_CONTRACT_ADDRESS
DESTINATION_TOKEN_CONTRACT_ADDRESS

Feel free to contact me on our Discord and I'll be happy to help ✌️

Upvotes: 3

Related Questions