FETCH402
← Protocol index

Resource / 148

healthy

Unnamed resource.

Onchain loyalty platform on Base Network. Businesses launch branded rewards in minutes. Customers earn real value with every purchase. AI agents automate the rest.

Eligibility
probeable
Failures
0
Last quote
2026-08-12 21:30:02 UTC
Last probe
2026-08-12 21:30:02 UTC
Payment requirements / accepts[] 1 options
State Network Scheme Atomic amount Asset payTo / untrusted
active eip155:8453 exact 1000 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913 0x40a8CdD6a10EC1a8cB3dFb2834675e7a2CF4ad8b

All advertised payment options are stored. Base (`eip155:8453`) is the operational network for ranking and canaries; non-Base options remain visible for transparency.

Probe evidence 1 recent
healthy 2026-08-12 21:30:02 UTC GET · HTTP 402 · 123ms · accepts 1 · base 1 ok
Request
GET https://api.loyalspark.online/x402-gateway/balance
Robots
allow
Note
http_402;accepts=1;base=1
Accepts fingerprint
b8b63d12d46564531c1a56dc4dfab17352ef65fe93b4d4be4651b4f36c81d00a

Accepts snapshot

[
  {
    "amount": "1000",
    "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
    "assetTransferMethod": null,
    "extra": {
      "brand": "Loyal Spark",
      "builderCode": "bc_wdmnog7m",
      "description": "Onchain loyalty platform on Base Network. Businesses launch branded rewards in minutes. Customers earn real value with every purchase. AI agents automate the rest.",
      "documentation": "https://loyalspark.online/for-agents",
      "name": "USD Coin",
      "provider": "Loyal Spark",
      "version": "2",
      "website": "https://loyalspark.online"
    },
    "maxTimeoutSeconds": 300,
    "network": "eip155:8453",
    "payTo": "0x40a8CdD6a10EC1a8cB3dFb2834675e7a2CF4ad8b",
    "paymentFlow": null,
    "raw": {
      "amount": "1000",
      "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
      "description": "Onchain loyalty platform on Base Network. Businesses launch branded rewards in minutes. Customers earn real value with every purchase. AI agents automate the rest.",
      "extensions": {
        "bazaar": {
          "info": {
            "input": {
              "headers": {
                "x-api-key": "lsk_..."
              },
              "method": "GET",
              "queryParams": {
                "customer_address": "0x0000000000000000000000000000000000000002",
                "token_address": "0x0000000000000000000000000000000000000001"
              },
              "type": "http"
            },
            "inputSchema": {
              "$schema": "https://json-schema.org/draft/2020-12/schema",
              "additionalProperties": false,
              "properties": {
                "customer_address": {
                  "description": "EVM address on Base (eip155:8453).",
                  "pattern": "^0x[a-fA-F0-9]{40}$",
                  "type": "string"
                },
                "token_address": {
                  "description": "EVM address on Base (eip155:8453).",
                  "pattern": "^0x[a-fA-F0-9]{40}$",
                  "type": "string"
                }
              },
              "required": [
                "token_address",
                "customer_address"
              ],
              "type": "object"
            },
            "output": {
              "example": {
                "ok": true,
                "resource": "balance"
              },
              "type": "json"
            }
          },
          "schema": {
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "properties": {
              "input": {
                "additionalProperties": false,
                "properties": {
                  "headers": {
                    "additionalProperties": {
                      "type": "string"
                    },
                    "type": "object"
                  },
                  "method": {
                    "enum": [
                      "GET",
                      "HEAD",
                      "DELETE"
                    ],
                    "type": "string"
                  },
                  "queryParams": {
                    "additionalProperties": {
                      "type": "string"
                    },
                    "type": "object"
                  },
                  "type": {
                    "const": "http",
                    "type": "string"
                  }
                },
                "required": [
                  "type",
                  "method"
                ],
                "type": "object"
              },
              "inputSchema": {
                "type": "object"
              },
              "output": {
                "properties": {
                  "example": {},
                  "type": {
                    "type": "string"
                  }
                },
                "required": [
                  "type"
                ],
                "type": "object"
              }
            },
            "required": [
              "input"
            ],
            "type": "object"
          }
        },
        "builder-code": {
          "info": {
            "a": "bc_wdmnog7m"
          },
          "schema": {
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "additionalProperties": false,
            "properties": {
              "a": {
                "description": "App builder code",
                "pattern": "^[a-z0-9_]{1,32}$",
                "type": "string"
              },
              "s": {
                "description": "Service builder codes",
                "items": {
                  "pattern": "^[a-z0-9_]{1,32}$",
                  "type": "string"
                },
                "type": "array"
              },
              "w": {
                "description": "Wallet builder code",
                "pattern": "^[a-z0-9_]{1,32}$",
                "type": "string"
              }
            },
            "type": "object"
          }
        }
      },
      "extra": {
        "brand": "Loyal Spark",
        "builderCode": "bc_wdmnog7m",
        "description": "Onchain loyalty platform on Base Network. Businesses launch branded rewards in minutes. Customers earn real value with every purchase. AI agents automate the rest.",
        "documentation": "https://loyalspark.online/for-agents",
        "name": "USD Coin",
        "provider": "Loyal Spark",
        "version": "2",
        "website": "https://loyalspark.online"
      },
      "maxAmountRequired": "1000",
      "maxTimeoutSeconds": 300,
      "max_timeout_seconds": 300,
      "mimeType": "application/json",
      "network": "eip155:8453",
      "outputSchema": {
        "input": {
          "bodyType": "query",
          "description": "HTTP GET https://api.loyalspark.online/x402-gateway/balance?method=GET — x402-gateway /balance. Authenticate with header x-api-key: lsk_....",
          "inputSchema": {
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "additionalProperties": false,
            "properties": {
              "customer_address": {
                "description": "EVM address on Base (eip155:8453).",
                "pattern": "^0x[a-fA-F0-9]{40}$",
                "type": "string"
              },
              "token_address": {
                "description": "EVM address on Base (eip155:8453).",
                "pattern": "^0x[a-fA-F0-9]{40}$",
                "type": "string"
              }
            },
            "required": [
              "token_address",
              "customer_address"
            ],
            "type": "object"
          },
          "method": "GET",
          "type": "http"
        },
        "output": {
          "description": "JSON from Loyal Spark agent-api or recipient-api. See OpenAPI for response shape.",
          "schema": {
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "type": "object"
          },
          "type": "json"
        }
      },
      "payTo": "0x40a8CdD6a10EC1a8cB3dFb2834675e7a2CF4ad8b",
      "pay_to": "0x40a8CdD6a10EC1a8cB3dFb2834675e7a2CF4ad8b",
      "resource": "https://api.loyalspark.online/x402-gateway/balance?method=GET",
      "scheme": "exact"
    },
    "scheme": "exact"
  }
]

