Skip to main content

combineSignedTx


This combines all of the signatures from each user to create a transaction that can be sent on the network


This allows us to send a transaction that has been voted on (a signature of the transaction = a vote in our case) by a > threshold participants. This function needs the person to gather some data from the smart contract to pass to it.

getvaults.md

import { combineSignedTx, getVaults } from "@intuweb3/web-exp";
let myVaults = getVaults("0x12345_user_address", provider);

await combineSignedTx(vaultAddress, txId, signer);

Arguments:

InputType of InputDescription
vaultAddressStringVault address
txIdNumbertransaction id
signerStringsigner
blockRangenumberBlock range to traverse logs (default 250000)

Returns:

OutputType of OutputDescription
combinedSignatureStringSigned transaction string ready to be sent