@railgun-community/waku-relayer-client-node
v6.2.13
Published
This package is meant specifically for Node.js.
Downloads
16
Readme
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(...)