@solana/rpc-api 8.6.0 → 8.7.0-canary-20261102161207

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -25,6 +25,10 @@ export type GetLeaderScheduleApi = {
25
25
  * @returns A dictionary having a single key representing the specified validator identity, and
26
26
  * its corresponding leader slot indices as values relative to the first slot in the requested
27
27
  * epoch, or `null` if there is no epoch that corresponds to the given slot.
28
+ * @throws A `SolanaError` with code
29
+ * `SOLANA_ERROR__JSON_RPC__SERVER_ERROR_LEADER_SCHEDULE_IDENTITY_NOT_FOUND` when the
30
+ * identity is not in the leader schedule, on servers running Agave v4.4.0 or later. Older
31
+ * servers respond with an empty object instead.
28
32
  * @see https://solana.com/docs/rpc/http/getleaderschedule
29
33
  */
30
34
  getLeaderSchedule<TIdentity extends Address>(slot: Slot, config: GetLeaderScheduleApiConfigBase & Readonly<{
@@ -51,6 +55,10 @@ export type GetLeaderScheduleApi = {
51
55
  * @returns A dictionary having a single key representing the specified validator identity, and
52
56
  * its corresponding leader slot indices as values relative to the first slot in the current
53
57
  * epoch.
58
+ * @throws A `SolanaError` with code
59
+ * `SOLANA_ERROR__JSON_RPC__SERVER_ERROR_LEADER_SCHEDULE_IDENTITY_NOT_FOUND` when the
60
+ * identity is not in the leader schedule, on servers running Agave v4.4.0 or later. Older
61
+ * servers respond with an empty object instead.
54
62
  * @see https://solana.com/docs/rpc/http/getleaderschedule
55
63
  */
56
64
  getLeaderSchedule<TIdentity extends Address>(slot: null, config: GetLeaderScheduleApiConfigBase & Readonly<{
@@ -1 +1 @@
1
- {"version":3,"file":"getLeaderSchedule.d.ts","sourceRoot":"","sources":["../../src/getLeaderSchedule.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AACjD,OAAO,KAAK,EAAE,UAAU,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAC;AAE1D,KAAK,8BAA8B,GAAG,QAAQ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AAM,mBAAmB,CAAC;AAE1D,KAAK,8BAA8B,GAAG,QAAQ,CAAC;IAC3C;;;;;;;OAOG;IACH,UAAU,CAAC,EAAE,UAAU,CAAC;CAC3B,CAAC,CAAC;AAgBH,KAAK,6CAA6C,GAAG,MAAM,CAAC,OAAO,EAAE,IAAI,EAAE,CAAC,CAAC;AAE7E,KAAK,8CAA8C,CAAC,SAAS,SAAS,MAAM,IAAI,QAAQ,CAAC;KACpF,QAAQ,IAAI,SAAS,CAAC,CAAC,EAAE,IAAI,EAAE;CACnC,CAAC,CAAC;AAEH,MAAM,MAAM,oBAAoB,GAAG;IAC/B;;;;;;;;;;;;;;OAcG;IACH,iBAAiB,CAAC,SAAS,SAAS,OAAO,EACvC,IAAI,EAAE,IAAI,EACV,MAAM,EAAE,8BAA8B,GAClC,QAAQ,CAAC;QACL,+EAA+E;QAC/E,QAAQ,EAAE,OAAO,CAAC;KACrB,CAAC,GACP,8CAA8C,CAAC,SAAS,CAAC,GAAG,IAAI,CAAC;IACpE;;;;;;;;;;OAUG;IACH,iBAAiB,CACb,IAAI,EAAE,IAAI,EACV,MAAM,CAAC,EAAE,8BAA8B,GACxC,6CAA6C,GAAG,IAAI,CAAC;IACxD;;;;;;;;;;;;;OAaG;IACH,iBAAiB,CAAC,SAAS,SAAS,OAAO,EACvC,IAAI,EAAE,IAAI,EACV,MAAM,EAAE,8BAA8B,GAClC,QAAQ,CAAC;QACL,+EAA+E;QAC/E,QAAQ,EAAE,OAAO,CAAC;KACrB,CAAC,GACP,8CAA8C,CAAC,SAAS,CAAC,CAAC;IAC7D;;;;;;;;;OASG;IACH,iBAAiB,CACb,IAAI,CAAC,EAAE,IAAI,EACX,MAAM,CAAC,EAAE,8BAA8B,GACxC,6CAA6C,CAAC;CACpD,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@solana/rpc-api",
3
- "version": "8.6.0",
3
+ "version": "8.7.0-canary-20261102161207",
4
4
  "description": "Defines all default Solana RPC methods as types",
5
5
  "homepage": "https://www.solanakit.com/api#solanarpc-api",
6
6
  "exports": {
@@ -56,17 +56,17 @@
56
56
  "maintained node versions"
57
57
  ],
58
58
  "dependencies": {
59
- "@solana/addresses": "8.6.0",
60
- "@solana/codecs-strings": "8.6.0",
61
- "@solana/errors": "8.6.0",
62
- "@solana/keys": "8.6.0",
63
- "@solana/codecs-core": "8.6.0",
64
- "@solana/rpc-spec": "8.6.0",
65
- "@solana/rpc-transformers": "8.6.0",
66
- "@solana/rpc-parsed-types": "8.6.0",
67
- "@solana/rpc-types": "8.6.0",
68
- "@solana/transaction-messages": "8.6.0",
69
- "@solana/transactions": "8.6.0"
59
+ "@solana/addresses": "8.7.0-canary-20261102161207",
60
+ "@solana/codecs-core": "8.7.0-canary-20261102161207",
61
+ "@solana/codecs-strings": "8.7.0-canary-20261102161207",
62
+ "@solana/errors": "8.7.0-canary-20261102161207",
63
+ "@solana/keys": "8.7.0-canary-20261102161207",
64
+ "@solana/rpc-parsed-types": "8.7.0-canary-20261102161207",
65
+ "@solana/rpc-spec": "8.7.0-canary-20261102161207",
66
+ "@solana/rpc-transformers": "8.7.0-canary-20261102161207",
67
+ "@solana/rpc-types": "8.7.0-canary-20261102161207",
68
+ "@solana/transaction-messages": "8.7.0-canary-20261102161207",
69
+ "@solana/transactions": "8.7.0-canary-20261102161207"
70
70
  },
71
71
  "peerDependencies": {
72
72
  "typescript": ">=5.4.0"
@@ -43,6 +43,10 @@ export type GetLeaderScheduleApi = {
43
43
  * @returns A dictionary having a single key representing the specified validator identity, and
44
44
  * its corresponding leader slot indices as values relative to the first slot in the requested
45
45
  * epoch, or `null` if there is no epoch that corresponds to the given slot.
46
+ * @throws A `SolanaError` with code
47
+ * `SOLANA_ERROR__JSON_RPC__SERVER_ERROR_LEADER_SCHEDULE_IDENTITY_NOT_FOUND` when the
48
+ * identity is not in the leader schedule, on servers running Agave v4.4.0 or later. Older
49
+ * servers respond with an empty object instead.
46
50
  * @see https://solana.com/docs/rpc/http/getleaderschedule
47
51
  */
48
52
  getLeaderSchedule<TIdentity extends Address>(
@@ -76,6 +80,10 @@ export type GetLeaderScheduleApi = {
76
80
  * @returns A dictionary having a single key representing the specified validator identity, and
77
81
  * its corresponding leader slot indices as values relative to the first slot in the current
78
82
  * epoch.
83
+ * @throws A `SolanaError` with code
84
+ * `SOLANA_ERROR__JSON_RPC__SERVER_ERROR_LEADER_SCHEDULE_IDENTITY_NOT_FOUND` when the
85
+ * identity is not in the leader schedule, on servers running Agave v4.4.0 or later. Older
86
+ * servers respond with an empty object instead.
79
87
  * @see https://solana.com/docs/rpc/http/getleaderschedule
80
88
  */
81
89
  getLeaderSchedule<TIdentity extends Address>(