PaymentRequired raw

{
  "accepts": [
    {
      "amount": "1000",
      "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
      "description": "Onchain loyalty platform on Base Network. Businesses launch branded rewards in minutes. Customers earn real value with every purchase. AI agents automate the rest.",
      "extensions": {
        "bazaar": {
          "info": {
            "input": {
              "headers": {
                "x-api-key": "lsk_..."
              },
              "method": "GET",
              "queryParams": {
                "customer_address": "0x0000000000000000000000000000000000000002",
                "token_address": "0x0000000000000000000000000000000000000001"
              },
              "type": "http"
            },
            "inputSchema": {
              "$schema": "https://json-schema.org/draft/2020-12/schema",
              "additionalProperties": false,
              "properties": {
                "customer_address": {
                  "description": "EVM address on Base (eip155:8453).",
                  "pattern": "^0x[a-fA-F0-9]{40}$",
                  "type": "string"
                },
                "token_address": {
                  "description": "EVM address on Base (eip155:8453).",
                  "pattern": "^0x[a-fA-F0-9]{40}$",
                  "type": "string"
                }
              },
              "required": [
                "token_address",
                "customer_address"
              ],
              "type": "object"
            },
            "output": {
              "example": {
                "ok": true,
                "resource": "balance"
              },
              "type": "json"
            }
          },
          "schema": {
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "properties": {
              "input": {
                "additionalProperties": false,
                "properties": {
                  "headers": {
                    "additionalProperties": {
                      "type": "string"
                    },
                    "type": "object"
                  },
                  "method": {
                    "enum": [
                      "GET",
                      "HEAD",
                      "DELETE"
                    ],
                    "type": "string"
                  },
                  "queryParams": {
                    "additionalProperties": {
                      "type": "string"
                    },
                    "type": "object"
                  },
                  "type": {
                    "const": "http",
                    "type": "string"
                  }
                },
                "required": [
                  "type",
                  "method"
                ],
                "type": "object"
              },
              "inputSchema": {
                "type": "object"
              },
              "output": {
                "properties": {
                  "example": {},
                  "type": {
                    "type": "string"
                  }
                },
                "required": [
                  "type"
                ],
                "type": "object"
              }
            },
            "required": [
              "input"
            ],
            "type": "object"
          }
        },
        "builder-code": {
          "info": {
            "a": "bc_wdmnog7m"
          },
          "schema": {
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "additionalProperties": false,
            "properties": {
              "a": {
                "description": "App builder code",
                "pattern": "^[a-z0-9_]{1,32}$",
                "type": "string"
              },
              "s": {
                "description": "Service builder codes",
                "items": {
                  "pattern": "^[a-z0-9_]{1,32}$",
                  "type": "string"
                },
                "type": "array"
              },
              "w": {
                "description": "Wallet builder code",
                "pattern": "^[a-z0-9_]{1,32}$",
                "type": "string"
              }
            },
            "type": "object"
          }
        }
      },
      "extra": {
        "brand": "Loyal Spark",
        "builderCode": "bc_wdmnog7m",
        "description": "Onchain loyalty platform on Base Network. Businesses launch branded rewards in minutes. Customers earn real value with every purchase. AI agents automate the rest.",
        "documentation": "https://loyalspark.online/for-agents",
        "name": "USD Coin",
        "provider": "Loyal Spark",
        "version": "2",
        "website": "https://loyalspark.online"
      },
      "maxAmountRequired": "1000",
      "maxTimeoutSeconds": 300,
      "mimeType": "application/json",
      "network": "eip155:8453",
      "outputSchema": {
        "input": {
          "bodyType": "query",
          "description": "HTTP GET https://api.loyalspark.online/x402-gateway/balance?method=GET — x402-gateway /balance. Authenticate with header x-api-key: lsk_....",
          "inputSchema": {
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "additionalProperties": false,
            "properties": {
              "customer_address": {
                "description": "EVM address on Base (eip155:8453).",
                "pattern": "^0x[a-fA-F0-9]{40}$",
                "type": "string"
              },
              "token_address": {
                "description": "EVM address on Base (eip155:8453).",
                "pattern": "^0x[a-fA-F0-9]{40}$",
                "type": "string"
              }
            },
            "required": [
              "token_address",
              "customer_address"
            ],
            "type": "object"
          },
          "method": "GET",
          "type": "http"
        },
        "output": {
          "description": "JSON from Loyal Spark agent-api or recipient-api. See OpenAPI for response shape.",
          "schema": {
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "type": "object"
          },
          "type": "json"
        }
      },
      "payTo": "0x40a8CdD6a10EC1a8cB3dFb2834675e7a2CF4ad8b",
      "resource": "https://api.loyalspark.online/x402-gateway/balance?method=GET",
      "scheme": "exact"
    }
  ],
  "error": "X-PAYMENT header is required",
  "extensions": {
    "bazaar": {
      "info": {
        "input": {
          "headers": {
            "x-api-key": "lsk_..."
          },
          "method": "GET",
          "queryParams": {
            "customer_address": "0x0000000000000000000000000000000000000002",
            "token_address": "0x0000000000000000000000000000000000000001"
          },
          "type": "http"
        },
        "inputSchema": {
          "$schema": "https://json-schema.org/draft/2020-12/schema",
          "additionalProperties": false,
          "properties": {
            "customer_address": {
              "description": "EVM address on Base (eip155:8453).",
              "pattern": "^0x[a-fA-F0-9]{40}$",
              "type": "string"
            },
            "token_address": {
              "description": "EVM address on Base (eip155:8453).",
              "pattern": "^0x[a-fA-F0-9]{40}$",
              "type": "string"
            }
          },
          "required": [
            "token_address",
            "customer_address"
          ],
          "type": "object"
        },
        "output": {
          "example": {
            "ok": true,
            "resource": "balance"
          },
          "type": "json"
        }
      },
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "input": {
            "additionalProperties": false,
            "properties": {
              "headers": {
                "additionalProperties": {
                  "type": "string"
                },
                "type": "object"
              },
              "method": {
                "enum": [
                  "GET",
                  "HEAD",
                  "DELETE"
                ],
                "type": "string"
              },
              "queryParams": {
                "additionalProperties": {
                  "type": "string"
                },
                "type": "object"
              },
              "type": {
                "const": "http",
                "type": "string"
              }
            },
            "required": [
              "type",
              "method"
            ],
            "type": "object"
          },
          "inputSchema": {
            "type": "object"
          },
          "output": {
            "properties": {
              "example": {},
              "type": {
                "type": "string"
              }
            },
            "required": [
              "type"
            ],
            "type": "object"
          }
        },
        "required": [
          "input"
        ],
        "type": "object"
      }
    },
    "builder-code": {
      "info": {
        "a": "bc_wdmnog7m"
      },
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "additionalProperties": false,
        "properties": {
          "a": {
            "description": "App builder code",
            "pattern": "^[a-z0-9_]{1,32}$",
            "type": "string"
          },
          "s": {
            "description": "Service builder codes",
            "items": {
              "pattern": "^[a-z0-9_]{1,32}$",
              "type": "string"
            },
            "type": "array"
          },
          "w": {
            "description": "Wallet builder code",
            "pattern": "^[a-z0-9_]{1,32}$",
            "type": "string"
          }
        },
        "type": "object"
      }
    }
  },
  "resource": {
    "method": "GET",
    "mimeType": "application/json",
    "url": "https://api.loyalspark.online/x402-gateway/balance?method=GET"
  },
  "x402Version": 2
}

