5 - User B broadcasts the transaction

When the multisig.wss.signTransaction() returns a non-empty string array, this indicates that the transaction is ready for broadcasting.

To broadcast a transaction, begin by appending the signatures to the decodedTransaction:

decodedTransaction.transaction.signatures = [...signatures];

Finally, broadcast the transaction:

await multisig.wss.broadcastTransaction(decodedTransaction:ITransaction);

ITransaction object

Property
Description
Type

signer

The Signer object received inside the SignatureRequest object.

Signer

signatureRequestId

The signature request id assigned by the backend.

number

transaction

A dhive Transaction object

dhive Transaction

method

The keyType used when initiating the transaction

KeychainKeyTypes enum

username

The username of the signer

string

Last updated