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.
import { combineSignedTx, getVaults } from "@intuweb3/web";
let myVaults = getVaults("0x12345_user_address", provider);
await combineSignedTx(vaultAddress, txId, signer);
Parameters:[]
| Input | Type of Input | Description |
|---|---|---|
| vaultAddress | String | Vault address |
| txId | Number | transaction id |
| signer | String | signer |
Returns:
| Output | Type of Output | Description |
|---|---|---|
| combinedSignature | String | Signed transaction string ready to be sent |