finalizeTransactionSigning
The finalizeTransactionSigning
method adds a signature to an unsigned transaction, producing a signed transaction that can be broadcast to the network.
Usage
import { RSVSignature } from 'signet.js'
const rsvSignatures: RSVSignature[] = [
{
r: '0x123...',
s: '0x123...',
v: 27,
},
]
const signedTx = evmChain.finalizeTransactionSigning({
transaction,
rsvSignatures,
})
Parameters
Parameter | Type | Description |
---|---|---|
transaction | EVMUnsignedTransaction | The unsigned transaction prepared by prepareTransactionForSigning |
rsvSignatures | RSVSignature[] | Array of RSV signatures from the MPC network |
Returns
Type | Description |
---|---|
string | The serialized signed transaction (hex string with 0x prefix) |