Validate Initiator

Validate Initiator

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

Last updated