Skip to content

Commit a54438e

Browse files
Automated scrape: 2025-11-15 00:20:46
1 parent 78689dd commit a54438e

File tree

36 files changed

+10261
-3206
lines changed

36 files changed

+10261
-3206
lines changed

merged_docs/all_merged.md

Lines changed: 3600 additions & 1244 deletions
Large diffs are not rendered by default.

merged_docs/essentials_merged.md

Lines changed: 3599 additions & 1243 deletions
Large diffs are not rendered by default.

scraped_docs/cadence_lang_org_docs/docs_language.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Source: https://cadence-lang.org/docs/language
1+
# Source: https://cadence-lang.org/docs/language/
22

33
The Cadence Programming Language | Cadence
44

scraped_docs/developers_flow_com/blockchain_development_tutorials_cadence_cadence_advantages_native_data_availibility_with_cadence_scripts.md

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,6 @@ On this page
4646

4747
# Native Data Availability With Cadence Scripts
4848

49-
## Overview[](#overview "Direct link to Overview")
50-
5149
In Solidity, you can only retrieve data from **view** functions that the contract author anticipated and included in the original contract. If the exact query you want is not exposed, teams typically rely on a *data availability service* such as The Graph, Covalent, Alchemy Enhanced APIs, Reservoir, or NFTScan to compute and serve that view.
5250

5351
In Cadence, **scripts** are general-purpose read programs. They can traverse public account storage, read public capabilities, and compose types from multiple contracts to answer new questions without modifying those contracts. You are not limited to the pre-written surface area of a single contract's views.
@@ -81,7 +79,7 @@ tip
8179

8280
If you are new to [*Hybrid Custody*](/blockchain-development-tutorials/cadence/account-management), the high-level idea is that in Cadence, a parent account can manage one or more child accounts through managed capabilities. This guide uses those capabilities to enumerate NFT collections the parent can control.
8381

84-
## Getting Started[](#getting-started "Direct link to Getting Started")
82+
## Get started[](#get-started "Direct link to Get started")
8583

8684
Create a new Flow project and generate a script file:
8785

@@ -119,7 +117,7 @@ We will **revise one script file** in four passes, and run it after each step. T
119117

120118
---
121119

122-
## Querying the account to find child accounts[](#querying-the-account-to-find-child-accounts "Direct link to Querying the account to find child accounts")
120+
## Query the account to find child accounts[](#query-the-account-to-find-child-accounts "Direct link to Query the account to find child accounts")
123121

124122
To start, write a script that borrows the parent's *Hybrid Custody* manager and returns the child addresses it controls. This verifies that imports resolve and that the parent account is configured as expected.
125123

@@ -920,7 +918,7 @@ This demonstrates how you can easily modify Cadence scripts to answer different
920918
* If you see empty results in Step 4, confirm `isTopShot` matches the identifiers you observed in Step 3.
921919
* If you are not using *Hybrid Custody*, you can adapt Steps 2-4 to use `getAccount(child)` and scan **publicly exposed** `{NonFungibleToken.CollectionPublic}` capabilities, but you will not be able to assert provider access.
922920

923-
## How This Compares to Solidity[](#how-this-compares-to-solidity "Direct link to How This Compares to Solidity")
921+
## How This compares to Solidity[](#how-this-compares-to-solidity "Direct link to How This compares to Solidity")
924922

925923
* **Solidity views are fixed**: You can only retrieve what the contract author exposed via `view` or `pure` functions. If you need a different aggregation or cross-contract traversal, you typically rely on a *data availability service* or write a new contract to expose that view.
926924
* **Cadence scripts are flexible**: You compose types across modules, traverse account storage, and read public capabilities at query time. You do not need to redeploy contracts to answer new questions.
@@ -950,7 +948,7 @@ This approach gives you the freedom to build applications that can access any on
950948

951949
[Edit this page](https://github.com/onflow/docs/tree/main/docs/blockchain-development-tutorials/cadence/cadence-advantages/native-data-availibility-with-cadence-scripts.md)
952950

953-
Last updated on **Oct 27, 2025** by **cshannon1218**
951+
Last updated on **Oct 30, 2025** by **cshannon1218**
954952

955953
[Previous
956954

@@ -964,7 +962,7 @@ Upgrading Cadence Contracts](/blockchain-development-tutorials/cadence/cadence-a
964962

965963
Copy as Markdown
966964

967-
* [Overview](#overview)* [Objectives](#objectives)* [Prerequisites](#prerequisites)* [Getting Started](#getting-started)* [Querying the account to find child accounts](#querying-the-account-to-find-child-accounts)* [Listing the storage paths found in each child account](#listing-the-storage-paths-found-in-each-child-account)* [Detecting NFT collections the parent can control](#detecting-nft-collections-the-parent-can-control)* [Filtering NFT collection to find and return Top Shots](#filtering-nft-collection-to-find-and-return-top-shots)* [Extending the script to include AllDay NFTs](#extending-the-script-to-include-allday-nfts)* [Troubleshooting](#troubleshooting)* [How This Compares to Solidity](#how-this-compares-to-solidity)* [Conclusion](#conclusion)
965+
* [Objectives](#objectives)* [Prerequisites](#prerequisites)* [Get started](#get-started)* [Query the account to find child accounts](#query-the-account-to-find-child-accounts)* [Listing the storage paths found in each child account](#listing-the-storage-paths-found-in-each-child-account)* [Detecting NFT collections the parent can control](#detecting-nft-collections-the-parent-can-control)* [Filtering NFT collection to find and return Top Shots](#filtering-nft-collection-to-find-and-return-top-shots)* [Extending the script to include AllDay NFTs](#extending-the-script-to-include-allday-nfts)* [Troubleshooting](#troubleshooting)* [How This compares to Solidity](#how-this-compares-to-solidity)* [Conclusion](#conclusion)
968966

969967
Flow
970968

0 commit comments

Comments
 (0)