@solana/rpc-api 2.0.0-experimental.12ae1c6
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.
- package/LICENSE +20 -0
- package/README.md +17 -0
- package/dist/index.browser.cjs +199 -0
- package/dist/index.browser.cjs.map +1 -0
- package/dist/index.browser.js +197 -0
- package/dist/index.browser.js.map +1 -0
- package/dist/index.native.js +197 -0
- package/dist/index.native.js.map +1 -0
- package/dist/index.node.cjs +199 -0
- package/dist/index.node.cjs.map +1 -0
- package/dist/index.node.js +197 -0
- package/dist/index.node.js.map +1 -0
- package/dist/types/common-transactions.d.ts +247 -0
- package/dist/types/common-transactions.d.ts.map +1 -0
- package/dist/types/common.d.ts +69 -0
- package/dist/types/common.d.ts.map +1 -0
- package/dist/types/getAccountInfo.d.ts +35 -0
- package/dist/types/getAccountInfo.d.ts.map +1 -0
- package/dist/types/getBalance.d.ts +15 -0
- package/dist/types/getBalance.d.ts.map +1 -0
- package/dist/types/getBlock.d.ts +174 -0
- package/dist/types/getBlock.d.ts.map +1 -0
- package/dist/types/getBlockCommitment.d.ts +15 -0
- package/dist/types/getBlockCommitment.d.ts.map +1 -0
- package/dist/types/getBlockHeight.d.ts +14 -0
- package/dist/types/getBlockHeight.d.ts.map +1 -0
- package/dist/types/getBlockProduction.d.ts +39 -0
- package/dist/types/getBlockProduction.d.ts.map +1 -0
- package/dist/types/getBlockTime.d.ts +14 -0
- package/dist/types/getBlockTime.d.ts.map +1 -0
- package/dist/types/getBlocks.d.ts +13 -0
- package/dist/types/getBlocks.d.ts.map +1 -0
- package/dist/types/getBlocksWithLimit.d.ts +14 -0
- package/dist/types/getBlocksWithLimit.d.ts.map +1 -0
- package/dist/types/getClusterNodes.d.ts +34 -0
- package/dist/types/getClusterNodes.d.ts.map +1 -0
- package/dist/types/getEpochInfo.d.ts +27 -0
- package/dist/types/getEpochInfo.d.ts.map +1 -0
- package/dist/types/getEpochSchedule.d.ts +23 -0
- package/dist/types/getEpochSchedule.d.ts.map +1 -0
- package/dist/types/getFeeForMessage.d.ts +16 -0
- package/dist/types/getFeeForMessage.d.ts.map +1 -0
- package/dist/types/getFirstAvailableBlock.d.ts +12 -0
- package/dist/types/getFirstAvailableBlock.d.ts.map +1 -0
- package/dist/types/getGenesisHash.d.ts +11 -0
- package/dist/types/getGenesisHash.d.ts.map +1 -0
- package/dist/types/getHealth.d.ts +10 -0
- package/dist/types/getHealth.d.ts.map +1 -0
- package/dist/types/getHighestSnapshotSlot.d.ts +18 -0
- package/dist/types/getHighestSnapshotSlot.d.ts.map +1 -0
- package/dist/types/getIdentity.d.ts +13 -0
- package/dist/types/getIdentity.d.ts.map +1 -0
- package/dist/types/getInflationGovernor.d.ts +29 -0
- package/dist/types/getInflationGovernor.d.ts.map +1 -0
- package/dist/types/getInflationRate.d.ts +21 -0
- package/dist/types/getInflationRate.d.ts.map +1 -0
- package/dist/types/getInflationReward.d.ts +22 -0
- package/dist/types/getInflationReward.d.ts.map +1 -0
- package/dist/types/getLargestAccounts.d.ts +23 -0
- package/dist/types/getLargestAccounts.d.ts.map +1 -0
- package/dist/types/getLatestBlockhash.d.ts +19 -0
- package/dist/types/getLatestBlockhash.d.ts.map +1 -0
- package/dist/types/getLeaderSchedule.d.ts +51 -0
- package/dist/types/getLeaderSchedule.d.ts.map +1 -0
- package/dist/types/getMaxRetransmitSlot.d.ts +12 -0
- package/dist/types/getMaxRetransmitSlot.d.ts.map +1 -0
- package/dist/types/getMaxShredInsertSlot.d.ts +12 -0
- package/dist/types/getMaxShredInsertSlot.d.ts.map +1 -0
- package/dist/types/getMinimumBalanceForRentExemption.d.ts +13 -0
- package/dist/types/getMinimumBalanceForRentExemption.d.ts.map +1 -0
- package/dist/types/getMultipleAccounts.d.ts +45 -0
- package/dist/types/getMultipleAccounts.d.ts.map +1 -0
- package/dist/types/getProgramAccounts.d.ts +61 -0
- package/dist/types/getProgramAccounts.d.ts.map +1 -0
- package/dist/types/getRecentPerformanceSamples.d.ts +25 -0
- package/dist/types/getRecentPerformanceSamples.d.ts.map +1 -0
- package/dist/types/getRecentPrioritizationFees.d.ts +31 -0
- package/dist/types/getRecentPrioritizationFees.d.ts.map +1 -0
- package/dist/types/getSignatureStatuses.d.ts +58 -0
- package/dist/types/getSignatureStatuses.d.ts.map +1 -0
- package/dist/types/getSignaturesForAddress.d.ts +40 -0
- package/dist/types/getSignaturesForAddress.d.ts.map +1 -0
- package/dist/types/getSlot.d.ts +14 -0
- package/dist/types/getSlot.d.ts.map +1 -0
- package/dist/types/getSlotLeader.d.ts +13 -0
- package/dist/types/getSlotLeader.d.ts.map +1 -0
- package/dist/types/getSlotLeaders.d.ts +17 -0
- package/dist/types/getSlotLeaders.d.ts.map +1 -0
- package/dist/types/getStakeActivation.d.ts +24 -0
- package/dist/types/getStakeActivation.d.ts.map +1 -0
- package/dist/types/getStakeMinimumDelegation.d.ts +13 -0
- package/dist/types/getStakeMinimumDelegation.d.ts.map +1 -0
- package/dist/types/getSupply.d.ts +42 -0
- package/dist/types/getSupply.d.ts.map +1 -0
- package/dist/types/getTokenAccountBalance.d.ts +16 -0
- package/dist/types/getTokenAccountBalance.d.ts.map +1 -0
- package/dist/types/getTokenAccountsByDelegate.d.ts +55 -0
- package/dist/types/getTokenAccountsByDelegate.d.ts.map +1 -0
- package/dist/types/getTokenAccountsByOwner.d.ts +55 -0
- package/dist/types/getTokenAccountsByOwner.d.ts.map +1 -0
- package/dist/types/getTokenLargestAccounts.d.ts +16 -0
- package/dist/types/getTokenLargestAccounts.d.ts.map +1 -0
- package/dist/types/getTokenSupply.d.ts +16 -0
- package/dist/types/getTokenSupply.d.ts.map +1 -0
- package/dist/types/getTransaction.d.ts +166 -0
- package/dist/types/getTransaction.d.ts.map +1 -0
- package/dist/types/getTransactionCount.d.ts +14 -0
- package/dist/types/getTransactionCount.d.ts.map +1 -0
- package/dist/types/getVersion.d.ts +15 -0
- package/dist/types/getVersion.d.ts.map +1 -0
- package/dist/types/getVoteAccounts.d.ts +44 -0
- package/dist/types/getVoteAccounts.d.ts.map +1 -0
- package/dist/types/index.d.ts +64 -0
- package/dist/types/index.d.ts.map +1 -0
- package/dist/types/isBlockhashValid.d.ts +18 -0
- package/dist/types/isBlockhashValid.d.ts.map +1 -0
- package/dist/types/minimumLedgerSlot.d.ts +12 -0
- package/dist/types/minimumLedgerSlot.d.ts.map +1 -0
- package/dist/types/requestAirdrop.d.ts +16 -0
- package/dist/types/requestAirdrop.d.ts.map +1 -0
- package/dist/types/sendTransaction.d.ts +49 -0
- package/dist/types/sendTransaction.d.ts.map +1 -0
- package/dist/types/simulateTransaction.d.ts +105 -0
- package/dist/types/simulateTransaction.d.ts.map +1 -0
- package/package.json +83 -0
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type { Address } from '@solana/addresses';
|
|
2
|
+
import type { RpcApiMethods } from '@solana/rpc-spec';
|
|
3
|
+
import type { Commitment, LamportsUnsafeBeyond2Pow53Minus1, Slot, U64UnsafeBeyond2Pow53Minus1 } from '@solana/rpc-types';
|
|
4
|
+
type GetInflationRewardApiResponse = Readonly<{
|
|
5
|
+
amount: LamportsUnsafeBeyond2Pow53Minus1;
|
|
6
|
+
commission: number;
|
|
7
|
+
effectiveSlot: Slot;
|
|
8
|
+
epoch: U64UnsafeBeyond2Pow53Minus1;
|
|
9
|
+
postBalance: LamportsUnsafeBeyond2Pow53Minus1;
|
|
10
|
+
}>;
|
|
11
|
+
export interface GetInflationRewardApi extends RpcApiMethods {
|
|
12
|
+
/**
|
|
13
|
+
* Returns the current block height of the node
|
|
14
|
+
*/
|
|
15
|
+
getInflationReward(addresses: Address[], config?: Readonly<{
|
|
16
|
+
commitment?: Commitment;
|
|
17
|
+
epoch?: U64UnsafeBeyond2Pow53Minus1;
|
|
18
|
+
minContextSlot?: Slot;
|
|
19
|
+
}>): Promise<readonly (GetInflationRewardApiResponse | null)[]>;
|
|
20
|
+
}
|
|
21
|
+
export {};
|
|
22
|
+
//# sourceMappingURL=getInflationReward.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getInflationReward.d.ts","sourceRoot":"","sources":["../../src/getInflationReward.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AACjD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACtD,OAAO,KAAK,EACR,UAAU,EACV,gCAAgC,EAChC,IAAI,EACJ,2BAA2B,EAC9B,MAAM,mBAAmB,CAAC;AAE3B,KAAK,6BAA6B,GAAG,QAAQ,CAAC;IAE1C,MAAM,EAAE,gCAAgC,CAAC;IAEzC,UAAU,EAAE,MAAM,CAAC;IAEnB,aAAa,EAAE,IAAI,CAAC;IAEpB,KAAK,EAAE,2BAA2B,CAAC;IAEnC,WAAW,EAAE,gCAAgC,CAAC;CACjD,CAAC,CAAC;AAEH,MAAM,WAAW,qBAAsB,SAAQ,aAAa;IACxD;;OAEG;IACH,kBAAkB,CACd,SAAS,EAAE,OAAO,EAAE,EACpB,MAAM,CAAC,EAAE,QAAQ,CAAC;QAEd,UAAU,CAAC,EAAE,UAAU,CAAC;QAGxB,KAAK,CAAC,EAAE,2BAA2B,CAAC;QAEpC,cAAc,CAAC,EAAE,IAAI,CAAC;KACzB,CAAC,GACH,OAAO,CAAC,SAAS,CAAC,6BAA6B,GAAG,IAAI,CAAC,EAAE,CAAC,CAAC;CACjE"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type { Address } from '@solana/addresses';
|
|
2
|
+
import type { RpcApiMethods } from '@solana/rpc-spec';
|
|
3
|
+
import type { Commitment, LamportsUnsafeBeyond2Pow53Minus1, SolanaRpcResponse } from '@solana/rpc-types';
|
|
4
|
+
type GetLargestAccountsResponseItem = Readonly<{
|
|
5
|
+
/** Base-58 encoded address of the account */
|
|
6
|
+
address: Address;
|
|
7
|
+
/** Number of lamports in the account */
|
|
8
|
+
lamports: LamportsUnsafeBeyond2Pow53Minus1;
|
|
9
|
+
}>;
|
|
10
|
+
type GetLargestAccountsApiResponse = SolanaRpcResponse<GetLargestAccountsResponseItem[]>;
|
|
11
|
+
export interface GetLargestAccountsApi extends RpcApiMethods {
|
|
12
|
+
/**
|
|
13
|
+
* Returns the 20 largest accounts, by lamport balance
|
|
14
|
+
* (results may be cached up to two hours)
|
|
15
|
+
*/
|
|
16
|
+
getLargestAccounts(config?: Readonly<{
|
|
17
|
+
commitment?: Commitment;
|
|
18
|
+
/** Filter results by account type */
|
|
19
|
+
filter?: 'circulating' | 'nonCirculating';
|
|
20
|
+
}>): GetLargestAccountsApiResponse;
|
|
21
|
+
}
|
|
22
|
+
export {};
|
|
23
|
+
//# sourceMappingURL=getLargestAccounts.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getLargestAccounts.d.ts","sourceRoot":"","sources":["../../src/getLargestAccounts.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AACjD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACtD,OAAO,KAAK,EAAE,UAAU,EAAE,gCAAgC,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AAEzG,KAAK,8BAA8B,GAAG,QAAQ,CAAC;IAC3C,6CAA6C;IAC7C,OAAO,EAAE,OAAO,CAAC;IACjB,wCAAwC;IACxC,QAAQ,EAAE,gCAAgC,CAAC;CAC9C,CAAC,CAAC;AAEH,KAAK,6BAA6B,GAAG,iBAAiB,CAAC,8BAA8B,EAAE,CAAC,CAAC;AAEzF,MAAM,WAAW,qBAAsB,SAAQ,aAAa;IACxD;;;OAGG;IACH,kBAAkB,CACd,MAAM,CAAC,EAAE,QAAQ,CAAC;QACd,UAAU,CAAC,EAAE,UAAU,CAAC;QACxB,qCAAqC;QACrC,MAAM,CAAC,EAAE,aAAa,GAAG,gBAAgB,CAAC;KAC7C,CAAC,GACH,6BAA6B,CAAC;CACpC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { RpcApiMethods } from '@solana/rpc-spec';
|
|
2
|
+
import type { Blockhash, Commitment, Slot, SolanaRpcResponse, U64UnsafeBeyond2Pow53Minus1 } from '@solana/rpc-types';
|
|
3
|
+
type GetLatestBlockhashApiResponse = SolanaRpcResponse<{
|
|
4
|
+
/** a Hash as base-58 encoded string */
|
|
5
|
+
blockhash: Blockhash;
|
|
6
|
+
/** last block height at which the blockhash will be valid */
|
|
7
|
+
lastValidBlockHeight: U64UnsafeBeyond2Pow53Minus1;
|
|
8
|
+
}>;
|
|
9
|
+
export interface GetLatestBlockhashApi extends RpcApiMethods {
|
|
10
|
+
/**
|
|
11
|
+
* Returns the latest blockhash
|
|
12
|
+
*/
|
|
13
|
+
getLatestBlockhash(config?: Readonly<{
|
|
14
|
+
commitment?: Commitment;
|
|
15
|
+
minContextSlot?: Slot;
|
|
16
|
+
}>): GetLatestBlockhashApiResponse;
|
|
17
|
+
}
|
|
18
|
+
export {};
|
|
19
|
+
//# sourceMappingURL=getLatestBlockhash.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getLatestBlockhash.d.ts","sourceRoot":"","sources":["../../src/getLatestBlockhash.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACtD,OAAO,KAAK,EAAE,SAAS,EAAE,UAAU,EAAE,IAAI,EAAE,iBAAiB,EAAE,2BAA2B,EAAE,MAAM,mBAAmB,CAAC;AAErH,KAAK,6BAA6B,GAAG,iBAAiB,CAAC;IACnD,uCAAuC;IACvC,SAAS,EAAE,SAAS,CAAC;IACrB,6DAA6D;IAC7D,oBAAoB,EAAE,2BAA2B,CAAC;CACrD,CAAC,CAAC;AAEH,MAAM,WAAW,qBAAsB,SAAQ,aAAa;IACxD;;OAEG;IACH,kBAAkB,CACd,MAAM,CAAC,EAAE,QAAQ,CAAC;QACd,UAAU,CAAC,EAAE,UAAU,CAAC;QACxB,cAAc,CAAC,EAAE,IAAI,CAAC;KACzB,CAAC,GACH,6BAA6B,CAAC;CACpC"}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import type { Address } from '@solana/addresses';
|
|
2
|
+
import type { RpcApiMethods } from '@solana/rpc-spec';
|
|
3
|
+
import type { Commitment, Slot } from '@solana/rpc-types';
|
|
4
|
+
type GetLeaderScheduleApiConfigBase = Readonly<{
|
|
5
|
+
commitment?: Commitment;
|
|
6
|
+
}>;
|
|
7
|
+
/**
|
|
8
|
+
* This return type is a dictionary of validator identities, as base-58 encoded
|
|
9
|
+
* strings, and their corresponding leader slot indices as values
|
|
10
|
+
* (indices are relative to the first slot in the requested epoch)
|
|
11
|
+
* @example
|
|
12
|
+
* ```json
|
|
13
|
+
* {
|
|
14
|
+
* "4Qkev8aNZcqFNSRhQzwyLMFSsi94jHqE8WNVTJzTP99F": [
|
|
15
|
+
* 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20,
|
|
16
|
+
* 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38,
|
|
17
|
+
* 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56,
|
|
18
|
+
* 57, 58, 59, 60, 61, 62, 63
|
|
19
|
+
* ]
|
|
20
|
+
* }
|
|
21
|
+
* ```
|
|
22
|
+
*/
|
|
23
|
+
type GetLeaderScheduleApiResponseWithAllIdentities = Record<Address, Slot[]>;
|
|
24
|
+
type GetLeaderScheduleApiResponseWithSingleIdentity<TIdentity extends string> = Readonly<{
|
|
25
|
+
[TAddress in TIdentity]?: Slot[];
|
|
26
|
+
}>;
|
|
27
|
+
export interface GetLeaderScheduleApi extends RpcApiMethods {
|
|
28
|
+
/**
|
|
29
|
+
* Fetch the leader schedule for the epoch that corresponds to the provided slot.
|
|
30
|
+
* If unspecified, the leader schedule for the current epoch is fetched
|
|
31
|
+
*
|
|
32
|
+
* When a slot is provided, the leader schedule for the epoch that corresponds
|
|
33
|
+
* to the provided slot is returned, and this can be null if the slot corresponds
|
|
34
|
+
* to an epoch that does not exist.
|
|
35
|
+
*
|
|
36
|
+
* The RPC request payload provides a `null` value for `slot` when the slot is not
|
|
37
|
+
* specified but the request wishes to include config.
|
|
38
|
+
*/
|
|
39
|
+
getLeaderSchedule<TIdentity extends Address>(slot: Slot, config: GetLeaderScheduleApiConfigBase & Readonly<{
|
|
40
|
+
/** Only return results for this validator identity (base58 encoded address) */
|
|
41
|
+
identity: Address;
|
|
42
|
+
}>): GetLeaderScheduleApiResponseWithSingleIdentity<TIdentity> | null;
|
|
43
|
+
getLeaderSchedule(slot: Slot, config?: GetLeaderScheduleApiConfigBase): GetLeaderScheduleApiResponseWithAllIdentities | null;
|
|
44
|
+
getLeaderSchedule<TIdentity extends Address>(slot: null, config: GetLeaderScheduleApiConfigBase & Readonly<{
|
|
45
|
+
/** Only return results for this validator identity (base58 encoded address) */
|
|
46
|
+
identity: Address;
|
|
47
|
+
}>): GetLeaderScheduleApiResponseWithSingleIdentity<TIdentity>;
|
|
48
|
+
getLeaderSchedule(slot: null, config?: GetLeaderScheduleApiConfigBase): GetLeaderScheduleApiResponseWithAllIdentities;
|
|
49
|
+
}
|
|
50
|
+
export {};
|
|
51
|
+
//# sourceMappingURL=getLeaderSchedule.d.ts.map
|
|
@@ -0,0 +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,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACtD,OAAO,KAAK,EAAE,UAAU,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAC;AAE1D,KAAK,8BAA8B,GAAG,QAAQ,CAAC;IAC3C,UAAU,CAAC,EAAE,UAAU,CAAC;CAC3B,CAAC,CAAC;AAEH;;;;;;;;;;;;;;;GAeG;AACH,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,WAAW,oBAAqB,SAAQ,aAAa;IACvD;;;;;;;;;;OAUG;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,iBAAiB,CACb,IAAI,EAAE,IAAI,EACV,MAAM,CAAC,EAAE,8BAA8B,GACxC,6CAA6C,GAAG,IAAI,CAAC;IACxD,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,iBAAiB,CACb,IAAI,EAAE,IAAI,EACV,MAAM,CAAC,EAAE,8BAA8B,GACxC,6CAA6C,CAAC;CACpD"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { RpcApiMethods } from '@solana/rpc-spec';
|
|
2
|
+
import type { Slot } from '@solana/rpc-types';
|
|
3
|
+
type GetMaxRetransmitSlotApiResponse = Slot;
|
|
4
|
+
export interface GetMaxRetransmitSlotApi extends RpcApiMethods {
|
|
5
|
+
/**
|
|
6
|
+
* Get the max slot seen from retransmit stage.
|
|
7
|
+
* Note that the optional NO_CONFIG object is ignored. See https://github.com/solana-labs/solana-web3.js/issues/1389
|
|
8
|
+
*/
|
|
9
|
+
getMaxRetransmitSlot(NO_CONFIG?: Record<string, never>): GetMaxRetransmitSlotApiResponse;
|
|
10
|
+
}
|
|
11
|
+
export {};
|
|
12
|
+
//# sourceMappingURL=getMaxRetransmitSlot.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getMaxRetransmitSlot.d.ts","sourceRoot":"","sources":["../../src/getMaxRetransmitSlot.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACtD,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAC;AAE9C,KAAK,+BAA+B,GAAG,IAAI,CAAC;AAE5C,MAAM,WAAW,uBAAwB,SAAQ,aAAa;IAC1D;;;OAGG;IACH,oBAAoB,CAEhB,SAAS,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,GAClC,+BAA+B,CAAC;CACtC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { RpcApiMethods } from '@solana/rpc-spec';
|
|
2
|
+
import type { Slot } from '@solana/rpc-types';
|
|
3
|
+
type GetMaxShredInsertSlotApiResponse = Slot;
|
|
4
|
+
export interface GetMaxShredInsertSlotApi extends RpcApiMethods {
|
|
5
|
+
/**
|
|
6
|
+
* Get the max slot seen from after shred insert.
|
|
7
|
+
* Note that the optional NO_CONFIG object is ignored. See https://github.com/solana-labs/solana-web3.js/issues/1389
|
|
8
|
+
*/
|
|
9
|
+
getMaxShredInsertSlot(NO_CONFIG?: Record<string, never>): GetMaxShredInsertSlotApiResponse;
|
|
10
|
+
}
|
|
11
|
+
export {};
|
|
12
|
+
//# sourceMappingURL=getMaxShredInsertSlot.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getMaxShredInsertSlot.d.ts","sourceRoot":"","sources":["../../src/getMaxShredInsertSlot.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACtD,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAC;AAE9C,KAAK,gCAAgC,GAAG,IAAI,CAAC;AAE7C,MAAM,WAAW,wBAAyB,SAAQ,aAAa;IAC3D;;;OAGG;IACH,qBAAqB,CAEjB,SAAS,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,GAClC,gCAAgC,CAAC;CACvC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { RpcApiMethods } from '@solana/rpc-spec';
|
|
2
|
+
import type { Commitment, LamportsUnsafeBeyond2Pow53Minus1, U64UnsafeBeyond2Pow53Minus1 } from '@solana/rpc-types';
|
|
3
|
+
type GetMinimumBalanceForRentExemptionApiResponse = LamportsUnsafeBeyond2Pow53Minus1;
|
|
4
|
+
export interface GetMinimumBalanceForRentExemptionApi extends RpcApiMethods {
|
|
5
|
+
/**
|
|
6
|
+
* Returns the minimum balance to exempt an account of a certain size from rent
|
|
7
|
+
*/
|
|
8
|
+
getMinimumBalanceForRentExemption(size: U64UnsafeBeyond2Pow53Minus1, config?: Readonly<{
|
|
9
|
+
commitment?: Commitment;
|
|
10
|
+
}>): GetMinimumBalanceForRentExemptionApiResponse;
|
|
11
|
+
}
|
|
12
|
+
export {};
|
|
13
|
+
//# sourceMappingURL=getMinimumBalanceForRentExemption.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getMinimumBalanceForRentExemption.d.ts","sourceRoot":"","sources":["../../src/getMinimumBalanceForRentExemption.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACtD,OAAO,KAAK,EAAE,UAAU,EAAE,gCAAgC,EAAE,2BAA2B,EAAE,MAAM,mBAAmB,CAAC;AAEnH,KAAK,4CAA4C,GAAG,gCAAgC,CAAC;AAErF,MAAM,WAAW,oCAAqC,SAAQ,aAAa;IACvE;;OAEG;IACH,iCAAiC,CAC7B,IAAI,EAAE,2BAA2B,EACjC,MAAM,CAAC,EAAE,QAAQ,CAAC;QACd,UAAU,CAAC,EAAE,UAAU,CAAC;KAC3B,CAAC,GACH,4CAA4C,CAAC;CACnD"}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import type { Address } from '@solana/addresses';
|
|
2
|
+
import type { RpcApiMethods } from '@solana/rpc-spec';
|
|
3
|
+
import type { Commitment, Slot, SolanaRpcResponse } from '@solana/rpc-types';
|
|
4
|
+
import { AccountInfoBase, AccountInfoWithBase58EncodedData, AccountInfoWithBase64EncodedData, AccountInfoWithBase64EncodedZStdCompressedData, AccountInfoWithJsonData, DataSlice } from './common.js';
|
|
5
|
+
type GetMultipleAccountsApiResponseBase = AccountInfoBase | null;
|
|
6
|
+
type GetMultipleAccountsApiCommonConfig = Readonly<{
|
|
7
|
+
/** Defaults to `finalized` */
|
|
8
|
+
commitment?: Commitment;
|
|
9
|
+
/** The minimum slot that the request can be evaluated at */
|
|
10
|
+
minContextSlot?: Slot;
|
|
11
|
+
}>;
|
|
12
|
+
type GetMultipleAccountsApiSliceableCommonConfig = Readonly<{
|
|
13
|
+
/** Limit the returned account data */
|
|
14
|
+
dataSlice?: DataSlice;
|
|
15
|
+
}>;
|
|
16
|
+
export interface GetMultipleAccountsApi extends RpcApiMethods {
|
|
17
|
+
/**
|
|
18
|
+
* Returns the account information for a list of Pubkeys.
|
|
19
|
+
*/
|
|
20
|
+
getMultipleAccounts(
|
|
21
|
+
/** An array of up to 100 Pubkeys to query */
|
|
22
|
+
addresses: Address[], config: GetMultipleAccountsApiCommonConfig & GetMultipleAccountsApiSliceableCommonConfig & Readonly<{
|
|
23
|
+
encoding: 'base64';
|
|
24
|
+
}>): SolanaRpcResponse<(GetMultipleAccountsApiResponseBase & (AccountInfoWithBase64EncodedData | null))[]>;
|
|
25
|
+
getMultipleAccounts(
|
|
26
|
+
/** An array of up to 100 Pubkeys to query */
|
|
27
|
+
addresses: Address[], config: GetMultipleAccountsApiCommonConfig & GetMultipleAccountsApiSliceableCommonConfig & Readonly<{
|
|
28
|
+
encoding: 'base64+zstd';
|
|
29
|
+
}>): SolanaRpcResponse<(GetMultipleAccountsApiResponseBase & (AccountInfoWithBase64EncodedZStdCompressedData | null))[]>;
|
|
30
|
+
getMultipleAccounts(
|
|
31
|
+
/** An array of up to 100 Pubkeys to query */
|
|
32
|
+
addresses: Address[], config: GetMultipleAccountsApiCommonConfig & Readonly<{
|
|
33
|
+
encoding: 'jsonParsed';
|
|
34
|
+
}>): SolanaRpcResponse<(GetMultipleAccountsApiResponseBase & (AccountInfoWithJsonData | null))[]>;
|
|
35
|
+
getMultipleAccounts(
|
|
36
|
+
/** An array of up to 100 Pubkeys to query */
|
|
37
|
+
addresses: Address[], config: GetMultipleAccountsApiCommonConfig & GetMultipleAccountsApiSliceableCommonConfig & Readonly<{
|
|
38
|
+
encoding: 'base58';
|
|
39
|
+
}>): SolanaRpcResponse<(GetMultipleAccountsApiResponseBase & (AccountInfoWithBase58EncodedData | null))[]>;
|
|
40
|
+
getMultipleAccounts(
|
|
41
|
+
/** An array of up to 100 Pubkeys to query */
|
|
42
|
+
addresses: Address[], config?: GetMultipleAccountsApiCommonConfig): SolanaRpcResponse<(GetMultipleAccountsApiResponseBase & (AccountInfoWithBase64EncodedData | null))[]>;
|
|
43
|
+
}
|
|
44
|
+
export {};
|
|
45
|
+
//# sourceMappingURL=getMultipleAccounts.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getMultipleAccounts.d.ts","sourceRoot":"","sources":["../../src/getMultipleAccounts.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AACjD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACtD,OAAO,KAAK,EAAE,UAAU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CAAC,kCAAkC,GAAG,CAAC,uBAAuB,GAAG,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC;IAChG,mBAAmB;IACf,6CAA6C;IAC7C,SAAS,EAAE,OAAO,EAAE,EACpB,MAAM,EAAE,kCAAkC,GACtC,2CAA2C,GAC3C,QAAQ,CAAC;QACL,QAAQ,EAAE,QAAQ,CAAC;KACtB,CAAC,GACP,iBAAiB,CAAC,CAAC,kCAAkC,GAAG,CAAC,gCAAgC,GAAG,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC;IACzG,mBAAmB;IACf,6CAA6C;IAC7C,SAAS,EAAE,OAAO,EAAE,EACpB,MAAM,CAAC,EAAE,kCAAkC,GAC5C,iBAAiB,CAAC,CAAC,kCAAkC,GAAG,CAAC,gCAAgC,GAAG,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC;CAC5G"}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import type { Address } from '@solana/addresses';
|
|
2
|
+
import type { RpcApiMethods } from '@solana/rpc-spec';
|
|
3
|
+
import type { Commitment, Slot, SolanaRpcResponse } from '@solana/rpc-types';
|
|
4
|
+
import { AccountInfoBase, AccountInfoWithBase58Bytes, AccountInfoWithBase58EncodedData, AccountInfoWithBase64EncodedData, AccountInfoWithBase64EncodedZStdCompressedData, AccountInfoWithJsonData, AccountInfoWithPubkey, DataSlice, GetProgramAccountsDatasizeFilter, GetProgramAccountsMemcmpFilter } from './common.js';
|
|
5
|
+
type GetProgramAccountsApiCommonConfig = Readonly<{
|
|
6
|
+
/** @defaultValue "finalized" */
|
|
7
|
+
commitment?: Commitment;
|
|
8
|
+
/** The minimum slot that the request can be evaluated at */
|
|
9
|
+
minContextSlot?: Slot;
|
|
10
|
+
/** filter results (up to 4 filters allowed) @see https://docs.solana.com/api/http#filter-criteria */
|
|
11
|
+
filters?: (GetProgramAccountsMemcmpFilter | GetProgramAccountsDatasizeFilter)[];
|
|
12
|
+
}>;
|
|
13
|
+
type GetProgramAccountsApiSliceableCommonConfig = Readonly<{
|
|
14
|
+
/** Limit the returned account data */
|
|
15
|
+
dataSlice?: DataSlice;
|
|
16
|
+
}>;
|
|
17
|
+
export interface GetProgramAccountsApi extends RpcApiMethods {
|
|
18
|
+
/**
|
|
19
|
+
* Returns the account information for a list of Pubkeys.
|
|
20
|
+
*/
|
|
21
|
+
getProgramAccounts(program: Address, config: GetProgramAccountsApiCommonConfig & GetProgramAccountsApiSliceableCommonConfig & Readonly<{
|
|
22
|
+
encoding: 'base64';
|
|
23
|
+
withContext: true;
|
|
24
|
+
}>): SolanaRpcResponse<AccountInfoWithPubkey<AccountInfoBase & AccountInfoWithBase64EncodedData>[]>;
|
|
25
|
+
getProgramAccounts(program: Address, config: GetProgramAccountsApiCommonConfig & GetProgramAccountsApiSliceableCommonConfig & Readonly<{
|
|
26
|
+
encoding: 'base64';
|
|
27
|
+
withContext?: boolean;
|
|
28
|
+
}>): AccountInfoWithPubkey<AccountInfoBase & AccountInfoWithBase64EncodedData>[];
|
|
29
|
+
getProgramAccounts(program: Address, config: GetProgramAccountsApiCommonConfig & GetProgramAccountsApiSliceableCommonConfig & Readonly<{
|
|
30
|
+
encoding: 'base64+zstd';
|
|
31
|
+
withContext: true;
|
|
32
|
+
}>): SolanaRpcResponse<AccountInfoWithPubkey<AccountInfoBase & AccountInfoWithBase64EncodedZStdCompressedData>[]>;
|
|
33
|
+
getProgramAccounts(program: Address, config: GetProgramAccountsApiCommonConfig & GetProgramAccountsApiSliceableCommonConfig & Readonly<{
|
|
34
|
+
encoding: 'base64+zstd';
|
|
35
|
+
withContext?: boolean;
|
|
36
|
+
}>): AccountInfoWithPubkey<AccountInfoBase & AccountInfoWithBase64EncodedZStdCompressedData>[];
|
|
37
|
+
getProgramAccounts(program: Address, config: GetProgramAccountsApiCommonConfig & Readonly<{
|
|
38
|
+
encoding: 'jsonParsed';
|
|
39
|
+
withContext: true;
|
|
40
|
+
}>): SolanaRpcResponse<AccountInfoWithPubkey<AccountInfoBase & AccountInfoWithJsonData>[]>;
|
|
41
|
+
getProgramAccounts(program: Address, config: GetProgramAccountsApiCommonConfig & Readonly<{
|
|
42
|
+
encoding: 'jsonParsed';
|
|
43
|
+
withContext?: boolean;
|
|
44
|
+
}>): AccountInfoWithPubkey<AccountInfoBase & AccountInfoWithJsonData>[];
|
|
45
|
+
getProgramAccounts(program: Address, config: GetProgramAccountsApiCommonConfig & GetProgramAccountsApiSliceableCommonConfig & Readonly<{
|
|
46
|
+
encoding: 'base58';
|
|
47
|
+
withContext: true;
|
|
48
|
+
}>): SolanaRpcResponse<AccountInfoWithPubkey<AccountInfoBase & AccountInfoWithBase58EncodedData>[]>;
|
|
49
|
+
getProgramAccounts(program: Address, config: GetProgramAccountsApiCommonConfig & GetProgramAccountsApiSliceableCommonConfig & Readonly<{
|
|
50
|
+
encoding: 'base58';
|
|
51
|
+
withContext?: boolean;
|
|
52
|
+
}>): AccountInfoWithPubkey<AccountInfoBase & AccountInfoWithBase58EncodedData>[];
|
|
53
|
+
getProgramAccounts(program: Address, config: GetProgramAccountsApiCommonConfig & GetProgramAccountsApiSliceableCommonConfig & Readonly<{
|
|
54
|
+
withContext: true;
|
|
55
|
+
}>): SolanaRpcResponse<AccountInfoWithPubkey<AccountInfoBase & AccountInfoWithBase58Bytes>[]>;
|
|
56
|
+
getProgramAccounts(program: Address, config?: GetProgramAccountsApiCommonConfig & GetProgramAccountsApiSliceableCommonConfig & Readonly<{
|
|
57
|
+
withContext?: boolean;
|
|
58
|
+
}>): AccountInfoWithPubkey<AccountInfoBase & AccountInfoWithBase58Bytes>[];
|
|
59
|
+
}
|
|
60
|
+
export {};
|
|
61
|
+
//# sourceMappingURL=getProgramAccounts.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getProgramAccounts.d.ts","sourceRoot":"","sources":["../../src/getProgramAccounts.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AACjD,OAA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0C,GAC1C,QAAQ,CAAC;QACL,QAAQ,EAAE,QAAQ,CAAC;QACnB,WAAW,CAAC,EAAE,OAAO,CAAC;KACzB,CAAC,GACP,qBAAqB,CAAC,eAAe,GAAG,gCAAgC,CAAC,EAAE,CAAC;IAE/E,kBAAkB,CACd,OAAO,EAAE,OAAO,EAChB,MAAM,EAAE,iCAAiC,GACrC,0CAA0C,GAC1C,QAAQ,CAAC;QACL,WAAW,EAAE,IAAI,CAAC;KACrB,CAAC,GACP,iBAAiB,CAAC,qBAAqB,CAAC,eAAe,GAAG,0BAA0B,CAAC,EAAE,CAAC,CAAC;IAE5F,kBAAkB,CACd,OAAO,EAAE,OAAO,EAChB,MAAM,CAAC,EAAE,iCAAiC,GACtC,0CAA0C,GAC1C,QAAQ,CAAC;QACL,WAAW,CAAC,EAAE,OAAO,CAAC;KACzB,CAAC,GACP,qBAAqB,CAAC,eAAe,GAAG,0BAA0B,CAAC,EAAE,CAAC;CAC5E"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import type { RpcApiMethods } from '@solana/rpc-spec';
|
|
2
|
+
import type { Slot, U64UnsafeBeyond2Pow53Minus1 } from '@solana/rpc-types';
|
|
3
|
+
type PerformanceSample = Readonly<{
|
|
4
|
+
/** Slot in which sample was taken at */
|
|
5
|
+
slot: Slot;
|
|
6
|
+
/** Number of transactions in sample */
|
|
7
|
+
numTransactions: U64UnsafeBeyond2Pow53Minus1;
|
|
8
|
+
/** Number of slots in sample */
|
|
9
|
+
numSlots: U64UnsafeBeyond2Pow53Minus1;
|
|
10
|
+
/** Number of seconds in a sample window */
|
|
11
|
+
samplePeriodSecs: number;
|
|
12
|
+
/** Number of non-vote transactions in sample. */
|
|
13
|
+
numNonVoteTransaction: U64UnsafeBeyond2Pow53Minus1;
|
|
14
|
+
}>;
|
|
15
|
+
type GetRecentPerformanceSamplesApiResponse = readonly PerformanceSample[];
|
|
16
|
+
export interface GetRecentPerformanceSamplesApi extends RpcApiMethods {
|
|
17
|
+
/**
|
|
18
|
+
* Returns a list of recent performance samples, in reverse slot order. Performance samples are taken every 60 seconds and include the number of transactions and slots that occur in a given time window.
|
|
19
|
+
*/
|
|
20
|
+
getRecentPerformanceSamples(
|
|
21
|
+
/** number of samples to return (maximum 720) */
|
|
22
|
+
limit?: number): GetRecentPerformanceSamplesApiResponse;
|
|
23
|
+
}
|
|
24
|
+
export {};
|
|
25
|
+
//# sourceMappingURL=getRecentPerformanceSamples.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getRecentPerformanceSamples.d.ts","sourceRoot":"","sources":["../../src/getRecentPerformanceSamples.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACtD,OAAO,KAAK,EAAE,IAAI,EAAE,2BAA2B,EAAE,MAAM,mBAAmB,CAAC;AAE3E,KAAK,iBAAiB,GAAG,QAAQ,CAAC;IAC9B,wCAAwC;IACxC,IAAI,EAAE,IAAI,CAAC;IACX,uCAAuC;IACvC,eAAe,EAAE,2BAA2B,CAAC;IAC7C,gCAAgC;IAChC,QAAQ,EAAE,2BAA2B,CAAC;IACtC,2CAA2C;IAC3C,gBAAgB,EAAE,MAAM,CAAC;IACzB,iDAAiD;IACjD,qBAAqB,EAAE,2BAA2B,CAAC;CACtD,CAAC,CAAC;AAEH,KAAK,sCAAsC,GAAG,SAAS,iBAAiB,EAAE,CAAC;AAE3E,MAAM,WAAW,8BAA+B,SAAQ,aAAa;IACjE;;OAEG;IACH,2BAA2B;IACvB,gDAAgD;IAChD,KAAK,CAAC,EAAE,MAAM,GACf,sCAAsC,CAAC;CAC7C"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import type { Address } from '@solana/addresses';
|
|
2
|
+
import type { RpcApiMethods } from '@solana/rpc-spec';
|
|
3
|
+
import type { Slot } from '@solana/rpc-types';
|
|
4
|
+
import { MicroLamportsUnsafeBeyond2Pow53Minus1 } from './common.js';
|
|
5
|
+
type GetRecentPrioritizationFeesApiResponse = Readonly<{
|
|
6
|
+
/**
|
|
7
|
+
* The per-compute-unit fee paid by at least one successfully
|
|
8
|
+
* landed transaction, specified in increments of
|
|
9
|
+
* micro-lamports (0.000001 lamports).
|
|
10
|
+
*/
|
|
11
|
+
prioritizationFee: MicroLamportsUnsafeBeyond2Pow53Minus1;
|
|
12
|
+
/** Slot in which the fee was observed */
|
|
13
|
+
slot: Slot;
|
|
14
|
+
}>[];
|
|
15
|
+
export interface GetRecentPrioritizationFeesApi extends RpcApiMethods {
|
|
16
|
+
/**
|
|
17
|
+
* Returns the balance of the account of provided Pubkey
|
|
18
|
+
*/
|
|
19
|
+
getRecentPrioritizationFees(
|
|
20
|
+
/**
|
|
21
|
+
* An array of Account addresses (up to a maximum of 128 addresses),
|
|
22
|
+
* as base-58 encoded strings.
|
|
23
|
+
*
|
|
24
|
+
* Note: If this parameter is provided, the response will reflect
|
|
25
|
+
* a fee to land a transaction locking all of the provided accounts
|
|
26
|
+
* as writable.
|
|
27
|
+
*/
|
|
28
|
+
addresses?: Address[]): GetRecentPrioritizationFeesApiResponse;
|
|
29
|
+
}
|
|
30
|
+
export {};
|
|
31
|
+
//# sourceMappingURL=getRecentPrioritizationFees.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getRecentPrioritizationFees.d.ts","sourceRoot":"","sources":["../../src/getRecentPrioritizationFees.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AACjD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACtD,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAC;AAE9C,OAAO,EAAE,qCAAqC,EAAE,MAAM,UAAU,CAAC;AAEjE,KAAK,sCAAsC,GAAG,QAAQ,CAAC;IACnD;;;;OAIG;IACH,iBAAiB,EAAE,qCAAqC,CAAC;IACzD,yCAAyC;IACzC,IAAI,EAAE,IAAI,CAAC;CACd,CAAC,EAAE,CAAC;AAEL,MAAM,WAAW,8BAA+B,SAAQ,aAAa;IACjE;;OAEG;IACH,2BAA2B;IACvB;;;;;;;OAOG;IACH,SAAS,CAAC,EAAE,OAAO,EAAE,GACtB,sCAAsC,CAAC;CAC7C"}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import type { Signature } from '@solana/keys';
|
|
2
|
+
import type { RpcApiMethods } from '@solana/rpc-spec';
|
|
3
|
+
import type { Commitment, Slot, SolanaRpcResponse, TransactionError, U64UnsafeBeyond2Pow53Minus1 } from '@solana/rpc-types';
|
|
4
|
+
/** @deprecated */
|
|
5
|
+
type TransactionStatusOk = Readonly<{
|
|
6
|
+
Ok: null;
|
|
7
|
+
}>;
|
|
8
|
+
/** @deprecated */
|
|
9
|
+
type TransactionStatusErr = Readonly<{
|
|
10
|
+
Err: TransactionError;
|
|
11
|
+
}>;
|
|
12
|
+
type SignatureStatusResult = Readonly<{
|
|
13
|
+
/**
|
|
14
|
+
* Number of blocks since signature confirmation, null if rooted,
|
|
15
|
+
* as well as finalized by a supermajority of the cluster
|
|
16
|
+
*/
|
|
17
|
+
confirmations: U64UnsafeBeyond2Pow53Minus1 | null;
|
|
18
|
+
/**
|
|
19
|
+
* The transaction's cluster confirmation status; either `processed`,
|
|
20
|
+
* `confirmed`, or `finalized`.
|
|
21
|
+
*/
|
|
22
|
+
confirmationStatus: Commitment | null;
|
|
23
|
+
/** Error if transaction failed, null if transaction succeeded */
|
|
24
|
+
err: TransactionError | null;
|
|
25
|
+
/** The slot the transaction was processed */
|
|
26
|
+
slot: Slot;
|
|
27
|
+
/**
|
|
28
|
+
* @deprecated Transaction status
|
|
29
|
+
*/
|
|
30
|
+
status: TransactionStatusOk | TransactionStatusErr;
|
|
31
|
+
}>;
|
|
32
|
+
type GetSignatureStatusesBase = ReadonlyArray<SignatureStatusResult | null>;
|
|
33
|
+
type GetSignatureStatusesApiResponse = SolanaRpcResponse<GetSignatureStatusesBase>;
|
|
34
|
+
export interface GetSignatureStatusesApi extends RpcApiMethods {
|
|
35
|
+
/**
|
|
36
|
+
* Returns the statuses of a list of signatures.
|
|
37
|
+
* Each signature must be a txid, the first signature of a transaction.
|
|
38
|
+
*
|
|
39
|
+
* Note: Unless the `searchTransactionHistory` configuration parameter is
|
|
40
|
+
* included, this method only searches the recent status cache of
|
|
41
|
+
* signatures, which retains statuses for all active slots plus
|
|
42
|
+
* `MAX_RECENT_BLOCKHASHES` rooted slots.
|
|
43
|
+
*/
|
|
44
|
+
getSignatureStatuses(
|
|
45
|
+
/**
|
|
46
|
+
* An array of transaction signatures to confirm,
|
|
47
|
+
* as base-58 encoded strings (up to a maximum of 256)
|
|
48
|
+
*/
|
|
49
|
+
signatures: Signature[], config?: Readonly<{
|
|
50
|
+
/**
|
|
51
|
+
* if `true` - a Solana node will search its ledger cache for any
|
|
52
|
+
* signatures not found in the recent status cache
|
|
53
|
+
*/
|
|
54
|
+
searchTransactionHistory?: boolean;
|
|
55
|
+
}>): GetSignatureStatusesApiResponse;
|
|
56
|
+
}
|
|
57
|
+
export {};
|
|
58
|
+
//# sourceMappingURL=getSignatureStatuses.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getSignatureStatuses.d.ts","sourceRoot":"","sources":["../../src/getSignatureStatuses.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAC9C,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACtD,OAAO,KAAK,EACR,UAAU,EACV,IAAI,EACJ,iBAAiB,EACjB,gBAAgB,EAChB,2BAA2B,EAC9B,MAAM,mBAAmB,CAAC;AAE3B,kBAAkB;AAClB,KAAK,mBAAmB,GAAG,QAAQ,CAAC;IAChC,EAAE,EAAE,IAAI,CAAC;CACZ,CAAC,CAAC;AAEH,kBAAkB;AAClB,KAAK,oBAAoB,GAAG,QAAQ,CAAC;IACjC,GAAG,EAAE,gBAAgB,CAAC;CACzB,CAAC,CAAC;AAEH,KAAK,qBAAqB,GAAG,QAAQ,CAAC;IAClC;;;OAGG;IACH,aAAa,EAAE,2BAA2B,GAAG,IAAI,CAAC;IAClD;;;OAGG;IACH,kBAAkB,EAAE,UAAU,GAAG,IAAI,CAAC;IACtC,iEAAiE;IACjE,GAAG,EAAE,gBAAgB,GAAG,IAAI,CAAC;IAC7B,6CAA6C;IAC7C,IAAI,EAAE,IAAI,CAAC;IACX;;OAEG;IACH,MAAM,EAAE,mBAAmB,GAAG,oBAAoB,CAAC;CACtD,CAAC,CAAC;AAEH,KAAK,wBAAwB,GAAG,aAAa,CAAC,qBAAqB,GAAG,IAAI,CAAC,CAAC;AAE5E,KAAK,+BAA+B,GAAG,iBAAiB,CAAC,wBAAwB,CAAC,CAAC;AAEnF,MAAM,WAAW,uBAAwB,SAAQ,aAAa;IAC1D;;;;;;;;OAQG;IACH,oBAAoB;IAChB;;;OAGG;IACH,UAAU,EAAE,SAAS,EAAE,EACvB,MAAM,CAAC,EAAE,QAAQ,CAAC;QACd;;;WAGG;QACH,wBAAwB,CAAC,EAAE,OAAO,CAAC;KACtC,CAAC,GACH,+BAA+B,CAAC;CACtC"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import type { Address } from '@solana/addresses';
|
|
2
|
+
import type { Signature } from '@solana/keys';
|
|
3
|
+
import type { RpcApiMethods } from '@solana/rpc-spec';
|
|
4
|
+
import type { Commitment, Slot, TransactionError, UnixTimestamp } from '@solana/rpc-types';
|
|
5
|
+
type GetSignaturesForAddressTransaction = Readonly<{
|
|
6
|
+
/** transaction signature as base-58 encoded string */
|
|
7
|
+
signature: Signature;
|
|
8
|
+
/** The slot that contains the block with the transaction */
|
|
9
|
+
slot: Slot;
|
|
10
|
+
/** Error if transaction failed, null if transaction succeeded. */
|
|
11
|
+
err: TransactionError | null;
|
|
12
|
+
/** Memo associated with the transaction, null if no memo is present */
|
|
13
|
+
memo: string | null;
|
|
14
|
+
/** estimated production time of when transaction was processed. null if not available. */
|
|
15
|
+
blockTime: UnixTimestamp | null;
|
|
16
|
+
/** The transaction's cluster confirmation status */
|
|
17
|
+
confirmationStatus: Commitment | null;
|
|
18
|
+
}>;
|
|
19
|
+
type GetSignaturesForAddressApiResponse = readonly GetSignaturesForAddressTransaction[];
|
|
20
|
+
type AllowedCommitmentForGetSignaturesForAddress = Exclude<Commitment, 'processed'>;
|
|
21
|
+
type GetSignaturesForAddressConfig = Readonly<{
|
|
22
|
+
commitment?: AllowedCommitmentForGetSignaturesForAddress;
|
|
23
|
+
/** The minimum slot that the request can be evaluated at */
|
|
24
|
+
minContextSlot?: Slot;
|
|
25
|
+
/** maximum transaction signatures to return (between 1 and 1,000). Default: 1000 */
|
|
26
|
+
limit?: number;
|
|
27
|
+
/** start searching backwards from this transaction signature. If not provided the search starts from the top of the highest max confirmed block. */
|
|
28
|
+
before?: Signature;
|
|
29
|
+
/** search until this transaction signature, if found before limit reached */
|
|
30
|
+
until?: Signature;
|
|
31
|
+
}>;
|
|
32
|
+
export interface GetSignaturesForAddressApi extends RpcApiMethods {
|
|
33
|
+
/**
|
|
34
|
+
* Returns signatures for confirmed transactions that include the given address in their accountKeys list.
|
|
35
|
+
* Returns signatures backwards in time from the provided signature or most recent confirmed block
|
|
36
|
+
*/
|
|
37
|
+
getSignaturesForAddress(address: Address, config?: GetSignaturesForAddressConfig): GetSignaturesForAddressApiResponse;
|
|
38
|
+
}
|
|
39
|
+
export {};
|
|
40
|
+
//# sourceMappingURL=getSignaturesForAddress.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getSignaturesForAddress.d.ts","sourceRoot":"","sources":["../../src/getSignaturesForAddress.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AACjD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAC9C,OAAO,KAA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Response = Slot;
|
|
4
|
+
export interface GetSlotApi extends RpcApiMethods {
|
|
5
|
+
/**
|
|
6
|
+
* Returns the slot that has reached the given or default commitment level
|
|
7
|
+
*/
|
|
8
|
+
getSlot(config?: Readonly<{
|
|
9
|
+
commitment?: Commitment;
|
|
10
|
+
minContextSlot?: Slot;
|
|
11
|
+
}>): GetSlotApiResponse;
|
|
12
|
+
}
|
|
13
|
+
export {};
|
|
14
|
+
//# sourceMappingURL=getSlot.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getSlot.d.ts","sourceRoot":"","sources":["../../src/getSlot.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACtD,OAAO,KAAK,EAAE,UAAU,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAC;AAE1D,KAAK,kBAAkB,GAAG,IAAI,CAAC;AAE/B,MAAM,WAAW,UAAW,SAAQ,aAAa;IAC7C;;OAEG;IACH,OAAO,CACH,MAAM,CAAC,EAAE,QAAQ,CAAC;QACd,UAAU,CAAC,EAAE,UAAU,CAAC;QACxB,cAAc,CAAC,EAAE,IAAI,CAAC;KACzB,CAAC,GACH,kBAAkB,CAAC;CACzB"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { Address } from '@solana/addresses';
|
|
2
|
+
import type { RpcApiMethods } from '@solana/rpc-spec';
|
|
3
|
+
import type { Commitment, Slot } from '@solana/rpc-types';
|
|
4
|
+
export interface GetSlotLeaderApi extends RpcApiMethods {
|
|
5
|
+
/**
|
|
6
|
+
* Returns the current slot leader
|
|
7
|
+
*/
|
|
8
|
+
getSlotLeader(config?: Readonly<{
|
|
9
|
+
commitment?: Commitment;
|
|
10
|
+
minContextSlot?: Slot;
|
|
11
|
+
}>): Address;
|
|
12
|
+
}
|
|
13
|
+
//# sourceMappingURL=getSlotLeader.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getSlotLeader.d.ts","sourceRoot":"","sources":["../../src/getSlotLeader.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AACjD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACtD,OAAO,KAAK,EAAE,UAAU,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAC;AAE1D,MAAM,WAAW,gBAAiB,SAAQ,aAAa;IACnD;;OAEG;IACH,aAAa,CACT,MAAM,CAAC,EAAE,QAAQ,CAAC;QACd,UAAU,CAAC,EAAE,UAAU,CAAC;QACxB,cAAc,CAAC,EAAE,IAAI,CAAC;KACzB,CAAC,GACH,OAAO,CAAC;CACd"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { Address } from '@solana/addresses';
|
|
2
|
+
import type { RpcApiMethods } from '@solana/rpc-spec';
|
|
3
|
+
import type { Slot } from '@solana/rpc-types';
|
|
4
|
+
/** array of Node identity public keys as base-58 encoded strings */
|
|
5
|
+
type GetSlotLeadersApiResponse = Address[];
|
|
6
|
+
export interface GetSlotLeadersApi extends RpcApiMethods {
|
|
7
|
+
/**
|
|
8
|
+
* Returns the slot leaders for a given slot range
|
|
9
|
+
*/
|
|
10
|
+
getSlotLeaders(
|
|
11
|
+
/** Start slot, as u64 integer */
|
|
12
|
+
startSlot: Slot,
|
|
13
|
+
/** Limit (between 1 and 5000) */
|
|
14
|
+
limit: number): GetSlotLeadersApiResponse;
|
|
15
|
+
}
|
|
16
|
+
export {};
|
|
17
|
+
//# sourceMappingURL=getSlotLeaders.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getSlotLeaders.d.ts","sourceRoot":"","sources":["../../src/getSlotLeaders.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AACjD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACtD,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAC;AAE9C,oEAAoE;AACpE,KAAK,yBAAyB,GAAG,OAAO,EAAE,CAAC;AAE3C,MAAM,WAAW,iBAAkB,SAAQ,aAAa;IACpD;;OAEG;IACH,cAAc;IACV,iCAAiC;IACjC,SAAS,EAAE,IAAI;IACf,iCAAiC;IACjC,KAAK,EAAE,MAAM,GACd,yBAAyB,CAAC;CAChC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import type { Address } from '@solana/addresses';
|
|
2
|
+
import type { RpcApiMethods } from '@solana/rpc-spec';
|
|
3
|
+
import type { Commitment, Slot, U64UnsafeBeyond2Pow53Minus1 } from '@solana/rpc-types';
|
|
4
|
+
type GetStakeActivationApiResponse = Readonly<{
|
|
5
|
+
/** Stake active during the epoch */
|
|
6
|
+
active: U64UnsafeBeyond2Pow53Minus1;
|
|
7
|
+
/** Stake inactive during the epoch */
|
|
8
|
+
inactive: U64UnsafeBeyond2Pow53Minus1;
|
|
9
|
+
/** The stake account's activation state */
|
|
10
|
+
state: 'active' | 'inactive' | 'activating' | 'deactivating';
|
|
11
|
+
}>;
|
|
12
|
+
export interface GetStakeActivationApi extends RpcApiMethods {
|
|
13
|
+
/**
|
|
14
|
+
* Returns epoch activation information for a stake account
|
|
15
|
+
*/
|
|
16
|
+
getStakeActivation(address: Address, config?: Readonly<{
|
|
17
|
+
commitment?: Commitment;
|
|
18
|
+
minContextSlot?: Slot;
|
|
19
|
+
/** Defaults to current epoch */
|
|
20
|
+
epoch?: U64UnsafeBeyond2Pow53Minus1;
|
|
21
|
+
}>): GetStakeActivationApiResponse;
|
|
22
|
+
}
|
|
23
|
+
export {};
|
|
24
|
+
//# sourceMappingURL=getStakeActivation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getStakeActivation.d.ts","sourceRoot":"","sources":["../../src/getStakeActivation.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AACjD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACtD,OAAO,KAAK,EAAE,UAAU,EAAE,IAAI,EAAE,2BAA2B,EAAE,MAAM,mBAAmB,CAAC;AAEvF,KAAK,6BAA6B,GAAG,QAAQ,CAAC;IAC1C,oCAAoC;IACpC,MAAM,EAAE,2BAA2B,CAAC;IACpC,sCAAsC;IACtC,QAAQ,EAAE,2BAA2B,CAAC;IACtC,2CAA2C;IAC3C,KAAK,EAAE,QAAQ,GAAG,UAAU,GAAG,YAAY,GAAG,cAAc,CAAC;CAChE,CAAC,CAAC;AAEH,MAAM,WAAW,qBAAsB,SAAQ,aAAa;IACxD;;OAEG;IACH,kBAAkB,CACd,OAAO,EAAE,OAAO,EAChB,MAAM,CAAC,EAAE,QAAQ,CAAC;QACd,UAAU,CAAC,EAAE,UAAU,CAAC;QACxB,cAAc,CAAC,EAAE,IAAI,CAAC;QACtB,gCAAgC;QAChC,KAAK,CAAC,EAAE,2BAA2B,CAAC;KACvC,CAAC,GACH,6BAA6B,CAAC;CACpC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { RpcApiMethods } from '@solana/rpc-spec';
|
|
2
|
+
import type { Commitment, LamportsUnsafeBeyond2Pow53Minus1, SolanaRpcResponse } from '@solana/rpc-types';
|
|
3
|
+
type GetStakeMinimumDelegationApiResponse = SolanaRpcResponse<LamportsUnsafeBeyond2Pow53Minus1>;
|
|
4
|
+
export interface GetStakeMinimumDelegationApi extends RpcApiMethods {
|
|
5
|
+
/**
|
|
6
|
+
* Returns the stake minimum delegation, in lamports.
|
|
7
|
+
*/
|
|
8
|
+
getStakeMinimumDelegation(config?: Readonly<{
|
|
9
|
+
commitment?: Commitment;
|
|
10
|
+
}>): GetStakeMinimumDelegationApiResponse;
|
|
11
|
+
}
|
|
12
|
+
export {};
|
|
13
|
+
//# sourceMappingURL=getStakeMinimumDelegation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getStakeMinimumDelegation.d.ts","sourceRoot":"","sources":["../../src/getStakeMinimumDelegation.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACtD,OAAO,KAAK,EAAE,UAAU,EAAE,gCAAgC,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AAEzG,KAAK,oCAAoC,GAAG,iBAAiB,CAAC,gCAAgC,CAAC,CAAC;AAEhG,MAAM,WAAW,4BAA6B,SAAQ,aAAa;IAC/D;;OAEG;IACH,yBAAyB,CACrB,MAAM,CAAC,EAAE,QAAQ,CAAC;QACd,UAAU,CAAC,EAAE,UAAU,CAAC;KAC3B,CAAC,GACH,oCAAoC,CAAC;CAC3C"}
|