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

6.2.13 • Public • Published

RAILGUN Relayer Client with Waku networking layer

This package is meant specifically for Node.js.

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

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-node

Weekly Downloads

6

Version

6.2.13

License

MIT

Unpacked Size

156 kB

Total Files

76

Last publish

Collaborators

  • ptsimpso
  • therealjmj
  • zorlin
  • mesquka