Raxol.Payments.Actions.Payments.Transfer (Raxol Payments v0.2.0)

Copy Markdown View Source

Agent Action that AUTHORIZES an explicit same-chain transfer to an address.

This is a governance checkpoint, not an executor. It runs the spend through Raxol.Payments.Actions.SpendGate (approved-address confirmation threshold + atomic ledger reservation) and returns an "authorized" status. It does NOT itself broadcast a transaction: this package has no same-chain EOA send rail. Cross-chain and stealth transfers execute through Raxol.Payments.Actions.Payments.ExecuteXochiIntent; a same-chain send is performed by the caller's own rail after this authorization. If an authorized transfer is abandoned, release the reservation with SpendGate.release/3 so the budget is not permanently consumed.

Summary

Functions

Validate input, run the action, validate output.

Generate an LLM tool definition for this action.

Functions

call(params, context \\ %{})

Validate input, run the action, validate output.

Returns {:ok, result}, {:ok, result, commands}, or {:error, reason}.

to_tool_definition()

Generate an LLM tool definition for this action.