Skip to content

Commit 8790a1b

Browse files
authored
Update near accounts docs (#154)
1 parent aa4ee75 commit 8790a1b

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

pages/en/cookbook/near.mdx

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,19 @@ dataSources:
7575
- NEAR subgraphs introduce a new `kind` of data source (`near`)
7676
- The `network` should correspond to a network on the hosting Graph Node. On the Hosted Service, NEAR's mainnet is `near-mainnet`, and NEAR's testnet is `near-testnet`
7777
- NEAR data sources introduce an optional `source.account` field, which is a human-readable ID corresponding to a [NEAR account](https://docs.near.org/docs/concepts/account). This can be an account or a sub-account.
78+
- NEAR data sources introduce an optional `source.accounts` field, which contains optional suffixes and prefixes.
79+
At least prefix or suffix must be specified, they will match the any account starting or ending with the list of values respectively.
80+
The example below would match: `[app|good].*[morning.near|morning.testnet]`. If only a list of prefixes or suffixes is necessary
81+
the other field can be omitted.
82+
```yaml
83+
accounts:
84+
prefixes:
85+
- app
86+
- good
87+
suffixes:
88+
- morning.near
89+
- morning.testnet
90+
```
7891

7992
NEAR data sources support two types of handlers:
8093

0 commit comments

Comments
 (0)