Trigger Commerce

Triggers when a payment completes via AnySpend. Set a destination chain and recipient address to start your workflow when funds arrive.

At a Glance

FieldValue
Trigger IDanyspend
CategoryCommerce
Tagspayment, cross-chain, anyspend

Trigger Configuration

FieldTypeRequiredDescription
chainIdintegerYesDestination chain ID for the payment
recipientAddressstringYesPayment recipient address (hex)
tokenAddressstringNoDestination token address. If omitted, any token is accepted.
amountstringNoRequired payment amount in token base units (wei).
enablePaymentLinkbooleanNoWhen enabled, a shareable payment link URL is auto-generated on workflow publish.

Trigger Result

FieldTypeRequiredDescription
triggeredAtstringYesTimestamp when the payment callback was received (UTC, RFC3339 format)
paymentobjectYesPayment details from AnySpend
inputsobjectNoOptional form data passed via callbackMetadata
paymentLinkUrlstringNoThe shareable payment link URL (only present for payment-link-enabled triggers)

Workflow Root Example

json
{ "nodes": { "root": { "type": "anyspend", "payload": { "chainId": 8453, "recipientAddress": "0x0000000000000000000000000000000000000000" }, "children": [ "log_event" ] }, "log_event": { "type": "log", "payload": { "message": "Triggered at {{$trigger.triggeredAt}}" }, "children": [] } }}

Downstream nodes can use {{$trigger.triggeredAt}} and any result fields listed above. Event triggers usually expose the raw source payload under a field such as event, body, trade, or raw.

Ask a question... ⌘I