assertValidTxReceiptArtifact
HardKAS SDK / artifacts/src / assertValidTxReceiptArtifact
Function: assertValidTxReceiptArtifact()
assertValidTxReceiptArtifact(
value): asserts value is { amountSompi?: string; assumptionLevel?: string; changeSompi?: string; computeBudget?: string; confirmedAt?: string; contentHash?: string; createdAt?: string; createdUtxoIds?: string[]; daaScore?: string; dagContext?: { acceptedTxIds?: string[]; branchId?: string; conflictSet?: { loserTxIds?: string[]; outpoint?: string; winnerTxId?: string }[]; displacedTxIds?: string[]; mode?: "linear" | "dag-light"; nonSelectedContext?: boolean; selectedParent?: string; sink?: string }; errors?: string[]; execution?: { domain?: "kaspa-l1" | "evm-l2"; mode?: "rpc" | "simulator" | "localnet" | "l2-rpc"; network?: string }; feeSompi?: string; from?: { accountName?: string; address?: string; input?: string }; hardkasVersion?: string; hashVersion?: string | number; lane?: string; lineage?: { artifactId?: string; lineageId?: string; parentArtifactId?: string; rootArtifactId?: string; sequence?: number }; lineageDepth?: number; mass?: string; metadata?: any; mode?: "rpc" | "simulator" | "localnet"; networkId?: "simnet" | "mainnet" | "testnet-10" | "testnet-11" | "testnet-12" | "simnet-1" | "devnet" | "simulated" | "igra"; parents?: string[]; postStateHash?: string; preStateHash?: string; rpcUrl?: string; schema?: "hardkas.txReceipt"; schemaVersion?: string; scriptCapabilities?: ("p2pk" | "multisig" | "timelock" | "covenant-experimental" | "silverscript-experimental" | "tockata-experimental")[]; scriptMetadata?: { consensusImpact?: "experimental" | "none"; experimental?: boolean; language?: "native" | "silverscript" | "tockata"; notes?: string[]; version?: string }; scriptProfile?: "experimental" | "standard"; sourceSignedId?: string; spentUtxoIds?: string[]; status?: "submitted" | "accepted" | "confirmed" | "failed"; storageMass?: string; submittedAt?: string; to?: { accountName?: string; address?: string; input?: string }; tracePath?: string; txId?: string; txVersion?: 0 | 1; version?: "1.0.0-alpha"; workflowId?: string }
Defined in: packages/artifacts/src/validate.ts:108
Parameters
value
unknown
Returns
asserts value is { amountSompi?: string; assumptionLevel?: string; changeSompi?: string; computeBudget?: string; confirmedAt?: string; contentHash?: string; createdAt?: string; createdUtxoIds?: string[]; daaScore?: string; dagContext?: { acceptedTxIds?: string[]; branchId?: string; conflictSet?: { loserTxIds?: string[]; outpoint?: string; winnerTxId?: string }[]; displacedTxIds?: string[]; mode?: "linear" | "dag-light"; nonSelectedContext?: boolean; selectedParent?: string; sink?: string }; errors?: string[]; execution?: { domain?: "kaspa-l1" | "evm-l2"; mode?: "rpc" | "simulator" | "localnet" | "l2-rpc"; network?: string }; feeSompi?: string; from?: { accountName?: string; address?: string; input?: string }; hardkasVersion?: string; hashVersion?: string | number; lane?: string; lineage?: { artifactId?: string; lineageId?: string; parentArtifactId?: string; rootArtifactId?: string; sequence?: number }; lineageDepth?: number; mass?: string; metadata?: any; mode?: "rpc" | "simulator" | "localnet"; networkId?: "simnet" | "mainnet" | "testnet-10" | "testnet-11" | "testnet-12" | "simnet-1" | "devnet" | "simulated" | "igra"; parents?: string[]; postStateHash?: string; preStateHash?: string; rpcUrl?: string; schema?: "hardkas.txReceipt"; schemaVersion?: string; scriptCapabilities?: ("p2pk" | "multisig" | "timelock" | "covenant-experimental" | "silverscript-experimental" | "tockata-experimental")[]; scriptMetadata?: { consensusImpact?: "experimental" | "none"; experimental?: boolean; language?: "native" | "silverscript" | "tockata"; notes?: string[]; version?: string }; scriptProfile?: "experimental" | "standard"; sourceSignedId?: string; spentUtxoIds?: string[]; status?: "submitted" | "accepted" | "confirmed" | "failed"; storageMass?: string; submittedAt?: string; to?: { accountName?: string; address?: string; input?: string }; tracePath?: string; txId?: string; txVersion?: 0 | 1; version?: "1.0.0-alpha"; workflowId?: string }