Hive Multisig SDK
  • Welcome!
  • Quick Start
  • WebSocket flow
    • 1 - Users connect to the Websocket
    • 2 - User A requests a transaction
    • 3 - User B receives the signature request
    • 4 - User B signs the transaction
    • 5 - User B broadcasts the transaction
    • 6 - Users both receive a successful broadcast notification
  • API
  • Utils
    • Encode Transaction
    • Decode Transaction
  • Static helpers
    • Get/Reset HiveMultisig instance
    • Get Signers
    • Get Authorities
    • Validate Initiator
  • Demo
Powered by GitBook
On this page
  1. WebSocket flow

6 - Users both receive a successful broadcast notification

Previous5 - User B broadcasts the transactionNextAPI

Last updated 1 year ago

The user can receive a broadcast notification either through or through real-time broadcast notifications.

When the user has successfully subscribed to the WebSocket, they may then proceed to subscribe to real-time broadcast notifications.

const broadcastCallback:SignatureRequestCallback = async (message: SignatureRequest) => {
    console.log(message);
  };
await multisig.wss.onBroadcasted(broadcastCallback);

SignatureRequestCallback type

Field
Description
Type

SignatureRequestCallback

A function that accepts a SignatureRequest object as an argument.

function

subscribing to Websocket