question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Does ethers provide something like "web3-providers-http"?

See original GitHub issue

I’m playing with Gas Station Network, and in their GSN with ethers example they have:

const Web3HttpProvider = require('web3-providers-http')
// ...
const web3provider = new Web3HttpProvider('http://localhost:8545')
const deploymentProvider= new ethers.providers.Web3Provider(web3provider)

Can I do the same using ethers.js only, or using web3-providers-http is the only way?

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:11 (6 by maintainers)

github_iconTop GitHub Comments

3reactions
yuetloocommented, Jul 16, 2020

The opengsn implementation is v2. #836 was implemented based on GSN v1. Looks like there are significant changes in GSN from v1 to v2. I’ll take a look closer at GSN v2 later and report back.

2reactions
yuetloocommented, Nov 6, 2020

@justussoh , currently gsnv2 is not on the schedule. However if there’s good interest in this, @ricmoo would like this implemented as an ancillary package instead of part of ethers.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Providers - ethers
A Provider is an abstraction of a connection to the Ethereum network, providing a concise, consistent interface to standard Ethereum node functionality.
Read more >
How to connect to Ethereum network with ethers.js - QuickNode
1. When someone thinks of developing a dApp the first tool that comes to their mind is web3.js which is ... 2. First,...
Read more >
Documentation - Ethers.js
A Provider (in ethers) is a class which provides an abstraction for a connection to the Ethereum Network. It provides read-only access to...
Read more >
Ethers.js vs Web3.js SDK Comparison - Alchemy Docs
Web3 bundles wallets and providers into a single object whereas ethers treats them discretely and separately. As a result, it is possible to...
Read more >
Web3.js vs Ethers.js — Fully Guide - Medium
These days, crypto developers can choose among multiple programmable blockchains to build on. And, while you can hear the term “Ethereum ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found