You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/fassets/developer-guides/fassets-list-agents.mdx
+4-3Lines changed: 4 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -40,6 +40,7 @@ And return two values:
40
40
41
41
:::tip Index Parameters
42
42
All of these functions use array-like slicing:
43
+
43
44
-`start`: Inclusive start index (0-based).
44
45
-`end`: Exclusive end index.
45
46
@@ -62,8 +63,8 @@ The script follows these steps:
62
63
1.**Get Asset Manager Contract**: Retrieve the FAssets FXRP Asset Manager contract instance using the helper function `getAssetManagerFXRP()` from the Flare periphery contracts package.
63
64
64
65
2.**Define Chunk Size**: Set `chunkSize` to `3`, determining how many agents to fetch per request.
65
-
Using smaller chunks helps avoid RPC timeout issues when dealing with many agents.
66
-
You can adjust this value based on your network conditions and RPC provider limits.
66
+
Using smaller chunks helps avoid RPC timeout issues when dealing with many agents.
67
+
You can adjust this value based on your network conditions and RPC provider limits.
67
68
68
69
3.**Fetch First Chunk**: Call `getAvailableAgentsList(0, chunkSize)` which:
69
70
- Returns the first three agents (indices 0, 1, 2).
@@ -104,4 +105,4 @@ To continue your FAssets development journey, you can:
104
105
- Learn how to [mint FXRP](/fassets/developer-guides/fassets-mint)
105
106
- Understand how to [redeem FXRP](/fassets/developer-guides/fassets-redeem)
106
107
- Explore [FAssets system settings](/fassets/operational-parameters)
0 commit comments