Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions docs/fdc/guides/_available_testnet.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
:::info

The `Web2Json` attestation type is currently only available on the Flare Testnet Coston2 .

:::
4 changes: 4 additions & 0 deletions docs/fdc/guides/foundry/web-2-json-for-custom-api.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,15 @@ keywords: [ethereum, flare-data-connector, evm, flare-network]
sidebar_position: 12
---

import AvailableTestnet from "../_available_testnet.mdx";

The [Web2Json guide](/fdc/guides/foundry/web-2-json) demonstrates how the Flare Data Connector can be used to fetch Web2 and store it on the chain.
The code for this and other examples is available within the [Flare Hardhat starter](https://github.com/flare-foundation/flare-foundry-starter) repository.
In this guide, we will see how the `Web2Json` example script within the Flare Hardhat starter can be modified to work with custom data and custom contracts.
That way, the example code can serve as the base building block for a custom project.

<AvailableTestnet />

## Necessary modifications

In order to run on custom data, the example code needs to be modified in four places only.
Expand Down
4 changes: 4 additions & 0 deletions docs/fdc/guides/foundry/web-2-json.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,13 @@ keywords: [ethereum, flare-data-connector, evm, flare-network]
sidebar_position: 8
---

import AvailableTestnet from "../_available_testnet.mdx";

The `Web2Json` attestation type enables data collection from an arbitrary Web2 source.
You can learn more about it in the official [specification repo](/fdc/attestation-types/web-2-json).

<AvailableTestnet />

We will now demonstrate how the FDC protocol can be used to collect the data of a given [Star Wars API](https://swapi.dev/) request.
It will be a `GET` request to the URL `https://swapi.info/api/peaople/3`.
The same procedure works for all public APIs.
Expand Down
4 changes: 4 additions & 0 deletions docs/fdc/guides/hardhat/web-2-json-for-custom-api.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,15 @@ keywords: [ethereum, flare-data-connector, evm, flare-network]
sidebar_position: 12
---

import AvailableTestnet from "../_available_testnet.mdx";

The [Web2Json guide](/fdc/guides/hardhat/web-2-json) demonstrates how the Flare Data Connector can be used to fetch Web2 and store it on the chain.
The code for this and other examples is available within the [Flare Hardhat starter](https://github.com/flare-foundation/flare-hardhat-starter) repository.
In this guide, we will see how the `Web2Json` example script within the Flare Hardhat starter can be modified to work with custom data and custom contracts.
That way, the example code can serve as the base building block for a custom project.

<AvailableTestnet />

## Necessary modifications

In order to run on custom data, the example code needs to be modified in four places only.
Expand Down
4 changes: 4 additions & 0 deletions docs/fdc/guides/hardhat/web-2-json.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,13 @@ sidebar_position: 8
unlisted: false
---

import AvailableTestnet from "../_available_testnet.mdx";

The `Web2Json` attestation type enables data collection from an arbitrary Web2 source.
You can learn more about it in the official [specification](/fdc/attestation-types/web-2-json).

<AvailableTestnet />

We will now demonstrate how the FDC protocol can be used to collect the data of a given [Star Wars API](https://swapi.dev/) request.
The request we will be making is `https://swapi.info/api/people/3`.
The same procedure works for all public APIs.
Expand Down