Response headers

{
  "access-control-allow-headers": "authorization, x-client-info, apikey, content-type, x-api-key, payment-signature, payment-required, x-payment, payment-response",
  "access-control-allow-origin": "*",
  "access-control-expose-headers": "X-Payment-Required, Payment-Required, PAYMENT-REQUIRED, X-Payment-Response, Payment-Response, PAYMENT-RESPONSE, X-Payment-Protocol, X-Payment-TxHash, X-Payment-Error, EXTENSION-RESPONSES",
  "alt-svc": "h3=\":443\"; ma=86400",
  "cf-cache-status": "DYNAMIC",
  "cf-ray": "a2a29437eec5f331-IAD",
  "connection": "keep-alive",
  "content-type": "application/json",
  "date": "Wed, 12 Aug 2026 21:30:02 GMT",
  "endpoint-load-metrics": "application_utilization:17,named_metrics.queue_depth:17",
  "nel": "{\"report_to\":\"cf-nel\",\"success_fraction\":0.0,\"max_age\":604800}",
  "payment-required": "eyJ4NDAyVmVyc2lvbiI6MiwiYWNjZXB0cyI6W3sic2NoZW1lIjoiZXhhY3QiLCJuZXR3b3JrIjoiZWlwMTU1Ojg0NTMiLCJhbW91bnQiOiIxMDAwIiwibWF4QW1vdW50UmVxdWlyZWQiOiIxMDAwIiwibWF4VGltZW91dFNlY29uZHMiOjMwMCwicmVzb3VyY2UiOiJodHRwczovL2FwaS5sb3lhbHNwYXJrLm9ubGluZS94NDAyLWdhdGV3YXkvYmFsYW5jZT9tZXRob2Q9R0VUIiwiZGVzY3JpcHRpb24iOiJPbmNoYWluIGxveWFsdHkgcGxhdGZvcm0gb24gQmFzZSBOZXR3b3JrLiBCdXNpbmVzc2VzIGxhdW5jaCBicmFuZGVkIHJld2FyZHMgaW4gbWludXRlcy4gQ3VzdG9tZXJzIGVhcm4gcmVhbCB2YWx1ZSB3aXRoIGV2ZXJ5IHB1cmNoYXNlLiBBSSBhZ2VudHMgYXV0b21hdGUgdGhlIHJlc3QuIiwibWltZVR5cGUiOiJhcHBsaWNhdGlvbi9qc29uIiwicGF5VG8iOiIweDQwYThDZEQ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mlwdGlvbiI6IkFwcCBidWlsZGVyIGNvZGUifSwidyI6eyJ0eXBlIjoic3RyaW5nIiwicGF0dGVybiI6Il5bYS16MC05X117MSwzMn0kIiwiZGVzY3JpcHRpb24iOiJXYWxsZXQgYnVpbGRlciBjb2RlIn0sInMiOnsidHlwZSI6ImFycmF5IiwiaXRlbXMiOnsidHlwZSI6InN0cmluZyIsInBhdHRlcm4iOiJeW2EtejAtOV9dezEsMzJ9JCJ9LCJkZXNjcmlwdGlvbiI6IlNlcnZpY2UgYnVpbGRlciBjb2RlcyJ9fSwiYWRkaXRpb25hbFByb3BlcnRpZXMiOmZhbHNlfX19fQ==",
  "report-to": "{\"group\":\"cf-nel\",\"max_age\":604800,\"endpoints\":[{\"url\":\"https://a.nel.cloudflare.com/report/v4?s=eUY9ImAMiJwTYfHwVRLpEMPRu%2FJeqVx1m6TVBOg19u1tji48fMWVsJMdV%2FVDr8OE%2BLxcWzWk%2FeeFrt3Y3ijhHiP%2Bi2L0s%2F7kHb7TVHOTjce8u6cKEBuY5ptYVwyYCfh2cOyigQKj2jI%3D\"}]}",
  "sb-gateway-version": "1",
  "sb-project-ref": "bzxmejzssxjazswgwqqs",
  "sb-request-id": "019ff7e1-defc-7875-a536-6075038b56d9",
  "server": "cloudflare",
  "set-cookie": "__cf_bm=25KnFRWMA6ziBUoiAb3jFzqyFqQIq7pV08lYVk3Dq0Q-1786570202.8715432-1.0.1.1-0rglPUpEZFTAzkOCn9gcuyZ58p5bvXs4dLgQ5dqkHiVh7RFIZFn8ADS8rRnejeHs2FgAP3M1Rp.YW8T1CiDTHQEUj150wPU8EfPSh7iE3Osyweq3XaEcZoKO1S0iRF_K; HttpOnly; SameSite=None; Secure; Path=/; Domain=supabase.co; Expires=Wed, 12 Aug 2026 22:00:02 GMT",
  "strict-transport-security": "max-age=31536000; includeSubDomains; preload",
  "transfer-encoding": "chunked",
  "vary": "Accept-Encoding",
  "x-content-type-options": "nosniff",
  "x-deno-execution-id": "e7c884ba-ab5f-4068-aa00-a6867eebba02",
  "x-proxied-by": "loyalspark-cf-worker",
  "x-sb-edge-region": "us-east-1",
  "x-served-by": "supabase-edge-runtime"
}

