Pay
Pay one external payment requirement within exact parent authority, through a payment method the payer holds, and read the paid resource back.
You’re reading version sha-e0878a3da267. Go to the current version
Overview
pay is the buyer contract. settle pays the exact requirement once, and
readback performs one observation of that durable payment and the resource it
paid for. The default pay runner composes both and requires immediate terminal
readback, while durable callers compose settle once and re-enter readback
through Runx's external-job scheduler.
The payment method is a connector the payer holds. Today that is wallet/evm:
an x402 V2 challenge on an HTTPS resource, paid from the payer's EVM wallet in
USDC on Base. Other methods join as connectors when they are implemented.
Runx Hosted owns challenge validation, authority attenuation and reservation,
wallet credentials, payload signing, settlement recovery, finality, and the
private ledger. The connector never sleeps or polls; durable continuation
cadence belongs to Runx scheduling. pay never buys a runx paid skill: a
paid skill is bought by running it, and the kernel asks its buyer for that
purchase itself.
In the manual
Runners
payreadbacksettle
Declared by its execution profile. Read the profile
SKILL.md
Pay
pay is the buyer contract. settle pays the exact requirement once, and
readback performs one observation of that durable payment and the resource it
paid for. The default pay runner composes both and requires immediate terminal
readback, while durable callers compose settle once and re-enter readback
through Runx's external-job scheduler.
The payment method is a connector the payer holds. Today that is wallet/evm:
an x402 V2 challenge on an HTTPS resource, paid from the payer's EVM wallet in
USDC on Base. Other methods join as connectors when they are implemented.
Runx Hosted owns challenge validation, authority attenuation and reservation,
wallet credentials, payload signing, settlement recovery, finality, and the
private ledger. The connector never sleeps or polls; durable continuation
cadence belongs to Runx scheduling. pay never buys a runx paid skill: a
paid skill is bought by running it, and the kernel asks its buyer for that
purchase itself.
Operator guide
Use this skill for one exact HTTPS resource already named by a hosted wallet grant. The resource request carries bounded inline control data or artifact references; large documents and media never travel as oversized graph values. The hosted payer accepts external x402 V2 only, signs and stages the payload before the paid POST, and reuses those exact bytes after an uncertain response.
Stop on malformed or expired requirements, amount, currency, payee or resource drift, incomplete authority, missing approval, or inconsistent paid-resource readback. Never pass wallet keys, seed phrases, bearer tokens, or facilitator credentials in skill input. A 2xx response is not finality: a complete readback needs the transaction confirmed on chain and a 2xx answer from the resource. It never waits on the resource's own product state.
Use charge to take a payment as the seller, refund to reverse one, and
invoice-pay when an invoice needs validating before it is paid.
Published execution profile
The execution profile published with sha-e0878a3da267, shown as its exact bytes.
| Runners |
|
|---|---|
| Profile digest | sha256:e36b1585927ca8aa0feb94176a33b546d186f5c28fa388adf9352b647a5f1ac6 |
skill: pay
version: "0.1.1"
catalog: { kind: graph, audience: operator, visibility: public, role: canonical, execution: execute, completion: provider_readback, approval: required, category: payments }
input_definitions:
payment_signal:
type: object
required: true
description: Exact x402 V2 resource request and expected settlement terms.
schema:
additionalProperties: false
required: [resource, amount_minor]
properties:
resource:
type: object
additionalProperties: false
required: [url, method, body]
properties:
url: { type: string, format: uri, maxLength: 2048 }
method: { type: string, const: POST }
body: {}
headers:
type: object
additionalProperties: { type: string, maxLength: 4096 }
timeout_ms: { type: integer, minimum: 1, maximum: 120000 }
max_response_bytes: { type: integer, minimum: 1, maximum: 26214400 }
amount_minor: { type: integer, minimum: 0, maximum: 9007199254740991 }
pay_to: { type: string, pattern: '^0x[0-9a-fA-F]{40}$' }
payment_authority:
type: object
required: true
description: Exact USD maximum and counterparty authorized by the parent.
schema:
additionalProperties: false
required: [term_id, currency, max_amount_minor, counterparty]
properties:
term_id: { type: string, minLength: 1, maxLength: 256 }
currency: { type: string, const: USD }
max_amount_minor: { type: integer, minimum: 0, maximum: 9007199254740991 }
counterparty: { type: string, format: uri, maxLength: 2048 }
connectors:
wallet/evm:
operations: [payment.x402, payment.x402.read]
runners:
pay:
default: true
inputs:
payment_signal: { definition: payment_signal }
parent_payment_authority: { definition: payment_authority }
idempotency_seed: { type: string, required: true, description: Stable payment idempotency material, schema: { minLength: 16, maxLength: 500 } }
result_from: [readback]
steps:
- id: settle
skill: .
runner: settle
inputs:
payment_signal: $input.payment_signal
parent_payment_authority: $input.parent_payment_authority
idempotency_seed: $input.idempotency_seed
- id: readback
skill: .
runner: readback
inputs:
resource_url: $input.payment_signal.resource.url
payment_ref: $steps.settle.provider_operation.result.payment_ref
- id: verify
inputs:
readback: $steps.readback.provider_operation.result
tool: { module: readback.mjs, export: requireCompleteReadback, timeout_seconds: 5 }
outputs: { verified: object }
settle:
inputs:
payment_signal: { definition: payment_signal }
parent_payment_authority: { definition: payment_authority }
idempotency_seed: { type: string, required: true, description: Stable payment idempotency material, schema: { minLength: 16, maxLength: 500 } }
examples:
- payment_signal:
resource:
url: https://vendor.example/v1/invocations
method: POST
body: { offer_id: document-ocr, input: { artifact_ref: "runx:artifact:document-1" } }
max_response_bytes: 26214400
amount_minor: 25
pay_to: "0x0000000000000000000000000000000000000002"
parent_payment_authority:
term_id: document-ocr-purchase-1
currency: USD
max_amount_minor: 25
counterparty: https://vendor.example/v1/invocations
idempotency_seed: document-ocr-purchase-0001
result_from: [pay]
steps:
- id: pay
operation: wallet/evm/payment.x402
idempotency_key: $input.idempotency_seed
approval:
reason: Approve paying this exact x402 challenge.
type: x402_payment
amount: { units: $input.payment_signal.amount_minor, unit: $input.parent_payment_authority.currency }
result_fields: [payment_ref, challenge_id, amount_minor, currency, status, transaction, network, payer, pay_to, invocation_id, payment_required_digest, payment_response_digest]
input: { payment_signal: $input.payment_signal, parent_payment_authority: $input.parent_payment_authority }
readback:
inputs:
resource_url:
type: string
required: true
description: Exact HTTPS resource URL used for settlement.
schema: { format: uri, maxLength: 2048 }
payment_ref:
type: string
required: true
description: Durable payment reference returned by the settle runner.
schema: { minLength: 1, maxLength: 300 }
result_from: [readback]
steps:
- id: prepare
inputs: { payment_ref: $input.payment_ref, resource_url: $input.resource_url }
tool: { module: readback.mjs, export: prepareReadback, timeout_seconds: 5 }
outputs: { readback_request: object, expected_result: object }
- id: readback
operation: wallet/evm/payment.x402.read
result_fields: [payment_ref, challenge_id, amount_minor, currency, status, transaction, network, payer, pay_to, invocation_id, payment_required_digest, payment_response_digest, resource_status, resource_result, readback_status]
optional_result_fields: [resource_state, finality, block_number]
ephemeral_result_paths: [/resource_result/resource_access]
input: $steps.prepare.readback_request
expected_result: $steps.prepare.expected_result
harness:
files: [fixtures/support/composed.graph]
cases: []
Published package and test evidence.
This exact version passed its recorded harness run: 2 checks passed · 0 failed.
Test result
| Harness result | Passed |
|---|---|
| Tested version | sha-e0878a3da267 |
| Recorded result | 2 checks passed · 0 failed |
| Result source | Reported by the publisher (runx_registry_publish) |
| Suite | runx-harness |
| Test recorded | |
| Test record | Open the recorded run |
Inspect receipt references
sha256:48246aab009811dd40be7591f2f4c0f66f8d6086663fad382bd618f944bb476csha256:6cda613841bbd840031793754306a443767e2475cb8cd483c9588a3d0e4ea6d8Package identity
| Published revision | sha-e0878a3da267 |
|---|---|
| Content digest | sha256:e0878a3da2673cf12298443b85c886cf9bd3434a1543cee11d111e9cb8ea1138 |
| SKILL.md digest | sha256:fcc45ac5f7ab1cdd51977b8879c33b4f5df3ad1bf255973cbbd44e1774ae0224 |
| Execution profile digest | sha256:e36b1585927ca8aa0feb94176a33b546d186f5c28fa388adf9352b647a5f1ac6 |
| Publisher identity | Verified publisher · runx |
| Trust tier | Verified publisherRunx has verified this publisher. This tier is not a code assessment. |
| Attestations |
|
| Source provenance | Not published with this version |
Version history
0.1.4Content digest sha256:ebb0e47a50c2b730b5008ad8b0adfd9a720a0bccf4de17d5195925b16c6eaf2esha-e0878a3da267ViewingContent digest sha256:e0878a3da2673cf12298443b85c886cf9bd3434a1543cee11d111e9cb8ea1138sha-56d0719d70e1Content digest sha256:9e22b8c12b620ad33f4eedf8b1f0817b44ef854c4bce6ec9f07c2506844eebd2