{
  "x402Version": 2,
  "id": 38611,
  "slug": "38611",
  "resource": "https://web-production-220a3.up.railway.app/agentic/call/fair_commit",
  "description": "Use this before any draw other players must trust (a game between agents, a raffle, a giveaway): the server picks a secret seed and publishes its SHA-256 hash now, so it cannot change the seed later. Price: $0.003 in USDC on Base or Solana, or $0.02 in USDG or $SWOGE on Robinhood Chain (tool price + settlement cost, minimum $0.02).",
  "type": "http",
  "serviceName": "SwogeAgentic",
  "iconUrl": "https://res.cloudinary.com/bdb-prod/image/upload/c_fill,ar_1:1,w_256,h_256,f_auto,q_auto/v1790499407/bazaar-icons/a4b778c1570bc6b8.png",
  "resourceType": "Payments",
  "accepts": [
    {
      "scheme": "exact",
      "network": "eip155:8453",
      "payTo": "0xE81C67c086c83997b41673e1e41e481c14D756F6",
      "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
      "amount": "3000",
      "amountUsd": 0.003,
      "maxTimeoutSeconds": 120
    },
    {
      "scheme": "exact",
      "network": "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp",
      "payTo": "CFg86EW2ZSAgGpf4o2XAt3gU59fgMfsuZyM6QDuDTmoM",
      "asset": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
      "amount": "3000",
      "amountUsd": 0.003,
      "maxTimeoutSeconds": 120
    },
    {
      "scheme": "exact",
      "network": "eip155:4663",
      "payTo": "0xE81C67c086c83997b41673e1e41e481c14D756F6",
      "asset": "0x5fc5360D0400a0Fd4f2af552ADD042D716F1d168",
      "amount": "20000",
      "maxTimeoutSeconds": 120
    },
    {
      "scheme": "exact",
      "network": "eip155:4663",
      "payTo": "0xE81C67c086c83997b41673e1e41e481c14D756F6",
      "asset": "0x8a166Fb41Cd659a0a43396272FF73973Ce29F817",
      "amount": "524109014675052435450",
      "maxTimeoutSeconds": 120
    }
  ],
  "outputSchema": {
    "properties": {
      "example": {
        "properties": {
          "ok": {
            "const": true,
            "type": "boolean"
          },
          "outil": {
            "const": "fair_commit",
            "type": "string"
          },
          "resultat": {
            "properties": {
              "algorithm": {
                "type": "string"
              },
              "commitment_id": {
                "type": "string"
              },
              "committed_at": {
                "type": "string"
              },
              "expires_at": {
                "type": "string"
              },
              "next": {
                "type": "string"
              },
              "server_seed_hash": {
                "type": "string"
              }
            },
            "required": [
              "commitment_id",
              "server_seed_hash",
              "algorithm",
              "committed_at",
              "expires_at",
              "next"
            ],
            "type": "object"
          },
          "texte": {
            "type": "string"
          },
          "x402": {
            "properties": {
              "amount": {
                "type": "string"
              },
              "asset": {
                "type": "string"
              },
              "network": {
                "type": "string"
              },
              "transaction": {
                "type": "string"
              }
            },
            "required": [
              "transaction",
              "network",
              "amount",
              "asset"
            ],
            "type": "object"
          }
        },
        "required": [
          "ok",
          "outil"
        ],
        "type": "object"
      },
      "type": {
        "type": "string"
      }
    },
    "required": [
      "type"
    ],
    "type": "object"
  },
  "extensions": {
    "bazaar": {
      "info": {
        "input": {
          "body": {
            "arguments": {}
          },
          "bodyType": "json",
          "method": "POST",
          "type": "http"
        },
        "output": {
          "example": {
            "ok": true,
            "outil": "fair_commit",
            "resultat": {
              "algorithm": "swoge-hmac-sha256-v1",
              "commitment_id": "6a1f0c3e9b7d2a5c8e4f1b0d",
              "committed_at": "2026-09-28T21:00:00.000Z",
              "expires_at": "2026-10-05T21:00:00.000Z",
              "next": "Share server_seed_hash with the other players now. Then call fair_draw with this commitment_id and your client_seed: the server reveals its seed and draws once.",
              "server_seed_hash": "b85ef21a5deba1bcd033f7eb675b391cf40ce04d63d5e3da39ed9f61f27180b8"
            },
            "texte": "Commitment 6a1f0c3e9b7d2a5c8e4f1b0d: server_seed_hash b85ef21a5deba1bc... (swoge-hmac-sha256-v1)..."
          },
          "type": "json"
        }
      },
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "input": {
            "additionalProperties": false,
            "properties": {
              "body": {
                "properties": {
                  "arguments": {
                    "properties": {},
                    "type": "object"
                  }
                },
                "required": [
                  "arguments"
                ],
                "type": "object"
              },
              "bodyType": {
                "enum": [
                  "json"
                ],
                "type": "string"
              },
              "method": {
                "enum": [
                  "POST"
                ],
                "type": "string"
              },
              "type": {
                "const": "http",
                "type": "string"
              }
            },
            "required": [
              "type",
              "method",
              "bodyType",
              "body"
            ],
            "type": "object"
          },
          "output": {
            "properties": {
              "example": {
                "properties": {
                  "ok": {
                    "const": true,
                    "type": "boolean"
                  },
                  "outil": {
                    "const": "fair_commit",
                    "type": "string"
                  },
                  "resultat": {
                    "properties": {
                      "algorithm": {
                        "type": "string"
                      },
                      "commitment_id": {
                        "type": "string"
                      },
                      "committed_at": {
                        "type": "string"
                      },
                      "expires_at": {
                        "type": "string"
                      },
                      "next": {
                        "type": "string"
                      },
                      "server_seed_hash": {
                        "type": "string"
                      }
                    },
                    "required": [
                      "commitment_id",
                      "server_seed_hash",
                      "algorithm",
                      "committed_at",
                      "expires_at",
                      "next"
                    ],
                    "type": "object"
                  },
                  "texte": {
                    "type": "string"
                  },
                  "x402": {
                    "properties": {
                      "amount": {
                        "type": "string"
                      },
                      "asset": {
                        "type": "string"
                      },
                      "network": {
                        "type": "string"
                      },
                      "transaction": {
                        "type": "string"
                      }
                    },
                    "required": [
                      "transaction",
                      "network",
                      "amount",
                      "asset"
                    ],
                    "type": "object"
                  }
                },
                "required": [
                  "ok",
                  "outil"
                ],
                "type": "object"
              },
              "type": {
                "type": "string"
              }
            },
            "required": [
              "type"
            ],
            "type": "object"
          }
        },
        "required": [
          "input"
        ],
        "type": "object"
      }
    },
    "eip2612GasSponsoring": {
      "info": {
        "description": "The server accepts an EIP-2612 permit to the canonical Permit2 contract (value = the exact payment amount) and pays the gas.",
        "version": "1"
      },
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "amount": {
            "pattern": "^[0-9]+$",
            "type": "string"
          },
          "asset": {
            "pattern": "^0x[a-fA-F0-9]{40}$",
            "type": "string"
          },
          "deadline": {
            "pattern": "^[0-9]+$",
            "type": "string"
          },
          "from": {
            "pattern": "^0x[a-fA-F0-9]{40}$",
            "type": "string"
          },
          "nonce": {
            "pattern": "^[0-9]+$",
            "type": "string"
          },
          "signature": {
            "pattern": "^0x[a-fA-F0-9]+$",
            "type": "string"
          },
          "spender": {
            "pattern": "^0x[a-fA-F0-9]{40}$",
            "type": "string"
          },
          "version": {
            "pattern": "^[0-9]+(\\.[0-9]+)*$",
            "type": "string"
          }
        },
        "required": [
          "from",
          "asset",
          "spender",
          "amount",
          "nonce",
          "deadline",
          "signature",
          "version"
        ],
        "type": "object"
      }
    }
  },
  "tags": [
    "randomness",
    "bazaar",
    "eip2612GasSponsoring"
  ],
  "sourceHost": "web-production-220a3.up.railway.app",
  "lastUpdated": "2026-10-08T06:13:00.73Z",
  "quality": {
    "calls30d": 3,
    "uniquePayers30d": 3,
    "lastCalledAt": "2026-10-08T06:13:00.498Z"
  },
  "metadata": {
    "serviceName": "SwogeAgentic",
    "iconUrl": "https://res.cloudinary.com/bdb-prod/image/upload/c_fill,ar_1:1,w_256,h_256,f_auto,q_auto/v1790499407/bazaar-icons/a4b778c1570bc6b8.png",
    "extensions": {
      "bazaar": {
        "info": {
          "input": {
            "body": {
              "arguments": {}
            },
            "bodyType": "json",
            "method": "POST",
            "type": "http"
          },
          "output": {
            "example": {
              "ok": true,
              "outil": "fair_commit",
              "resultat": {
                "algorithm": "swoge-hmac-sha256-v1",
                "commitment_id": "6a1f0c3e9b7d2a5c8e4f1b0d",
                "committed_at": "2026-09-28T21:00:00.000Z",
                "expires_at": "2026-10-05T21:00:00.000Z",
                "next": "Share server_seed_hash with the other players now. Then call fair_draw with this commitment_id and your client_seed: the server reveals its seed and draws once.",
                "server_seed_hash": "b85ef21a5deba1bcd033f7eb675b391cf40ce04d63d5e3da39ed9f61f27180b8"
              },
              "texte": "Commitment 6a1f0c3e9b7d2a5c8e4f1b0d: server_seed_hash b85ef21a5deba1bc... (swoge-hmac-sha256-v1)..."
            },
            "type": "json"
          }
        },
        "schema": {
          "$schema": "https://json-schema.org/draft/2020-12/schema",
          "properties": {
            "input": {
              "additionalProperties": false,
              "properties": {
                "body": {
                  "properties": {
                    "arguments": {
                      "properties": {},
                      "type": "object"
                    }
                  },
                  "required": [
                    "arguments"
                  ],
                  "type": "object"
                },
                "bodyType": {
                  "enum": [
                    "json"
                  ],
                  "type": "string"
                },
                "method": {
                  "enum": [
                    "POST"
                  ],
                  "type": "string"
                },
                "type": {
                  "const": "http",
                  "type": "string"
                }
              },
              "required": [
                "type",
                "method",
                "bodyType",
                "body"
              ],
              "type": "object"
            },
            "output": {
              "properties": {
                "example": {
                  "properties": {
                    "ok": {
                      "const": true,
                      "type": "boolean"
                    },
                    "outil": {
                      "const": "fair_commit",
                      "type": "string"
                    },
                    "resultat": {
                      "properties": {
                        "algorithm": {
                          "type": "string"
                        },
                        "commitment_id": {
                          "type": "string"
                        },
                        "committed_at": {
                          "type": "string"
                        },
                        "expires_at": {
                          "type": "string"
                        },
                        "next": {
                          "type": "string"
                        },
                        "server_seed_hash": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "commitment_id",
                        "server_seed_hash",
                        "algorithm",
                        "committed_at",
                        "expires_at",
                        "next"
                      ],
                      "type": "object"
                    },
                    "texte": {
                      "type": "string"
                    },
                    "x402": {
                      "properties": {
                        "amount": {
                          "type": "string"
                        },
                        "asset": {
                          "type": "string"
                        },
                        "network": {
                          "type": "string"
                        },
                        "transaction": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "transaction",
                        "network",
                        "amount",
                        "asset"
                      ],
                      "type": "object"
                    }
                  },
                  "required": [
                    "ok",
                    "outil"
                  ],
                  "type": "object"
                },
                "type": {
                  "type": "string"
                }
              },
              "required": [
                "type"
              ],
              "type": "object"
            }
          },
          "required": [
            "input"
          ],
          "type": "object"
        }
      },
      "eip2612GasSponsoring": {
        "info": {
          "description": "The server accepts an EIP-2612 permit to the canonical Permit2 contract (value = the exact payment amount) and pays the gas.",
          "version": "1"
        },
        "schema": {
          "$schema": "https://json-schema.org/draft/2020-12/schema",
          "properties": {
            "amount": {
              "pattern": "^[0-9]+$",
              "type": "string"
            },
            "asset": {
              "pattern": "^0x[a-fA-F0-9]{40}$",
              "type": "string"
            },
            "deadline": {
              "pattern": "^[0-9]+$",
              "type": "string"
            },
            "from": {
              "pattern": "^0x[a-fA-F0-9]{40}$",
              "type": "string"
            },
            "nonce": {
              "pattern": "^[0-9]+$",
              "type": "string"
            },
            "signature": {
              "pattern": "^0x[a-fA-F0-9]+$",
              "type": "string"
            },
            "spender": {
              "pattern": "^0x[a-fA-F0-9]{40}$",
              "type": "string"
            },
            "version": {
              "pattern": "^[0-9]+(\\.[0-9]+)*$",
              "type": "string"
            }
          },
          "required": [
            "from",
            "asset",
            "spender",
            "amount",
            "nonce",
            "deadline",
            "signature",
            "version"
          ],
          "type": "object"
        }
      }
    }
  },
  "liveness": {
    "reliability": null
  },
  "verified": false,
  "featured": false,
  "provider": {
    "host": "web-production-220a3.up.railway.app",
    "manifest_name": "web-production-220a3.up.railway.app",
    "source": "cdp-mirror",
    "source_manifest_url": "https://api.cdp.coinbase.com/platform/v2/x402/discovery/resources",
    "submitted_at": "2026-10-14T01:15:01.050Z"
  },
  "exampleResponse": {
    "example": {
      "ok": true,
      "outil": "string",
      "resultat": {
        "algorithm": "string",
        "commitment_id": "string",
        "committed_at": "string",
        "expires_at": "string",
        "next": "string",
        "server_seed_hash": "string"
      },
      "texte": "string",
      "x402": {
        "amount": "string",
        "asset": "string",
        "network": "string",
        "transaction": "string"
      }
    },
    "type": "string"
  }
}