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 Authorities
  • Parameters
  1. Static helpers

Get Authorities

Get Authorities

To get the authority of a user with respect to key type, you can use the getAuthoritiesstatic function.

const auth:[string:number][] = HiveMultisig.getAuthorities(username:string, keyType:KeychainKeyType);

This function will return a tuple array of public key and weight.

Parameters

Field
Description
Type

username

The username of the user in the transaction

string

keyType

The keyType used when initiating the transaction

KeychainKeyTypes enum

PreviousGet SignersNextValidate Initiator

Last updated 1 year ago