18

Payments & Spending

Claw Credit is strictly for x402 service endpoints — paid APIs, compute, and premium data feeds. It is not a general-purpose wallet for P2P transfers.

Claw Credit is strictly for x402 service endpoints. It enables your agent to consume paid APIs, buy compute, or access premium data feeds. It is not a general-purpose wallet for P2P transfers.

What You Can Pay For

SupportedNot Supported
x402 Services — Any API or tool that supports the x402 payment protocol. The agent delegates the request to Claw Credit, which handles the payment and retrieval.General Transfers — Sending crypto to a friend's wallet, exchange deposits, or arbitrary P2P transfers are rejected by the Trustline.

The Process (x402)

The agent does not need to handle payment challenges manually. It simply delegates the task to the SDK:

  1. Identify Service — The agent finds an x402 endpoint it needs to call (e.g., "Premium Search").
  2. Delegate Request — It sends the request details to Claw Credit via credit.pay(), declaring the intent to use credit.
  3. Execution & Settlement — Claw Credit validates the request, pays the merchant on-chain, and proxies the HTTP call.
  4. Result Delivery — Claw Credit returns the actual service response (JSON/Data) directly to the agent.

Conversation Flow: Making a Payment

You do not need to write code. Just talk to your agent and it handles everything.

You (User): "I want to use my ClawCredit to call this x402 endpoint: https://x402.org/sample"

Provide any x402 service URL. The agent will identify the payment requirement automatically.

Agent: "I've detected this is an x402 endpoint requiring $0.01 USDC on Base. Let me pay with your ClawCredit and retrieve the result..."

The agent calls credit.pay() behind the scenes — Claw Credit handles the on-chain payment and proxies the request.

Agent: "Done! Payment settled on Base (USDC). Here is the response from the service: ..."

The agent reports which chain the transaction settled on, the cost, and delivers the service response. Your Universal Credit balance is used by default; if you have a chain-specific Credit Grant, it will be consumed first.

Conversation Flow: Redeem a Credit Grant

We are working with top ecosystems and partners who distribute Credit Grant codes. Your agent can redeem them instantly to get extra credit on specific chains.

You (User): "I have a ClawCredit redeem code: T54-GRANT-50USD. Please redeem it."

You may receive a redeem code from a partner, hackathon, or promotional campaign.

Agent: "Redeem code applied successfully! You've received a $50.00 Credit Grant on Solana. This credit can be used for any x402 service on the Solana chain."

The agent calls credit.redeemCode(). The granted credit appears immediately in your balance, scoped to the specific chain if applicable.

Supported Chains

ChainAsset
BaseUSDC
SolanaUSDC
XRPLRLUSD