{
  "generated_at": "2026-05-11T00:56:48.476130+00:00",
  "slug": "foresight-portals-fi-v1-simulate-batch",
  "title": "Foresight \u00b7 Simulate Batch",
  "url": "https://foresight.portals.fi/v1/simulate/batch",
  "category": "tools",
  "summary": "Foresight \u00b7 Simulate Batch \u2014 x402-protected tools API. Pay $0.0050 per call on base. Indexed by x402all.",
  "seo": {
    "title": "Foresight \u00b7 Simulate Batch \u2014 x402 tools API \u00b7 $0.0050 per call",
    "description": "Foresight \u00b7 Simulate Batch \u2014 x402-protected tools API. Pay $0.0050 per call on base. Indexed by x402all."
  },
  "use_cases": [],
  "risk_notes": [],
  "pricing_sanity": {
    "flag": "normal",
    "ratio": 0.5,
    "median_category_atomic": 10000
  },
  "pricing_review_required": false,
  "pricing_decimal_suspect": false,
  "trust_tier": "indexed_external",
  "accepts": [
    {
      "scheme": "exact",
      "network": "base",
      "pay_to": "0x68f80fd72eae6b37d1f70e5cdd8a8e7ba12e3af7",
      "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
      "max_amount_required_atomic": "5000",
      "max_timeout_seconds": 60,
      "description": "Simulate multi-step DeFi flows (approve+swap, deposit+borrow) with shared state. Validate entire strategies before committing on-chain.",
      "verified": false,
      "hints": {
        "input": {
          "body": {
            "required": [
              "sender",
              "steps"
            ],
            "properties": {
              "steps": {
                "type": "array",
                "items": {
                  "type": "object",
                  "required": [
                    "tx"
                  ],
                  "properties": {
                    "tx": {
                      "type": "object",
                      "required": [
                        "from",
                        "to",
                        "data",
                        "value"
                      ],
                      "properties": {
                        "to": {
                          "type": "string"
                        },
                        "data": {
                          "type": "string"
                        },
                        "from": {
                          "type": "string"
                        },
                        "value": {
                          "type": "string"
                        }
                      }
                    },
                    "inputToken": {
                      "type": "string",
                      "description": "Address of the input token for this step"
                    },
                    "inputAmount": {
                      "type": "string",
                      "description": "Input amount in token base units for this step"
                    }
                  }
                },
                "description": "Ordered list of transaction steps to simulate sequentially"
              },
              "sender": {
                "type": "string",
                "description": "Address of the sender executing all steps"
              },
              "recipient": {
                "type": "string",
                "description": "Optional recipient address"
              }
            }
          },
          "type": "http",
          "method": "POST",
          "bodyType": "json"
        },
        "output": {
          "type": "json",
          "example": {
            "steps": [
              {
                "gasUsed": "46109",
                "success": true,
                "stepIndex": 0
              },
              {
                "gasUsed": "152847",
                "success": true,
                "stepIndex": 1
              }
            ],
            "success": true,
            "aggregate": {
              "gasCost": "5968680000000000",
              "gasUsed": "198956",
              "success": true,
              "inputTokens": [
                {
                  "token": "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48",
                  "amount": "100000000",
                  "standard": "erc20"
                }
              ],
              "assetChanges": [
                {
                  "token": "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48",
                  "amount": "100000000",
                  "standard": "erc20",
                  "direction": "sent"
                },
                {
                  "token": "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2",
                  "amount": "32450000000000000",
                  "standard": "erc20",
                  "direction": "received"
                }
              ],
              "outputTokens": [
                {
                  "token": "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2",
                  "amount": "32450000000000000",
                  "standard": "erc20"
                }
              ],
              "tokenMetadata": {
                "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48": {
                  "name": "USD Coin",
                  "symbol": "USDC",
                  "decimals": 6
                },
                "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2": {
                  "name": "Wrapped Ether",
                  "symbol": "WETH",
                  "decimals": 18
                }
              }
            }
          }
        }
      }
    }
  ],
  "origin": {
    "slug": "foresight-portals-fi",
    "host": "foresight.portals.fi",
    "url": "https://foresight.portals.fi",
    "favicon": "https://foresight.portals.fi/favicon.svg"
  },
  "json_ld": {
    "@id": "https://x402all.com/resource/foresight-portals-fi-v1-simulate-batch",
    "url": "https://x402all.com/resource/foresight-portals-fi-v1-simulate-batch",
    "name": "Foresight \u00b7 Simulate Batch",
    "@type": "WebAPI",
    "offers": {
      "url": "https://x402all.com/resource/foresight-portals-fi-v1-simulate-batch",
      "@type": "Offer",
      "price": "0.005",
      "availability": "https://schema.org/InStock",
      "priceCurrency": "USDC",
      "additionalProperty": [
        {
          "name": "paymentNetwork",
          "@type": "PropertyValue",
          "value": "base"
        },
        {
          "name": "paymentAsset",
          "@type": "PropertyValue",
          "value": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913"
        }
      ],
      "priceSpecification": {
        "@type": "UnitPriceSpecification",
        "price": "0.005000",
        "unitText": "call",
        "priceCurrency": "USDC"
      },
      "eligibleCustomerType": "Agent"
    },
    "sameAs": "https://foresight.portals.fi/v1/simulate/batch",
    "@context": "https://schema.org",
    "provider": {
      "@id": "https://x402all.com/server/foresight-portals-fi",
      "url": "https://foresight.portals.fi",
      "name": "foresight.portals.fi",
      "@type": "Organization"
    },
    "identifier": "foresight-portals-fi-v1-simulate-batch",
    "description": "Foresight \u00b7 Simulate Batch \u2014 x402-protected tools API. Pay $0.0050 per call on base. Indexed by x402all.",
    "potentialAction": {
      "@type": "BuyAction",
      "target": "https://axon402.com/test-buy?resource=foresight-portals-fi-v1-simulate-batch",
      "description": "Test-buy this endpoint on AXON"
    },
    "applicationCategory": "tools"
  },
  "axon_deep_link": "https://axon402.com/test-buy?resource=foresight-portals-fi-v1-simulate-batch",
  "callability": {
    "status": "unknown",
    "schema_callability": 0.186,
    "source": "provider_well_known",
    "source_confidence": 0.95,
    "match_confidence": 0.4,
    "schema_confidence": 0.0,
    "validated_at": "2026-05-10T23:55:18.759699+00:00",
    "warnings": []
  },
  "contract": {
    "route_template": "https://foresight.portals.fi/v1/simulate/batch",
    "examples": [],
    "schema_presence": {
      "path_schema": "unknown",
      "query_schema": "unknown",
      "header_schema": "unknown",
      "request_body_schema": "unknown",
      "response_schema": "unknown"
    },
    "contract_hash": "2784616d30671661bee6cf71b3ab1a5f40a1b9586d773332ae69e6ccc2e7de76"
  }
}