{
  "x402Version": 2,
  "id": 32029,
  "slug": "32029",
  "resource": "https://402.com.tr/api/x402/base-swap-validity",
  "description": "The base-swap 0x trade wrapped in a Cobalt validity transaction: Base holds your signed tx dormant until your conditions hold, then includes it — a good-till-block/conditional order, no limit-order contract, nobody holding the trade. We never hold funds or keys; you sign and submit to Base's sequencer. Conditions: beforeBlock (a deadline), fromBlock, flashblockIndex, minNativeBalanceWei, or a caller-supplied storage predicate for price. At least one required.",
  "type": "http",
  "resourceType": "Market Data",
  "accepts": [
    {
      "scheme": "exact",
      "network": "eip155:8453",
      "payTo": "0x973a31858f4d2125f48c880542da11a2796f12d6",
      "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
      "amount": "20000",
      "amountUsd": 0.02,
      "maxTimeoutSeconds": 300
    }
  ],
  "extensions": {
    "bazaar": {
      "info": {
        "input": {
          "method": "GET",
          "pathParams": {},
          "queryParams": {
            "amount": "10",
            "beforeBlock": "40000000",
            "buy": "ETH",
            "flashblockIndex": "0",
            "sell": "USDC",
            "slippage": "100",
            "storageOp": ">=",
            "taker": "0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045"
          },
          "type": "http"
        }
      },
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "input": {
            "additionalProperties": false,
            "properties": {
              "method": {
                "enum": [
                  "GET"
                ],
                "type": "string"
              },
              "pathParams": {
                "type": "object"
              },
              "queryParams": {
                "properties": {
                  "amount": {
                    "description": "Amount you sell",
                    "type": "string"
                  },
                  "beforeBlock": {
                    "description": "Deadline: before this block (recommended)",
                    "type": "string"
                  },
                  "buy": {
                    "description": "Token you buy",
                    "type": "string"
                  },
                  "flashblockIndex": {
                    "description": "Flashblock index (optional)",
                    "type": "string"
                  },
                  "fromBlock": {
                    "description": "Earliest block (optional)",
                    "type": "string"
                  },
                  "minNativeBalanceWei": {
                    "description": "Min taker ETH balance in wei (optional)",
                    "type": "string"
                  },
                  "sell": {
                    "description": "Token you sell",
                    "type": "string"
                  },
                  "slippage": {
                    "description": "Slippage in bps (optional, default 100)",
                    "type": "string"
                  },
                  "storageAddress": {
                    "description": "Advanced: pool/token for a storage condition",
                    "type": "string"
                  },
                  "storageMask": {
                    "description": "Advanced: mask (hex, optional)",
                    "type": "string"
                  },
                  "storageOp": {
                    "description": "Advanced: operator (< <= = != > >=)",
                    "type": "string"
                  },
                  "storageSlot": {
                    "description": "Advanced: storage slot (hex)",
                    "type": "string"
                  },
                  "storageValue": {
                    "description": "Advanced: compare value (hex)",
                    "type": "string"
                  },
                  "taker": {
                    "description": "Your wallet (signs the swap)",
                    "type": "string"
                  }
                },
                "required": [
                  "sell",
                  "buy",
                  "amount",
                  "taker"
                ],
                "type": "object"
              },
              "type": {
                "const": "http",
                "type": "string"
              }
            },
            "required": [
              "type",
              "method"
            ],
            "type": "object"
          }
        },
        "required": [
          "input"
        ],
        "type": "object"
      }
    },
    "builder-code": {
      "info": {
        "a": "bc_pa0gqlv1"
      },
      "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"
      }
    }
  },
  "tags": [
    "onchain",
    "evm",
    "wallet-intel",
    "swap",
    "validity",
    "bazaar",
    "builder-code"
  ],
  "sourceHost": "402.com.tr",
  "lastUpdated": "2026-10-09T11:06:43.744Z",
  "quality": {
    "calls30d": 1,
    "uniquePayers30d": 1,
    "lastCalledAt": "2026-10-09T11:06:43.253Z"
  },
  "metadata": {
    "extensions": {
      "bazaar": {
        "info": {
          "input": {
            "method": "GET",
            "pathParams": {},
            "queryParams": {
              "amount": "10",
              "beforeBlock": "40000000",
              "buy": "ETH",
              "flashblockIndex": "0",
              "sell": "USDC",
              "slippage": "100",
              "storageOp": ">=",
              "taker": "0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045"
            },
            "type": "http"
          }
        },
        "schema": {
          "$schema": "https://json-schema.org/draft/2020-12/schema",
          "properties": {
            "input": {
              "additionalProperties": false,
              "properties": {
                "method": {
                  "enum": [
                    "GET"
                  ],
                  "type": "string"
                },
                "pathParams": {
                  "type": "object"
                },
                "queryParams": {
                  "properties": {
                    "amount": {
                      "description": "Amount you sell",
                      "type": "string"
                    },
                    "beforeBlock": {
                      "description": "Deadline: before this block (recommended)",
                      "type": "string"
                    },
                    "buy": {
                      "description": "Token you buy",
                      "type": "string"
                    },
                    "flashblockIndex": {
                      "description": "Flashblock index (optional)",
                      "type": "string"
                    },
                    "fromBlock": {
                      "description": "Earliest block (optional)",
                      "type": "string"
                    },
                    "minNativeBalanceWei": {
                      "description": "Min taker ETH balance in wei (optional)",
                      "type": "string"
                    },
                    "sell": {
                      "description": "Token you sell",
                      "type": "string"
                    },
                    "slippage": {
                      "description": "Slippage in bps (optional, default 100)",
                      "type": "string"
                    },
                    "storageAddress": {
                      "description": "Advanced: pool/token for a storage condition",
                      "type": "string"
                    },
                    "storageMask": {
                      "description": "Advanced: mask (hex, optional)",
                      "type": "string"
                    },
                    "storageOp": {
                      "description": "Advanced: operator (< <= = != > >=)",
                      "type": "string"
                    },
                    "storageSlot": {
                      "description": "Advanced: storage slot (hex)",
                      "type": "string"
                    },
                    "storageValue": {
                      "description": "Advanced: compare value (hex)",
                      "type": "string"
                    },
                    "taker": {
                      "description": "Your wallet (signs the swap)",
                      "type": "string"
                    }
                  },
                  "required": [
                    "sell",
                    "buy",
                    "amount",
                    "taker"
                  ],
                  "type": "object"
                },
                "type": {
                  "const": "http",
                  "type": "string"
                }
              },
              "required": [
                "type",
                "method"
              ],
              "type": "object"
            }
          },
          "required": [
            "input"
          ],
          "type": "object"
        }
      },
      "builder-code": {
        "info": {
          "a": "bc_pa0gqlv1"
        },
        "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"
        }
      }
    }
  },
  "liveness": {
    "reliability": null
  },
  "verified": false,
  "featured": false,
  "provider": {
    "host": "402.com.tr",
    "manifest_name": "402.com.tr",
    "source": "cdp-mirror",
    "source_manifest_url": "https://api.cdp.coinbase.com/platform/v2/x402/discovery/resources",
    "submitted_at": "2026-10-14T01:15:01.050Z"
  }
}