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

Validate Initiator

Validate Initiator

Anyone can initiate a transaction pretending to be somebody with authority over an account.

To validate whether the initiator of the transaction has authority over the account in the transaction, you can use validateInitiatorOverBroadcaster static function.

const validAuth:boolean = await HiveMultisig.validateInitiatorOverBroadcaster(
                        initiator: string,
                        keyType: KeychainKeyTypes,
                        transaction: Transaction,
                      );

Parameters

Field
Description
Type

initiator

The username of the initiator

string

keyType

The keyType used when initiating the transaction

KeychainKeyTypes enum

transaction

The decoded transaction that is initiated by the initiator being validated

dhive Transaction

PreviousGet AuthoritiesNextDemo

Last updated 1 year ago