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/src/openapi-v1.yaml
+16-9Lines changed: 16 additions & 9 deletions
Original file line number
Diff line number
Diff line change
@@ -554,14 +554,16 @@ paths:
554
554
tags:
555
555
- staking
556
556
summary: Get payout information for a _Stash_ account.
557
-
description: Returns payout information for the last specified eras. If
558
-
specifying both the depth and era query params, this endpoint will
559
-
return information for (era - depth) through era. (i.e. if depth=5 and
560
-
era=20 information will be returned for eras 16 through 20). N.B. You
561
-
cannot query eras less then `current_era - HISTORY_DEPTH`. N.B. The
562
-
`nominator*`fields correspond to the address being queried, even if it
563
-
is a validator's _Stash_ address. This is because a validator is technically
564
-
nominating itself.
557
+
description: |
558
+
Returns payout information for the last specified eras. If specifying both the depth and era query params, this endpoint will return information for (era - depth) through era. (i.e. if depth=5 and era=20 information will be returned for eras 16 through 20).
559
+
560
+
**Asset Hub Migration Support:**
561
+
For Asset Hub chains that have migrated staking from the relay chain, this endpoint automatically handles era query routing:
562
+
- **Pre-migration eras**: Queries historical data from the relay chain
563
+
- **Post-migration eras**: Queries current data from Asset Hub
564
+
- **Cross-migration queries**: Automatically splits the era range and combines results from both chains
565
+
566
+
**Note:** The `nominator*` fields correspond to the address being queried, even if it is a validator's _Stash_ address. This is because a validator is technically nominating itself.
description: Returns a single object when using standard parameters. Returns an array when using 'useRcBlock' parameter (array contains one object per Asset Hub block found, or empty array if none found).
629
+
description: |
630
+
**Standard Mode**: Returns a single object when using standard parameters (without useRcBlock).
631
+
632
+
**Relay Chain Block Mode**: Returns an array when using 'useRcBlock' parameter (array contains one object per Asset Hub block found, or empty array if none found).
633
+
634
+
**Asset Hub Migration**: For both modes, when querying eras that span the Asset Hub migration boundary, the endpoint automatically fetches and combines data from both relay chain (pre-migration eras) and Asset Hub (post-migration eras). The migration handling is transparent to the user - you get complete payout information regardless of which chain originally held the data.
628
635
"400":
629
636
description: invalid blockId supplied for at query param, or invalid parameter combination
0 commit comments