← Macaroon Network

Macaroon Network · christian-scripture-keyword-search-v1

Christian Scripture Keyword Search

Find up to 20 canonically ordered verses containing a supplied literal term or phrase.

0.001 USDC per requestactive

Base mainnet · x402 v2 · USDC exact payment

What you provide: a JSON request matching the input contract below.

What you receive: a result matching the output contract, plus predicate and payment evidence when a paid execution completes.

How to continue: request the payment requirement, sign it with a compatible external wallet, then submit the service request. Payment occurs outside ChatGPT.

Acceptance predicate

Acceptance predicate (the condition that must pass for payment to settle):

{
  "type": "all",
  "conditions": [
    {
      "type": "count_gte",
      "field": "$.evidence",
      "value": 1
    },
    {
      "type": "field_changed",
      "field": "$.product",
      "value": "scripture_keyword_search",
      "operator": "eq"
    },
    {
      "type": "field_changed",
      "field": "$.provenance.runtime_outbound_network_used",
      "value": false,
      "operator": "eq"
    }
  ]
}
Predicate hash:3561113f458cb982299e478aed5f458877f4f3ce57303bbcb59eda879692fab6

POLYMATHICA scope and limitations

POLYMATHICA evaluates the published acceptance predicate against the delivered output. It does not provide professional engineering certification.

Trust signals

Purchase count
0
Predicate pass rate
Last active

Integration

https://api.macaroonnetwork.com/execute/christian-scripture-keyword-search-v1

First fetch the HTTP 402 payment requirements. An x402 v2-compatible wallet signs those Base mainnet requirements, then sends the signed payload in the PAYMENT-SIGNATURE header.

# 1. Receive HTTP 402 + PAYMENT-REQUIRED
curl -i https://api.macaroonnetwork.com/execute/christian-scripture-keyword-search-v1

# 2. Sign PAYMENT-REQUIRED with an x402 v2 Base wallet, then execute
curl -X POST https://api.macaroonnetwork.com/execute/christian-scripture-keyword-search-v1 \
  -H "PAYMENT-SIGNATURE: <base64 x402 v2 signed payment payload>" \
  -H "X-Macaroon-Payment-Rail: x402" \
  -H "X-Macaroon-X402-Network: base" \
  -H "Content-Type: application/json" \
  -d '{
  "input": {
    "limit": 5,
    "query": "hope",
    "source_id": "bsb"
  },
  "predicate": {
    "type": "all",
    "conditions": [
      {
        "type": "count_gte",
        "field": "$.evidence",
        "value": 1
      },
      {
        "type": "field_changed",
        "field": "$.product",
        "value": "scripture_keyword_search",
        "operator": "eq"
      },
      {
        "type": "field_changed",
        "field": "$.provenance.runtime_outbound_network_used",
        "value": false,
        "operator": "eq"
      }
    ]
  }
}'

# A successful paid response includes PAYMENT-RESPONSE.

Input / Output schemas

Input

{
  "type": "object",
  "required": [
    "query"
  ],
  "properties": {
    "limit": {
      "type": "integer",
      "default": 10,
      "maximum": 20,
      "minimum": 1
    },
    "query": {
      "type": "string",
      "pattern": "^[A-Za-z][A-Za-z '’-]{1,39}$",
      "maxLength": 40,
      "minLength": 2
    },
    "source_id": {
      "enum": [
        "bsb",
        "web"
      ],
      "type": "string",
      "default": "bsb"
    }
  },
  "additionalProperties": false
}

Output

{
  "type": "object",
  "required": [
    "product",
    "query",
    "total",
    "evidence",
    "source_labels",
    "provenance",
    "limitations"
  ],
  "properties": {
    "query": {
      "type": "string"
    },
    "total": {
      "type": "integer",
      "maximum": 20,
      "minimum": 0
    },
    "product": {
      "const": "scripture_keyword_search"
    },
    "evidence": {
      "type": "array",
      "maxItems": 20,
      "minItems": 1
    },
    "provenance": {
      "type": "object"
    },
    "limitations": {
      "type": "array"
    },
    "source_labels": {
      "type": "array"
    }
  }
}