{
  "x402Version": 2,
  "id": 25911,
  "slug": "25911",
  "resource": "https://api.402rates.com/v1/settlement/costs",
  "description": "Measured USDC transfer costs on Base, Polygon, Arbitrum, Ethereum and XDC: simulated gas, current token prices, fresh chain heads and applicable rollup L1 fees. Inputs and block references accompany each figure. Cheapest first; unmeasurable chains are excluded, not estimated. Business/professional use only. Terms: https://402rates.com/data-terms/",
  "type": "http",
  "serviceName": "402rates.com",
  "resourceType": "Payments",
  "accepts": [
    {
      "scheme": "exact",
      "network": "eip155:8453",
      "payTo": "0xf567Cfe0FDb87A1D6Ca330e3f30f0D3DA0F7cb98",
      "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
      "amount": "10000",
      "amountUsd": 0.01,
      "maxTimeoutSeconds": 300
    },
    {
      "scheme": "exact",
      "network": "eip155:137",
      "payTo": "0xf567Cfe0FDb87A1D6Ca330e3f30f0D3DA0F7cb98",
      "asset": "0x3c499c542cEF5E3811e1192ce70d8cC03d5c3359",
      "amount": "10000",
      "amountUsd": 0.01,
      "maxTimeoutSeconds": 300
    },
    {
      "scheme": "exact",
      "network": "eip155:42161",
      "payTo": "0xf567Cfe0FDb87A1D6Ca330e3f30f0D3DA0F7cb98",
      "asset": "0xaf88d065e77c8cC2239327C5EDb3A432268e5831",
      "amount": "10000",
      "amountUsd": 0.01,
      "maxTimeoutSeconds": 300
    },
    {
      "scheme": "exact",
      "network": "eip155:50",
      "payTo": "0xedb1a894761F0a142d80D09F82Ff7CF99158Bb19",
      "asset": "0xfA2958CB79b0491CC627c1557F441eF849Ca8eb1",
      "amount": "10000",
      "maxTimeoutSeconds": 120
    }
  ],
  "outputSchema": {
    "properties": {
      "example": {
        "type": "object"
      },
      "type": {
        "type": "string"
      }
    },
    "required": [
      "type"
    ],
    "type": "object"
  },
  "extensions": {
    "bazaar": {
      "info": {
        "input": {
          "method": "GET",
          "queryParams": {
            "chains": "base,polygon,arbitrum,ethereum,xdc"
          },
          "type": "http"
        },
        "output": {
          "example": {
            "cheapest": {
              "caveats": [],
              "chain": "xdc",
              "compared_chains": [
                "xdc"
              ],
              "est_cost_usd": 0.0000188,
              "excluded_chains": [],
              "runner_up": null,
              "scope": "transaction_fee_total",
              "stability": {
                "historical_claim": false,
                "level": "unknown"
              }
            },
            "data": [
              {
                "chain": "xdc",
                "cost_basis": "complete",
                "cost_bps": [
                  {
                    "fee_bps": 0.00188,
                    "notional_usd": 100
                  },
                  {
                    "fee_bps": 0.000188,
                    "notional_usd": 1000
                  },
                  {
                    "fee_bps": 0.0000188,
                    "notional_usd": 10000
                  }
                ],
                "est_cost_usd": 0.0000188,
                "fee_components": {
                  "execution_usd": 0.0000188,
                  "l1_data_usd": null,
                  "total_usd": 0.0000188
                },
                "fee_model": "single_layer",
                "gas_price_wei": "250000000",
                "gas_units": 46680,
                "gas_units_assumed": null,
                "gas_units_method": "eth_estimateGas",
                "gas_units_scenario": "transfer to an address with an existing USDC balance",
                "head_age_s": 3,
                "l1_data_fee_included": null,
                "transfer_amount_atomic": 1000000,
                "tx_type": "usdc_transfer"
              }
            ],
            "meta": {
              "attributions": [
                {
                  "fallback_used": false,
                  "fetched_at": "2026-08-30T22:14:03.011Z",
                  "message": "Data provided by CoinGecko",
                  "quote_asset": "usd",
                  "source_id": "coingecko.simple.licensed.xdc",
                  "url": "https://www.coingecko.com/en/api"
                }
              ],
              "capability": "compass.settlement.costs",
              "chains_requested": [
                "xdc"
              ],
              "chains_unavailable": [],
              "fee_completeness": "complete",
              "freshness": {
                "all_sources_within_policy": true,
                "cache_ttl_s": 119,
                "oldest_source_age_s": 1,
                "policy_max_age_s": 120,
                "valid_until": "2026-08-30T22:16:02.904Z"
              },
              "generated_at": "2026-08-30T22:14:03.117Z",
              "limitations": "a simulated transfer to an address that already holds the token; a first transfer to a fresh address costs more, and no bridge, mint or subscription cost is included",
              "request_id": "req_example1",
              "schema_version": "0.5.0",
              "sources": [
                {
                  "block": 85797652,
                  "fetched_at": "2026-08-30T22:14:02.904Z",
                  "id": "xdc.rpc.gas_price",
                  "kind": "onchain_read",
                  "max_age_s": 120
                },
                {
                  "fetched_at": "2026-08-30T22:14:02.904Z",
                  "id": "xdc.rpc.gas_units",
                  "kind": "onchain_simulation",
                  "max_age_s": 120,
                  "method": "eth_estimateGas"
                },
                {
                  "attribution": "Data provided by CoinGecko",
                  "fallback_used": false,
                  "fetched_at": "2026-08-30T22:14:03.011Z",
                  "id": "coingecko.simple.licensed.xdc",
                  "kind": "public_api",
                  "license_basis": "operator_attestation",
                  "licensed": true,
                  "max_age_s": 120,
                  "quote_asset": "usd",
                  "url": "https://www.coingecko.com/en/api"
                }
              ],
              "units": {
                "est_cost_usd": "usd",
                "fee_bps": "basis_points",
                "gas_price_wei": "wei",
                "transfer_amount_atomic": "usdc_atomic"
              },
              "version": "0.1.0"
            },
            "related": [
              "compass.rwa.yields",
              "compass.ping"
            ]
          },
          "type": "json"
        }
      },
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "input": {
            "additionalProperties": false,
            "properties": {
              "method": {
                "enum": [
                  "GET"
                ],
                "type": "string"
              },
              "queryParams": {
                "properties": {
                  "chains": {
                    "description": "comma-separated list of: base, polygon, arbitrum, ethereum, xdc. Order does not matter and duplicates are ignored. Omit it to price all five, which is the usual call and costs exactly the same.",
                    "pattern": "^(base|polygon|arbitrum|ethereum|xdc)(,(base|polygon|arbitrum|ethereum|xdc))*$",
                    "type": "string"
                  }
                },
                "type": "object"
              },
              "type": {
                "const": "http",
                "type": "string"
              }
            },
            "required": [
              "type",
              "method"
            ],
            "type": "object"
          },
          "output": {
            "properties": {
              "example": {
                "type": "object"
              },
              "type": {
                "type": "string"
              }
            },
            "required": [
              "type"
            ],
            "type": "object"
          }
        },
        "required": [
          "input"
        ],
        "type": "object"
      }
    }
  },
  "tags": [
    "settlement",
    "gas-costs",
    "usdc",
    "cross-chain",
    "transfer-cost",
    "bazaar"
  ],
  "sourceHost": "api.402rates.com",
  "lastUpdated": "2026-10-09T06:18:03.835Z",
  "quality": {
    "calls30d": 3,
    "uniquePayers30d": 3,
    "lastCalledAt": "2026-10-09T06:18:03.361Z"
  },
  "metadata": {
    "serviceName": "402rates.com",
    "extensions": {
      "bazaar": {
        "info": {
          "input": {
            "method": "GET",
            "queryParams": {
              "chains": "base,polygon,arbitrum,ethereum,xdc"
            },
            "type": "http"
          },
          "output": {
            "example": {
              "cheapest": {
                "caveats": [],
                "chain": "xdc",
                "compared_chains": [
                  "xdc"
                ],
                "est_cost_usd": 0.0000188,
                "excluded_chains": [],
                "runner_up": null,
                "scope": "transaction_fee_total",
                "stability": {
                  "historical_claim": false,
                  "level": "unknown"
                }
              },
              "data": [
                {
                  "chain": "xdc",
                  "cost_basis": "complete",
                  "cost_bps": [
                    {
                      "fee_bps": 0.00188,
                      "notional_usd": 100
                    },
                    {
                      "fee_bps": 0.000188,
                      "notional_usd": 1000
                    },
                    {
                      "fee_bps": 0.0000188,
                      "notional_usd": 10000
                    }
                  ],
                  "est_cost_usd": 0.0000188,
                  "fee_components": {
                    "execution_usd": 0.0000188,
                    "l1_data_usd": null,
                    "total_usd": 0.0000188
                  },
                  "fee_model": "single_layer",
                  "gas_price_wei": "250000000",
                  "gas_units": 46680,
                  "gas_units_assumed": null,
                  "gas_units_method": "eth_estimateGas",
                  "gas_units_scenario": "transfer to an address with an existing USDC balance",
                  "head_age_s": 3,
                  "l1_data_fee_included": null,
                  "transfer_amount_atomic": 1000000,
                  "tx_type": "usdc_transfer"
                }
              ],
              "meta": {
                "attributions": [
                  {
                    "fallback_used": false,
                    "fetched_at": "2026-08-30T22:14:03.011Z",
                    "message": "Data provided by CoinGecko",
                    "quote_asset": "usd",
                    "source_id": "coingecko.simple.licensed.xdc",
                    "url": "https://www.coingecko.com/en/api"
                  }
                ],
                "capability": "compass.settlement.costs",
                "chains_requested": [
                  "xdc"
                ],
                "chains_unavailable": [],
                "fee_completeness": "complete",
                "freshness": {
                  "all_sources_within_policy": true,
                  "cache_ttl_s": 119,
                  "oldest_source_age_s": 1,
                  "policy_max_age_s": 120,
                  "valid_until": "2026-08-30T22:16:02.904Z"
                },
                "generated_at": "2026-08-30T22:14:03.117Z",
                "limitations": "a simulated transfer to an address that already holds the token; a first transfer to a fresh address costs more, and no bridge, mint or subscription cost is included",
                "request_id": "req_example1",
                "schema_version": "0.5.0",
                "sources": [
                  {
                    "block": 85797652,
                    "fetched_at": "2026-08-30T22:14:02.904Z",
                    "id": "xdc.rpc.gas_price",
                    "kind": "onchain_read",
                    "max_age_s": 120
                  },
                  {
                    "fetched_at": "2026-08-30T22:14:02.904Z",
                    "id": "xdc.rpc.gas_units",
                    "kind": "onchain_simulation",
                    "max_age_s": 120,
                    "method": "eth_estimateGas"
                  },
                  {
                    "attribution": "Data provided by CoinGecko",
                    "fallback_used": false,
                    "fetched_at": "2026-08-30T22:14:03.011Z",
                    "id": "coingecko.simple.licensed.xdc",
                    "kind": "public_api",
                    "license_basis": "operator_attestation",
                    "licensed": true,
                    "max_age_s": 120,
                    "quote_asset": "usd",
                    "url": "https://www.coingecko.com/en/api"
                  }
                ],
                "units": {
                  "est_cost_usd": "usd",
                  "fee_bps": "basis_points",
                  "gas_price_wei": "wei",
                  "transfer_amount_atomic": "usdc_atomic"
                },
                "version": "0.1.0"
              },
              "related": [
                "compass.rwa.yields",
                "compass.ping"
              ]
            },
            "type": "json"
          }
        },
        "schema": {
          "$schema": "https://json-schema.org/draft/2020-12/schema",
          "properties": {
            "input": {
              "additionalProperties": false,
              "properties": {
                "method": {
                  "enum": [
                    "GET"
                  ],
                  "type": "string"
                },
                "queryParams": {
                  "properties": {
                    "chains": {
                      "description": "comma-separated list of: base, polygon, arbitrum, ethereum, xdc. Order does not matter and duplicates are ignored. Omit it to price all five, which is the usual call and costs exactly the same.",
                      "pattern": "^(base|polygon|arbitrum|ethereum|xdc)(,(base|polygon|arbitrum|ethereum|xdc))*$",
                      "type": "string"
                    }
                  },
                  "type": "object"
                },
                "type": {
                  "const": "http",
                  "type": "string"
                }
              },
              "required": [
                "type",
                "method"
              ],
              "type": "object"
            },
            "output": {
              "properties": {
                "example": {
                  "type": "object"
                },
                "type": {
                  "type": "string"
                }
              },
              "required": [
                "type"
              ],
              "type": "object"
            }
          },
          "required": [
            "input"
          ],
          "type": "object"
        }
      }
    }
  },
  "liveness": {
    "reliability": null
  },
  "verified": false,
  "featured": false,
  "provider": {
    "host": "api.402rates.com",
    "manifest_name": "api.402rates.com",
    "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": {},
    "type": "string"
  }
}