Skip to main content

Utils

Relay

Bermuda uses relayers to submit shielded transactions on behalf of users, ensuring that the sender's identity is never linked to the on-chain transaction. This maximizes anonymity by decoupling the transaction origin from the user's address.

To relay a shielded transaction and await confirmation:

let txHash = await bermuda.relay(payload)
let receipt = await bermuda.wait(txHash)

// or

await bermuda.relay(payload).then(bermuda.wait)