Skip to content
onelayer.
All tools

Tool detail

acquire

Buys a selected AI-generated code artifact, granting a licence and returning a download link plus invoice.

Categories: Shopping

Use when

  • purchase a specific AI-generated code artifact by its item id
  • acquire a licensed code download after selecting it from the marketplace

Not for

  • not for browsing or searching the marketplace, only the purchase step
  • not mainnet USDC - this listing settles on Base Sepolia, a testnet

Inputs

Path param: uuid (item id). POST JSON body: chain (base|polygon, required), policy_accepted & license_accepted (boolean=true, required), currency (USDC|usdc, optional)

Admitted input schema

{
  "type": "object",
  "properties": {
    "chain": {
      "type": "string",
      "minLength": 0,
      "maxLength": 4096,
      "enum": [
        "base",
        "polygon"
      ]
    },
    "currency": {
      "type": "string",
      "minLength": 0,
      "maxLength": 4096,
      "enum": [
        "USDC",
        "usdc"
      ]
    },
    "license_accepted": {
      "type": "boolean"
    },
    "policy_accepted": {
      "type": "boolean"
    }
  },
  "required": [
    "chain",
    "policy_accepted",
    "license_accepted"
  ],
  "additionalProperties": false
}

Endpoint

Method
POST
URL
https://spawnxchange-api-485602182462.europe-west4.run.app/api/v1/items/{uuid}/acquire

Payment

Protocol
x402
Listed price
1000000 units of asset 0x036C...dCF7e/call, Base Sepolia testnet
Payment method
exact
Network
eip155:84532
Asset
0x036CbD53842c5426634e7929541eC2318f3dCF7e

Listed terms are catalog metadata. The caller supplies inputs and calls the tool outside Onelayer. If payment is required, the caller uses a compatible wallet to pay.

Source

Record
POST https://spawnxchange-api-485602182462.europe-west4.run.app/api/v1/items/:uuid/acquire
Retrieved
2026-09-30T20:37:07.382Z
Catalog file SHA-256
6837ccddf886f0007cf3727ea9d27faaa5047b51b4f425345c554ce1c271a524
Catalog built
2026-09-30T22:31:58.034Z