{
  "x402Version": 2,
  "id": 25699,
  "slug": "25699",
  "resource": "https://api.onesource.io/api/chain/network-info",
  "description": "EVM network info - chain ID, block height, gas price, chain head age, and chain characteristics in one batched RPC call (eth_chainId + eth_blockNumber + eth_gasPrice + latest block header)",
  "type": "http",
  "resourceType": "Utilities",
  "accepts": [
    {
      "scheme": "exact",
      "network": "eip155:8453",
      "payTo": "0x52E29e0d2Aa49bfBfC548C0A9F2196F4aa51f3ea",
      "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
      "amount": "1000",
      "amountUsd": 0.001,
      "maxTimeoutSeconds": 3600
    },
    {
      "scheme": "batch-settlement",
      "network": "eip155:8453",
      "payTo": "0x52E29e0d2Aa49bfBfC548C0A9F2196F4aa51f3ea",
      "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
      "amount": "1000",
      "amountUsd": 0.001,
      "maxTimeoutSeconds": 3600
    }
  ],
  "outputSchema": {
    "properties": {
      "example": {
        "properties": {
          "data": {
            "description": "Endpoint-specific response payload",
            "properties": {
              "block_number": {
                "type": "string"
              },
              "chain": {
                "properties": {
                  "avg_block_time_ms": {
                    "type": "integer"
                  },
                  "chain_id": {
                    "type": "integer"
                  },
                  "ens": {
                    "type": "boolean"
                  },
                  "finality": {
                    "type": "string"
                  },
                  "indexed": {
                    "type": "boolean"
                  },
                  "layer": {
                    "type": "integer"
                  },
                  "mempool": {
                    "type": "boolean"
                  },
                  "native_currency": {
                    "type": "string"
                  },
                  "stack": {
                    "type": "string"
                  }
                },
                "type": "object"
              },
              "chain_id": {
                "type": "string"
              },
              "gas_price": {
                "type": "string"
              },
              "head_age_seconds": {
                "type": "integer"
              },
              "head_timestamp": {
                "type": "integer"
              },
              "net_version": {
                "type": "string"
              },
              "network": {
                "type": "string"
              },
              "stale": {
                "type": "boolean"
              },
              "stale_after_seconds": {
                "type": "integer"
              }
            },
            "type": "object"
          },
          "error": {
            "properties": {
              "code": {
                "type": "integer"
              },
              "message": {
                "type": "string"
              }
            },
            "type": [
              "object",
              "null"
            ]
          },
          "meta": {
            "properties": {
              "cost_usdc": {
                "type": "string"
              },
              "endpoint": {
                "type": "string"
              },
              "payment_chain": {
                "type": "string"
              },
              "payment_token": {
                "type": "string"
              },
              "request_id": {
                "type": "string"
              }
            },
            "required": [
              "endpoint",
              "request_id"
            ],
            "type": "object"
          }
        },
        "required": [
          "data",
          "meta"
        ],
        "type": "object"
      },
      "type": {
        "type": "string"
      }
    },
    "required": [
      "type"
    ],
    "type": "object"
  },
  "extensions": {
    "bazaar": {
      "info": {
        "input": {
          "method": "GET",
          "queryParams": {
            "network": "ethereum"
          },
          "type": "http"
        },
        "output": {
          "example": {
            "data": {
              "block_number": "0x133da1e",
              "chain": {
                "avg_block_time_ms": 12000,
                "chain_id": 1,
                "ens": true,
                "finality": "beacon",
                "indexed": true,
                "layer": 1,
                "mempool": true,
                "native_currency": "ETH",
                "stack": "ethereum"
              },
              "chain_id": "0x1",
              "gas_price": "0x4a817c800",
              "head_age_seconds": 9,
              "head_timestamp": 1754240345,
              "net_version": "1",
              "network": "ethereum",
              "stale": false,
              "stale_after_seconds": 1200
            },
            "meta": {
              "cost_usdc": "0.001",
              "endpoint": "/api/chain/network-info",
              "payment_chain": "base",
              "payment_token": "USDC",
              "request_id": "00000000abcdef01"
            }
          },
          "type": "json"
        }
      },
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "input": {
            "additionalProperties": false,
            "properties": {
              "method": {
                "enum": [
                  "GET",
                  "HEAD",
                  "DELETE"
                ],
                "type": "string"
              },
              "queryParams": {
                "properties": {
                  "network": {
                    "default": "ethereum",
                    "enum": [
                      "ethereum",
                      "sepolia",
                      "robinhood"
                    ],
                    "type": "string"
                  }
                },
                "type": "object"
              },
              "type": {
                "const": "http",
                "type": "string"
              }
            },
            "required": [
              "type",
              "method"
            ],
            "type": "object"
          },
          "output": {
            "properties": {
              "example": {
                "properties": {
                  "data": {
                    "description": "Endpoint-specific response payload",
                    "properties": {
                      "block_number": {
                        "type": "string"
                      },
                      "chain": {
                        "properties": {
                          "avg_block_time_ms": {
                            "type": "integer"
                          },
                          "chain_id": {
                            "type": "integer"
                          },
                          "ens": {
                            "type": "boolean"
                          },
                          "finality": {
                            "type": "string"
                          },
                          "indexed": {
                            "type": "boolean"
                          },
                          "layer": {
                            "type": "integer"
                          },
                          "mempool": {
                            "type": "boolean"
                          },
                          "native_currency": {
                            "type": "string"
                          },
                          "stack": {
                            "type": "string"
                          }
                        },
                        "type": "object"
                      },
                      "chain_id": {
                        "type": "string"
                      },
                      "gas_price": {
                        "type": "string"
                      },
                      "head_age_seconds": {
                        "type": "integer"
                      },
                      "head_timestamp": {
                        "type": "integer"
                      },
                      "net_version": {
                        "type": "string"
                      },
                      "network": {
                        "type": "string"
                      },
                      "stale": {
                        "type": "boolean"
                      },
                      "stale_after_seconds": {
                        "type": "integer"
                      }
                    },
                    "type": "object"
                  },
                  "error": {
                    "properties": {
                      "code": {
                        "type": "integer"
                      },
                      "message": {
                        "type": "string"
                      }
                    },
                    "type": [
                      "object",
                      "null"
                    ]
                  },
                  "meta": {
                    "properties": {
                      "cost_usdc": {
                        "type": "string"
                      },
                      "endpoint": {
                        "type": "string"
                      },
                      "payment_chain": {
                        "type": "string"
                      },
                      "payment_token": {
                        "type": "string"
                      },
                      "request_id": {
                        "type": "string"
                      }
                    },
                    "required": [
                      "endpoint",
                      "request_id"
                    ],
                    "type": "object"
                  }
                },
                "required": [
                  "data",
                  "meta"
                ],
                "type": "object"
              },
              "type": {
                "type": "string"
              }
            },
            "required": [
              "type"
            ],
            "type": "object"
          }
        },
        "required": [
          "input"
        ],
        "type": "object"
      }
    }
  },
  "tags": [
    "bazaar"
  ],
  "sourceHost": "api.onesource.io",
  "lastUpdated": "2026-10-11T16:02:41.88Z",
  "quality": {
    "calls30d": 343,
    "uniquePayers30d": 324,
    "lastCalledAt": "2026-10-11T16:02:41.678Z"
  },
  "metadata": {
    "extensions": {
      "bazaar": {
        "info": {
          "input": {
            "method": "GET",
            "queryParams": {
              "network": "ethereum"
            },
            "type": "http"
          },
          "output": {
            "example": {
              "data": {
                "block_number": "0x133da1e",
                "chain": {
                  "avg_block_time_ms": 12000,
                  "chain_id": 1,
                  "ens": true,
                  "finality": "beacon",
                  "indexed": true,
                  "layer": 1,
                  "mempool": true,
                  "native_currency": "ETH",
                  "stack": "ethereum"
                },
                "chain_id": "0x1",
                "gas_price": "0x4a817c800",
                "head_age_seconds": 9,
                "head_timestamp": 1754240345,
                "net_version": "1",
                "network": "ethereum",
                "stale": false,
                "stale_after_seconds": 1200
              },
              "meta": {
                "cost_usdc": "0.001",
                "endpoint": "/api/chain/network-info",
                "payment_chain": "base",
                "payment_token": "USDC",
                "request_id": "00000000abcdef01"
              }
            },
            "type": "json"
          }
        },
        "schema": {
          "$schema": "https://json-schema.org/draft/2020-12/schema",
          "properties": {
            "input": {
              "additionalProperties": false,
              "properties": {
                "method": {
                  "enum": [
                    "GET",
                    "HEAD",
                    "DELETE"
                  ],
                  "type": "string"
                },
                "queryParams": {
                  "properties": {
                    "network": {
                      "default": "ethereum",
                      "enum": [
                        "ethereum",
                        "sepolia",
                        "robinhood"
                      ],
                      "type": "string"
                    }
                  },
                  "type": "object"
                },
                "type": {
                  "const": "http",
                  "type": "string"
                }
              },
              "required": [
                "type",
                "method"
              ],
              "type": "object"
            },
            "output": {
              "properties": {
                "example": {
                  "properties": {
                    "data": {
                      "description": "Endpoint-specific response payload",
                      "properties": {
                        "block_number": {
                          "type": "string"
                        },
                        "chain": {
                          "properties": {
                            "avg_block_time_ms": {
                              "type": "integer"
                            },
                            "chain_id": {
                              "type": "integer"
                            },
                            "ens": {
                              "type": "boolean"
                            },
                            "finality": {
                              "type": "string"
                            },
                            "indexed": {
                              "type": "boolean"
                            },
                            "layer": {
                              "type": "integer"
                            },
                            "mempool": {
                              "type": "boolean"
                            },
                            "native_currency": {
                              "type": "string"
                            },
                            "stack": {
                              "type": "string"
                            }
                          },
                          "type": "object"
                        },
                        "chain_id": {
                          "type": "string"
                        },
                        "gas_price": {
                          "type": "string"
                        },
                        "head_age_seconds": {
                          "type": "integer"
                        },
                        "head_timestamp": {
                          "type": "integer"
                        },
                        "net_version": {
                          "type": "string"
                        },
                        "network": {
                          "type": "string"
                        },
                        "stale": {
                          "type": "boolean"
                        },
                        "stale_after_seconds": {
                          "type": "integer"
                        }
                      },
                      "type": "object"
                    },
                    "error": {
                      "properties": {
                        "code": {
                          "type": "integer"
                        },
                        "message": {
                          "type": "string"
                        }
                      },
                      "type": [
                        "object",
                        "null"
                      ]
                    },
                    "meta": {
                      "properties": {
                        "cost_usdc": {
                          "type": "string"
                        },
                        "endpoint": {
                          "type": "string"
                        },
                        "payment_chain": {
                          "type": "string"
                        },
                        "payment_token": {
                          "type": "string"
                        },
                        "request_id": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "endpoint",
                        "request_id"
                      ],
                      "type": "object"
                    }
                  },
                  "required": [
                    "data",
                    "meta"
                  ],
                  "type": "object"
                },
                "type": {
                  "type": "string"
                }
              },
              "required": [
                "type"
              ],
              "type": "object"
            }
          },
          "required": [
            "input"
          ],
          "type": "object"
        }
      }
    }
  },
  "liveness": {
    "reliability": null
  },
  "verified": false,
  "featured": false,
  "provider": {
    "host": "api.onesource.io",
    "manifest_name": "api.onesource.io",
    "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": {
      "data": {
        "block_number": "string",
        "chain": {
          "avg_block_time_ms": 0,
          "chain_id": 0,
          "ens": true,
          "finality": "string",
          "indexed": true,
          "layer": 0,
          "mempool": true,
          "native_currency": "string",
          "stack": "string"
        },
        "chain_id": "string",
        "gas_price": "string",
        "head_age_seconds": 0,
        "head_timestamp": 0,
        "net_version": "string",
        "network": "string",
        "stale": true,
        "stale_after_seconds": 0
      },
      "error": {
        "code": 0,
        "message": "string"
      },
      "meta": {
        "cost_usdc": "string",
        "endpoint": "string",
        "payment_chain": "string",
        "payment_token": "string",
        "request_id": "string"
      }
    },
    "type": "string"
  }
}