View as Markdown

SDK reference · Rails

x402BindingPayload

x402BindingPayload in @provenanceauth/rails/x402, Rails. The exact object to pass as action_payload to POST /v1/mandate/intents, so the token's payload_hash binds this resource and these payment requirements.

Signature

x402BindingPayload(resource: X402ResourceInfo | string, requirements: Pick<X402PaymentRequirements, "scheme" | "network" | "amount" | "asset" | "payTo">): X402Binding

Parameters

resourceX402ResourceInfo | stringRequired
requirementsPick<X402PaymentRequirements, "scheme" | "network" | "amount" | "asset" | "payTo">Required

Returns

X402Binding

HTTP operation

Runs locally, with no request to the API.

Was this page helpful? Send us feedback

LLM? Read llms.txt.