# Gas Station Network without React (using infura.io)

**URL:** <https://forum.openzeppelin.com/t/gas-station-network-without-react-using-infura-io/1789>\
**Category:** SDK\
**Created:** [November 20, 2019, 4:54am UTC](https://forum.openzeppelin.com/t/gas-station-network-without-react-using-infura-io/1789 "2019-11-20T04:54:09Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![oggata](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.openzeppelin.com/oggata/32/1343_2.png) [@oggata](https://forum.openzeppelin.com/u/oggata)\
**Post date:** [November 20, 2019, 4:54am UTC](https://forum.openzeppelin.com/t/gas-station-network-without-react-using-infura-io/1789/1 "2019-11-20T04:54:10Z")

</div>

Hi. I tried and Gas Station Network Example works well. (sdk/2.5/gsn-dapp)  
But I want to same thing without React.

For that I tried to use GSNProvider ( OpenZeppelin/openzeppelin-gsn-provider )  
but When I made transaction , I had error "The method eth\_sendTransaction does not exist is not available"  
I understand that [infura.io](http://infura.io) doesn't allow it.

Can I have another way to use Gas Station Network witout Ract and using [infura.io](http://infura.io)?

> const provider = new GSNDevProvider("infura-io-address", {  
> signKey: xxxx,  
> ownerAddress: xxxx,  
> relayerAddress: xxxx,  
> verbose: true  
> })  
> const web3 = new Web3(provider);  
> contract = new web3.eth.Contract(abi, address)  
> const tx = await contract.methods.mint().send({  
> from: xxxx  
> });

---

<div class="post-metadata">

**Author:** ![abcoathup](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.openzeppelin.com/abcoathup/32/415_2.png) [@abcoathup](https://forum.openzeppelin.com/u/abcoathup)\
**Post date:** [November 20, 2019, 8:15am UTC](https://forum.openzeppelin.com/t/gas-station-network-without-react-using-infura-io/1789/2 "2019-11-20T08:15:14Z")

</div>

Hi @oggata,

Welcome to the community 👋

If you are using Vanilla JavaScript (or a framework other than React) you can still use OpenZeppelin Network.js. Have a look at the README section to Use with Vanilla JavaScript:

> **[OpenZeppelin/openzeppelin-network.js](https://github.com/OpenZeppelin/openzeppelin-network.js#use-with-vanila-javascript)**
>
> An easy to use and reliable library that provides one line access to Web3 API. - OpenZeppelin/openzeppelin-network.js

---

<div class="post-metadata">

**Author:** ![oggata](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.openzeppelin.com/oggata/32/1343_2.png) [@oggata](https://forum.openzeppelin.com/u/oggata)\
**Post date:** [November 20, 2019, 9:39am UTC](https://forum.openzeppelin.com/t/gas-station-network-without-react-using-infura-io/1789/3 "2019-11-20T09:39:33Z")

</div>

Hi @abcoathup  
Thanks!! I solved it !!!!!!!  
I want to use Gas Station Network in my game application. Very thanks for your help!!

> const { fromInjected, fromConnection } = require('@openzeppelin/network');  
> const injected = await fromConnection('infura-io-url', {  
> gsn: { signKey: "xxx" }  
> });  
> const instance = new injected.lib.eth.Contract(abi, address);  
> const tx = await instance.methods.mint().send({  
> from: address  
> });  
> console.log(tx);

---

<div class="post-metadata">

**Author:** ![abcoathup](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.openzeppelin.com/abcoathup/32/415_2.png) [@abcoathup](https://forum.openzeppelin.com/u/abcoathup)\
**Post date:** [November 20, 2019, 9:51am UTC](https://forum.openzeppelin.com/t/gas-station-network-without-react-using-infura-io/1789/4 "2019-11-20T09:51:24Z")

</div>

Hi @oggata,

Glad to hear! 😄

I created a PR to improve the README: [https://github.com/OpenZeppelin/openzeppelin-network.js/pull/18](https://github.com/OpenZeppelin/openzeppelin-network.js/pull/18)

You could call your `injected` variable something like `web3Context` as it is from a connection rather than injected.

If you want to share information about your game you are developing in #general:showcase (along with how you are using OpenZeppelin) that would be great.

---

<div class="post-metadata">

**Author:** ![oggata](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.openzeppelin.com/oggata/32/1343_2.png) [@oggata](https://forum.openzeppelin.com/u/oggata)\
**Post date:** [November 20, 2019, 10:37am UTC](https://forum.openzeppelin.com/t/gas-station-network-without-react-using-infura-io/1789/5 "2019-11-20T10:37:54Z")

</div>

Hi @abcoathup  
Thanks to improve the README !!

Gas Station Network is very usefull and amazing.  
I want to show my product on general/showcase in a few weeks.

Thanks for your help!!!
