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
  • Get Instance
  • Reset Instance
  • Parameters
  1. Static helpers

Get/Reset HiveMultisig instance

PreviousStatic helpersNextGet Signers

Last updated 1 year ago

Get Instance

To make sure you always use a single instance of HiveMultisig,you can make use of getInstance static method, using the same parameters as in Quick Start.

const multisig = HiveMultisig.getInstance(window: Window,options?:MultisigOptions); 

Reset Instance

To stop the current instance of HiveMultisig and create a new one, you can make use of theresetInstance static method, using the same parameters.

const multisig = HiveMultisig.resetInstance(window: Window,options?:MultisigOptions); 

Parameters

Field
Description
Type

window

Represents the window containing the DOM or the window which the script is running.

options

Contains the definitions of the backend api address, socket address, and the client RPC address.

{apiAddress: string socketAddress: string clientAddress: string} object

Window