Response body

{
  "accepts": [
    {
      "amount": "1000",
      "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
      "description": "Onchain loyalty platform on Base Network. Businesses launch branded rewards in minutes. Customers earn real value with every purchase. AI agents automate the rest.",
      "extensions": {
        "bazaar": {
          "info": {
            "input": {
              "headers": {
                "x-api-key": "lsk_..."
              },
              "method": "GET",
              "queryParams": {
                "customer_address": "0x0000000000000000000000000000000000000002",
                "token_address": "0x0000000000000000000000000000000000000001"
              },
              "type": "http"
            },
            "inputSchema": {
              "$schema": "https://json-schema.org/draft/2020-12/schema",
              "additionalProperties": false,
              "properties": {
                "customer_address": {
                  "description": "EVM address on Base (eip155:8453).",
                  "pattern": "^0x[a-fA-F0-9]{40}$",
                  "type": "string"
                },
                "token_address": {
                  "description": "EVM address on Base (eip155:8453).",
                  "pattern": "^0x[a-fA-F0-9]{40}$",
                  "type": "string"
                }
              },
              "required": [
                "token_address",
                "customer_address"
              ],
              "type": "object"
            },
            "output": {
              "example": {
                "ok": true,
                "resource": "balance"
              },
              "type": "json"
            }
          },
          "schema": {
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "properties": {
              "input": {
                "additionalProperties": false,
                "properties": {
                  "headers": {
                    "additionalProperties": {
                      "type": "string"
                    },
                    "type": "object"
                  },
                  "method": {
                    "enum": [
                      "GET",
                      "HEAD",
                      "DELETE"
                    ],
                    "type": "string"
                  },
                  "queryParams": {
                    "additionalProperties": {
                      "type": "string"
                    },
                    "type": "object"
                  },
                  "type": {
                    "const": "http",
                    "type": "string"
                  }
                },
                "required": [
                  "type",
                  "method"
                ],
                "type": "object"
              },
              "inputSchema": {
                "type": "object"
              },
              "output": {
                "properties": {
                  "example": {},
                  "type": {
                    "type": "string"
                  }
                },
                "required": [
                  "type"
                ],
                "type": "object"
              }
            },
            "required": [
              "input"
            ],
            "type": "object"
          }
        },
        "builder-code": {
          "info": {
            "a": "bc_wdmnog7m"
          },
          "schema": {
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "additionalProperties": false,
            "properties": {
              "a": {
                "description": "App builder code",
                "pattern": "^[a-z0-9_]{1,32}$",
                "type": "string"
              },
              "s": {
                "description": "Service builder codes",
                "items": {
                  "pattern": "^[a-z0-9_]{1,32}$",
                  "type": "string"
                },
                "type": "array"
              },
              "w": {
                "description": "Wallet builder code",
                "pattern": "^[a-z0-9_]{1,32}$",
                "type": "string"
              }
            },
            "type": "object"
          }
        }
      },
      "extra": {
        "brand": "Loyal Spark",
        "builderCode": "bc_wdmnog7m",
        "description": "Onchain loyalty platform on Base Network. Businesses launch branded rewards in minutes. Customers earn real value with every purchase. AI agents automate the rest.",
        "documentation": "https://loyalspark.online/for-agents",
        "name": "USD Coin",
        "provider": "Loyal Spark",
        "version": "2",
        "website": "https://loyalspark.online"
      },
      "maxAmountRequired": "1000",
      "maxTimeoutSeconds": 300,
      "mimeType": "application/json",
      "network": "eip155:8453",
      "outputSchema": {
        "input": {
          "bodyType": "query",
          "description": "HTTP GET https://api.loyalspark.online/x402-gateway/balance?method=GET — x402-gateway /balance. Authenticate with header x-api-key: lsk_....",
          "inputSchema": {
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "additionalProperties": false,
            "properties": {
              "customer_address": {
                "description": "EVM address on Base (eip155:8453).",
                "pattern": "^0x[a-fA-F0-9]{40}$",
                "type": "string"
              },
              "token_address": {
                "description": "EVM address on Base (eip155:8453).",
                "pattern": "^0x[a-fA-F0-9]{40}$",
                "type": "string"
              }
            },
            "required": [
              "token_address",
              "customer_address"
            ],
            "type": "object"
          },
          "method": "GET",
          "type": "http"
        },
        "output": {
          "description": "JSON from Loyal Spark agent-api or recipient-api. See OpenAPI for response shape.",
          "schema": {
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "type": "object"
          },
          "type": "json"
        }
      },
      "payTo": "0x40a8CdD6a10EC1a8cB3dFb2834675e7a2CF4ad8b",
      "resource": "https://api.loyalspark.online/x402-gateway/balance?method=GET",
      "scheme": "exact"
    }
  ],
  "error": "X-PAYMENT header is required",
  "extensions": {
    "bazaar": {
      "info": {
        "input": {
          "headers": {
            "x-api-key": "lsk_..."
          },
          "method": "GET",
          "queryParams": {
            "customer_address": "0x0000000000000000000000000000000000000002",
            "token_address": "0x0000000000000000000000000000000000000001"
          },
          "type": "http"
        },
        "inputSchema": {
          "$schema": "https://json-schema.org/draft/2020-12/schema",
          "additionalProperties": false,
          "properties": {
            "customer_address": {
              "description": "EVM address on Base (eip155:8453).",
              "pattern": "^0x[a-fA-F0-9]{40}$",
              "type": "string"
            },
            "token_address": {
              "description": "EVM address on Base (eip155:8453).",
              "pattern": "^0x[a-fA-F0-9]{40}$",
              "type": "string"
            }
          },
          "required": [
            "token_address",
            "customer_address"
          ],
          "type": "object"
        },
        "output": {
          "example": {
            "ok": true,
            "resource": "balance"
          },
          "type": "json"
        }
      },
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "input": {
            "additionalProperties": false,
            "properties": {
              "headers": {
                "additionalProperties": {
                  "type": "string"
                },
                "type": "object"
              },
              "method": {
                "enum": [
                  "GET",
                  "HEAD",
                  "DELETE"
                ],
                "type": "string"
              },
              "queryParams": {
                "additionalProperties": {
                  "type": "string"
                },
                "type": "object"
              },
              "type": {
                "const": "http",
                "type": "string"
              }
            },
            "required": [
              "type",
              "method"
            ],
            "type": "object"
          },
          "inputSchema": {
            "type": "object"
          },
          "output": {
            "properties": {
              "example": {},
              "type": {
                "type": "string"
              }
            },
            "required": [
              "type"
            ],
            "type": "object"
          }
        },
        "required": [
          "input"
        ],
        "type": "object"
      }
    },
    "builder-code": {
      "info": {
        "a": "bc_wdmnog7m"
      },
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "additionalProperties": false,
        "properties": {
          "a": {
            "description": "App builder code",
            "pattern": "^[a-z0-9_]{1,32}$",
            "type": "string"
          },
          "s": {
            "description": "Service builder codes",
            "items": {
              "pattern": "^[a-z0-9_]{1,32}$",
              "type": "string"
            },
            "type": "array"
          },
          "w": {
            "description": "Wallet builder code",
            "pattern": "^[a-z0-9_]{1,32}$",
            "type": "string"
          }
        },
        "type": "object"
      }
    }
  },
  "resource": {
    "method": "GET",
    "mimeType": "application/json",
    "url": "https://api.loyalspark.online/x402-gateway/balance?method=GET"
  },
  "x402Version": 2
}

Request headers

{
  "accept": "*/*",
  "user-agent": "Fetch402Bot/0.1 (+https://fetch402.com/crawler; contact: crawler@fetch402.com)"
}

Machine contract

Schemas.

InputJSON
{
  "headers": {
    "x-api-key": "lsk_..."
  },
  "method": "GET",
  "queryParams": {
    "customer_address": "0x0000000000000000000000000000000000000002",
    "token_address": "0x0000000000000000000000000000000000000001"
  },
  "type": "http"
}
OutputJSON
{
  "example": {
    "ok": true,
    "resource": "balance"
  },
  "type": "json"
}