AgentReceipt
@totemsdk/agent-policy / AgentReceipt
Interface: AgentReceipt
Result returned to the agent after Totem has processed the intent. The agent uses this to learn whether its proposal was executed.
Properties
channelState?
optionalchannelState?:string
Serialised Omnia channel state, set when an off-chain channel was updated.
inferenceReceipt?
optionalinferenceReceipt?:IntelligenceReceipt
Consumption receipt for inference intents (type: 'inference'),
when the wallet/authority layer attested execution.
proposalId
proposalId:
string
Matches AgentProposal.id — ties the receipt back to the original proposal.
rejectionReason?
optionalrejectionReason?:string
Human-readable reason, set when status is 'rejected'.
settledAt?
optionalsettledAt?:number
Unix timestamp (ms) when the intent was settled (signed/rejected).
status
status:
"approved"|"rejected"|"pending_user"
- 'approved' — wallet signed and broadcast the transaction
- 'rejected' — wallet or policy rejected the proposal
- 'pending_user' — waiting for explicit user approval in the UI
txpowId?
optionaltxpowId?:string
TxPoW ID, set when a transaction was successfully mined and broadcast.