Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

localgsn

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

localgsn

In order to test GSN, you need a network with a RelayHub contract and at least one active relay.

  • 1.0.4
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
1
Maintainers
1
Weekly downloads
 
Created
Source

Local GSN

In order to test GSN, you need a network with a RelayHub contract and at least one active relay.

To simplify testing, this package bring up everything you need.

Installation: the usual npm/yarn install localgsn

Usage:

in your test script:

const { startGsnRelay, stopGsnRelay, relayHubAddress } = require( 'localgsn' )

before( 'start GSN', async ()=>{
	await startGsnRelay()	
})

after( 'stop GSN', async() => {
	await stopGsnRelay()
})

Options

the startRelayGsn can receive some parameters:

  • provider - either a web3 provider, or a URL. defaults to http://localhost:8545
  • account - specific account to use. This account is used to deploy the RelayHub, and then as the owner of the relay. can either be an index into the getAccounts() array, or actual address.

The function returns the relay address.

FAQs

Package last updated on 13 Mar 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc