@railgun-community/waku-relayer-client
TypeScript icon, indicating that this package has built-in type declarations

4.8.3 • Public • Published

Unit Tests

RAILGUN Relayer Client with Waku networking layer

Compatible with Browser and NodeJS environments.

yarn add @railgun-community/waku-relayer-client

The Basics

// Initialize the Relayer Client
await WakuRelayerClient.start(...)

// Wait for Relayers to connect (5-10 sec) and client to collect fees.
// Relayers broadcast fees through the privacy-safe Waku network.

// Get relayer with lowest fee for a given ERC20 token.
const selectedRelayer = await WakuRelayerClient.findBestRelayer(...)

// Create Relayed transaction and send through selected Relayer.
const relayerTransaction = await RelayerTransaction.create(...)
await RelayerTransaction.send(...)

Readme

Keywords

none

Package Sidebar

Install

npm i @railgun-community/waku-relayer-client

Weekly Downloads

9

Version

4.8.3

License

MIT

Unpacked Size

128 kB

Total Files

76

Last publish

Collaborators

  • ptsimpso
  • therealjmj
  • zorlin
  • mesquka