AccountOperation.serializeTransaction
Serializes an account transaction operation with selected owner approvals.
Imports
import { AccountOperation } from 'ox/tempo'Examples
import { AccountOperation } from 'ox/tempo'
const transaction = AccountOperation.serializeTransaction(operation, {
approvals: selection.selectedApprovals,
})Definition
function serializeTransaction(
operation: TransactionOperation,
options: serializeTransaction.Options,
): TxEnvelopeTempo.SerializedSource: src/tempo/AccountOperation.ts
Parameters
operation
- Type:
TransactionOperation
Account transaction operation.
operation.account
- Type:
abitype_Address
Root configurable account.
operation.approvals
- Type:
readonly 0x${string}[]
Every retained serialized owner approval.
operation.config
- Type:
{ owners: readonly Owner[]; salt: 0x${string}; threshold: number; version: quantity; }
Root configuration used to verify approvals.
operation.createdAt
- Type:
number
Unix creation time in milliseconds.
operation.expiresAt
- Type:
number - Optional
Time when another relay may reclaim the submission lease.
operation.hash
- Type:
0x${string}
Deterministic account operation hash.
operation.signatureCount
- Type:
number
Number of approvals selected for quorum evaluation.
operation.status
- Type:
"pending" | "submitting" | "success"
Current operation state.
operation.submissionId
- Type:
0x${string} - Optional
Fencing token owned by the current submitter.
operation.threshold
- Type:
number
Required root owner weight.
operation.transaction
- Type:
0x${string}
Canonical serialized Tempo envelope without its outer sender signature.
operation.transactionHash
- Type:
0x${string} - Optional
Hash returned after the downstream submitter accepts the transaction.
operation.type
- Type:
"transaction"
Operation kind.
operation.updatedAt
- Type:
number
Unix time of the last update in milliseconds.
operation.weight
- Type:
number
Root owner weight reached by the selected approvals.
options
- Type:
serializeTransaction.Options
Transaction serialization options.
options.approvals
- Type:
readonly 0x${string}[]
Selected retained approvals to attach to the transaction.
Return Type
The signed serialized Tempo transaction.
TxEnvelopeTempo.Serialized

