@solana/rpc-api 2.0.0-20241006045741
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 +59 -0
- package/dist/index.browser.cjs +115 -0
- package/dist/index.browser.cjs.map +1 -0
- package/dist/index.browser.mjs +113 -0
- package/dist/index.browser.mjs.map +1 -0
- package/dist/index.native.mjs +113 -0
- package/dist/index.native.mjs.map +1 -0
- package/dist/index.node.cjs +115 -0
- package/dist/index.node.cjs.map +1 -0
- package/dist/index.node.mjs +113 -0
- package/dist/index.node.mjs.map +1 -0
- package/dist/types/getAccountInfo.d.ts +30 -0
- package/dist/types/getAccountInfo.d.ts.map +1 -0
- package/dist/types/getBalance.d.ts +14 -0
- package/dist/types/getBalance.d.ts.map +1 -0
- package/dist/types/getBlock.d.ts +172 -0
- package/dist/types/getBlock.d.ts.map +1 -0
- package/dist/types/getBlockCommitment.d.ts +14 -0
- package/dist/types/getBlockCommitment.d.ts.map +1 -0
- package/dist/types/getBlockHeight.d.ts +13 -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 +13 -0
- package/dist/types/getBlockTime.d.ts.map +1 -0
- package/dist/types/getBlocks.d.ts +12 -0
- package/dist/types/getBlocks.d.ts.map +1 -0
- package/dist/types/getBlocksWithLimit.d.ts +13 -0
- package/dist/types/getBlocksWithLimit.d.ts.map +1 -0
- package/dist/types/getClusterNodes.d.ts +47 -0
- package/dist/types/getClusterNodes.d.ts.map +1 -0
- package/dist/types/getEpochInfo.d.ts +26 -0
- package/dist/types/getEpochInfo.d.ts.map +1 -0
- package/dist/types/getEpochSchedule.d.ts +22 -0
- package/dist/types/getEpochSchedule.d.ts.map +1 -0
- package/dist/types/getFeeForMessage.d.ts +15 -0
- package/dist/types/getFeeForMessage.d.ts.map +1 -0
- package/dist/types/getFirstAvailableBlock.d.ts +11 -0
- package/dist/types/getFirstAvailableBlock.d.ts.map +1 -0
- package/dist/types/getGenesisHash.d.ts +10 -0
- package/dist/types/getGenesisHash.d.ts.map +1 -0
- package/dist/types/getHealth.d.ts +9 -0
- package/dist/types/getHealth.d.ts.map +1 -0
- package/dist/types/getHighestSnapshotSlot.d.ts +17 -0
- package/dist/types/getHighestSnapshotSlot.d.ts.map +1 -0
- package/dist/types/getIdentity.d.ts +12 -0
- package/dist/types/getIdentity.d.ts.map +1 -0
- package/dist/types/getInflationGovernor.d.ts +27 -0
- package/dist/types/getInflationGovernor.d.ts.map +1 -0
- package/dist/types/getInflationRate.d.ts +19 -0
- package/dist/types/getInflationRate.d.ts.map +1 -0
- package/dist/types/getInflationReward.d.ts +23 -0
- package/dist/types/getInflationReward.d.ts.map +1 -0
- package/dist/types/getLargestAccounts.d.ts +22 -0
- package/dist/types/getLargestAccounts.d.ts.map +1 -0
- package/dist/types/getLatestBlockhash.d.ts +18 -0
- package/dist/types/getLatestBlockhash.d.ts.map +1 -0
- package/dist/types/getLeaderSchedule.d.ts +50 -0
- package/dist/types/getLeaderSchedule.d.ts.map +1 -0
- package/dist/types/getMaxRetransmitSlot.d.ts +11 -0
- package/dist/types/getMaxRetransmitSlot.d.ts.map +1 -0
- package/dist/types/getMaxShredInsertSlot.d.ts +11 -0
- package/dist/types/getMaxShredInsertSlot.d.ts.map +1 -0
- package/dist/types/getMinimumBalanceForRentExemption.d.ts +12 -0
- package/dist/types/getMinimumBalanceForRentExemption.d.ts.map +1 -0
- package/dist/types/getMultipleAccounts.d.ts +43 -0
- package/dist/types/getMultipleAccounts.d.ts.map +1 -0
- package/dist/types/getProgramAccounts.d.ts +59 -0
- package/dist/types/getProgramAccounts.d.ts.map +1 -0
- package/dist/types/getRecentPerformanceSamples.d.ts +24 -0
- package/dist/types/getRecentPerformanceSamples.d.ts.map +1 -0
- package/dist/types/getRecentPrioritizationFees.d.ts +30 -0
- package/dist/types/getRecentPrioritizationFees.d.ts.map +1 -0
- package/dist/types/getSignatureStatuses.d.ts +56 -0
- package/dist/types/getSignatureStatuses.d.ts.map +1 -0
- package/dist/types/getSignaturesForAddress.d.ts +39 -0
- package/dist/types/getSignaturesForAddress.d.ts.map +1 -0
- package/dist/types/getSlot.d.ts +13 -0
- package/dist/types/getSlot.d.ts.map +1 -0
- package/dist/types/getSlotLeader.d.ts +14 -0
- package/dist/types/getSlotLeader.d.ts.map +1 -0
- package/dist/types/getSlotLeaders.d.ts +16 -0
- package/dist/types/getSlotLeaders.d.ts.map +1 -0
- package/dist/types/getStakeActivation.d.ts +25 -0
- package/dist/types/getStakeActivation.d.ts.map +1 -0
- package/dist/types/getStakeMinimumDelegation.d.ts +12 -0
- package/dist/types/getStakeMinimumDelegation.d.ts.map +1 -0
- package/dist/types/getSupply.d.ts +37 -0
- package/dist/types/getSupply.d.ts.map +1 -0
- package/dist/types/getTokenAccountBalance.d.ts +15 -0
- package/dist/types/getTokenAccountBalance.d.ts.map +1 -0
- package/dist/types/getTokenAccountsByDelegate.d.ts +54 -0
- package/dist/types/getTokenAccountsByDelegate.d.ts.map +1 -0
- package/dist/types/getTokenAccountsByOwner.d.ts +54 -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 +15 -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 +13 -0
- package/dist/types/getTransactionCount.d.ts.map +1 -0
- package/dist/types/getVersion.d.ts +14 -0
- package/dist/types/getVersion.d.ts.map +1 -0
- package/dist/types/getVoteAccounts.d.ts +43 -0
- package/dist/types/getVoteAccounts.d.ts.map +1 -0
- package/dist/types/index.d.ts +65 -0
- package/dist/types/index.d.ts.map +1 -0
- package/dist/types/isBlockhashValid.d.ts +17 -0
- package/dist/types/isBlockhashValid.d.ts.map +1 -0
- package/dist/types/minimumLedgerSlot.d.ts +11 -0
- package/dist/types/minimumLedgerSlot.d.ts.map +1 -0
- package/dist/types/requestAirdrop.d.ts +15 -0
- package/dist/types/requestAirdrop.d.ts.map +1 -0
- package/dist/types/sendTransaction.d.ts +48 -0
- package/dist/types/sendTransaction.d.ts.map +1 -0
- package/dist/types/simulateTransaction.d.ts +143 -0
- package/dist/types/simulateTransaction.d.ts.map +1 -0
- package/package.json +96 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getBlockProduction.d.ts","sourceRoot":"","sources":["../../src/getBlockProduction.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AACjD,OAAO,KAAK,EAAE,UAAU,EAAE,IAAI,EAAE,iBAAiB,EAAE,2BAA2B,EAAE,MAAM,mBAAmB,CAAC;AAE1G,KAAK,mBAAmB,GAAG,2BAA2B,CAAC;AACvD,KAAK,sBAAsB,GAAG,2BAA2B,CAAC;AAE1D,KAAK,SAAS,GAAG,QAAQ,CAAC;IACtB,SAAS,EAAE,IAAI,CAAC;IAChB,QAAQ,EAAE,IAAI,CAAC;CAClB,CAAC,CAAC;AAEH,KAAK,+BAA+B,GAAG,QAAQ,CAAC;IAC5C,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB,KAAK,CAAC,EAAE,SAAS,CAAC;CACrB,CAAC,CAAC;AAEH,KAAK,iCAAiC,CAAC,SAAS,SAAS,MAAM,IAAI,QAAQ,CAAC;IACxE,KAAK,EAAE,QAAQ,CAAC;QACZ,UAAU,EAAE,QAAQ,CAAC;aAAG,QAAQ,IAAI,SAAS,CAAC,CAAC,EAAE,CAAC,mBAAmB,EAAE,sBAAsB,CAAC;SAAE,CAAC,CAAC;KACrG,CAAC,CAAC;CACN,CAAC,CAAC;AAEH,KAAK,gCAAgC,GAAG,QAAQ,CAAC;IAC7C,KAAK,EAAE,QAAQ,CAAC;QACZ,UAAU,EAAE,MAAM,CAAC,OAAO,EAAE,CAAC,mBAAmB,EAAE,sBAAsB,CAAC,CAAC,CAAC;KAC9E,CAAC,CAAC;CACN,CAAC,CAAC;AAEH,KAAK,6BAA6B,CAAC,CAAC,IAAI,QAAQ,CAAC;IAC7C,UAAU,EAAE,CAAC,CAAC;IACd,KAAK,EAAE,SAAS,CAAC;CACpB,CAAC,CAAC;AAEH,MAAM,MAAM,qBAAqB,GAAG;IAChC;;OAEG;IACH,kBAAkB,CAAC,SAAS,SAAS,OAAO,EACxC,MAAM,EAAE,+BAA+B,GACnC,QAAQ,CAAC;QACL,QAAQ,EAAE,SAAS,CAAC;KACvB,CAAC,GACP,iBAAiB,CAAC,6BAA6B,CAAC,iCAAiC,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC;IAClG,kBAAkB,CACd,MAAM,CAAC,EAAE,+BAA+B,GACzC,iBAAiB,CAAC,6BAA6B,CAAC,gCAAgC,CAAC,CAAC,CAAC;CACzF,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { Slot, UnixTimestampUnsafeBeyond2Pow53Minus1 } from '@solana/rpc-types';
|
|
2
|
+
/** Estimated production time, as Unix timestamp (seconds since the Unix epoch) */
|
|
3
|
+
type GetBlockTimeApiResponse = UnixTimestampUnsafeBeyond2Pow53Minus1;
|
|
4
|
+
export type GetBlockTimeApi = {
|
|
5
|
+
/**
|
|
6
|
+
* Returns the estimated production time of a block.
|
|
7
|
+
*/
|
|
8
|
+
getBlockTime(
|
|
9
|
+
/** block number, identified by Slot */
|
|
10
|
+
blockNumber: Slot): GetBlockTimeApiResponse;
|
|
11
|
+
};
|
|
12
|
+
export {};
|
|
13
|
+
//# sourceMappingURL=getBlockTime.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getBlockTime.d.ts","sourceRoot":"","sources":["../../src/getBlockTime.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,qCAAqC,EAAE,MAAM,mBAAmB,CAAC;AAErF,kFAAkF;AAClF,KAAK,uBAAuB,GAAG,qCAAqC,CAAC;AAErE,MAAM,MAAM,eAAe,GAAG;IAC1B;;OAEG;IACH,YAAY;IACR,uCAAuC;IACvC,WAAW,EAAE,IAAI,GAClB,uBAAuB,CAAC;CAC9B,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { Commitment, Slot } from '@solana/rpc-types';
|
|
2
|
+
type GetBlocksApiResponse = Slot[];
|
|
3
|
+
export type GetBlocksApi = {
|
|
4
|
+
/**
|
|
5
|
+
* Returns a list of confirmed blocks between two slots
|
|
6
|
+
*/
|
|
7
|
+
getBlocks(startSlot: Slot, endSlotInclusive?: Slot, config?: Readonly<{
|
|
8
|
+
commitment?: Exclude<Commitment, 'processed'>;
|
|
9
|
+
}>): GetBlocksApiResponse;
|
|
10
|
+
};
|
|
11
|
+
export {};
|
|
12
|
+
//# sourceMappingURL=getBlocks.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getBlocks.d.ts","sourceRoot":"","sources":["../../src/getBlocks.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAC;AAE1D,KAAK,oBAAoB,GAAG,IAAI,EAAE,CAAC;AAEnC,MAAM,MAAM,YAAY,GAAG;IACvB;;OAEG;IACH,SAAS,CACL,SAAS,EAAE,IAAI,EACf,gBAAgB,CAAC,EAAE,IAAI,EACvB,MAAM,CAAC,EAAE,QAAQ,CAAC;QAEd,UAAU,CAAC,EAAE,OAAO,CAAC,UAAU,EAAE,WAAW,CAAC,CAAC;KACjD,CAAC,GACH,oBAAoB,CAAC;CAC3B,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { Commitment, Slot } from '@solana/rpc-types';
|
|
2
|
+
type GetBlocksWithLimitApiResponse = Slot[];
|
|
3
|
+
export type GetBlocksWithLimitApi = {
|
|
4
|
+
/**
|
|
5
|
+
* Returns a list of confirmed blocks starting at the given slot
|
|
6
|
+
* for up to `limit` blocks
|
|
7
|
+
*/
|
|
8
|
+
getBlocksWithLimit(startSlot: Slot, limit: number, config?: Readonly<{
|
|
9
|
+
commitment?: Exclude<Commitment, 'processed'>;
|
|
10
|
+
}>): GetBlocksWithLimitApiResponse;
|
|
11
|
+
};
|
|
12
|
+
export {};
|
|
13
|
+
//# sourceMappingURL=getBlocksWithLimit.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getBlocksWithLimit.d.ts","sourceRoot":"","sources":["../../src/getBlocksWithLimit.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAC;AAE1D,KAAK,6BAA6B,GAAG,IAAI,EAAE,CAAC;AAE5C,MAAM,MAAM,qBAAqB,GAAG;IAChC;;;OAGG;IACH,kBAAkB,CACd,SAAS,EAAE,IAAI,EAGf,KAAK,EAAE,MAAM,EACb,MAAM,CAAC,EAAE,QAAQ,CAAC;QAEd,UAAU,CAAC,EAAE,OAAO,CAAC,UAAU,EAAE,WAAW,CAAC,CAAC;KACjD,CAAC,GACH,6BAA6B,CAAC;CACpC,CAAC"}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { Address } from '@solana/addresses';
|
|
2
|
+
type ClusterNode = Readonly<{
|
|
3
|
+
/** The unique identifier of the node's feature set */
|
|
4
|
+
featureSet: number | null;
|
|
5
|
+
/** Gossip network address for the node */
|
|
6
|
+
gossip: string | null;
|
|
7
|
+
/** Node public key, as base-58 encoded string */
|
|
8
|
+
pubkey: Address;
|
|
9
|
+
/** WebSocket PubSub network address for the node */
|
|
10
|
+
pubsub: string | null;
|
|
11
|
+
/**
|
|
12
|
+
* JSON RPC network address for the node,
|
|
13
|
+
* or `null` if the JSON RPC service is not enabled
|
|
14
|
+
*/
|
|
15
|
+
rpc: string | null;
|
|
16
|
+
/** Server repair UDP network address for the node */
|
|
17
|
+
serveRepair: string | null;
|
|
18
|
+
/** The shred version the node has been configured to use */
|
|
19
|
+
shredVersion: number | null;
|
|
20
|
+
/** TPU network address for the node */
|
|
21
|
+
tpu: string | null;
|
|
22
|
+
/** Tpu UDP forwards network address for the node */
|
|
23
|
+
tpuForwards: string | null;
|
|
24
|
+
/** Tpu QUIC forwards network address for the node */
|
|
25
|
+
tpuForwardsQuic: string | null;
|
|
26
|
+
/** Tpu QUIC network address for the node */
|
|
27
|
+
tpuQuic: string | null;
|
|
28
|
+
/** Tpu UDP vote network address for the node */
|
|
29
|
+
tpuVote: string | null;
|
|
30
|
+
/** Tvu UDP network address for the node */
|
|
31
|
+
tvu: string | null;
|
|
32
|
+
/**
|
|
33
|
+
* The software version of the node,
|
|
34
|
+
* or `null` if the version information is not available
|
|
35
|
+
*/
|
|
36
|
+
version: string | null;
|
|
37
|
+
}>;
|
|
38
|
+
type GetClusterNodesApiResponse = readonly ClusterNode[];
|
|
39
|
+
export type GetClusterNodesApi = {
|
|
40
|
+
/**
|
|
41
|
+
* Returns information about all the nodes participating in the cluster
|
|
42
|
+
* Note that the optional NO_CONFIG object is ignored. See https://github.com/solana-labs/solana-web3.js/issues/1389
|
|
43
|
+
*/
|
|
44
|
+
getClusterNodes(NO_CONFIG?: Record<string, never>): GetClusterNodesApiResponse;
|
|
45
|
+
};
|
|
46
|
+
export {};
|
|
47
|
+
//# sourceMappingURL=getClusterNodes.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getClusterNodes.d.ts","sourceRoot":"","sources":["../../src/getClusterNodes.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAE5C,KAAK,WAAW,GAAG,QAAQ,CAAC;IACxB,sDAAsD;IACtD,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,0CAA0C;IAC1C,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,iDAAiD;IACjD,MAAM,EAAE,OAAO,CAAC;IAChB,oDAAoD;IACpD,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB;;;OAGG;IACH,GAAG,EAAE,MAAM,GAAG,IAAI,CAAC;IACnB,qDAAqD;IACrD,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,4DAA4D;IAC5D,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,uCAAuC;IACvC,GAAG,EAAE,MAAM,GAAG,IAAI,CAAC;IACnB,oDAAoD;IACpD,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,qDAAqD;IACrD,eAAe,EAAE,MAAM,GAAG,IAAI,CAAC;IAC/B,4CAA4C;IAC5C,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;IACvB,gDAAgD;IAChD,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;IACvB,2CAA2C;IAC3C,GAAG,EAAE,MAAM,GAAG,IAAI,CAAC;IACnB;;;OAGG;IACH,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;CAC1B,CAAC,CAAC;AAEH,KAAK,0BAA0B,GAAG,SAAS,WAAW,EAAE,CAAC;AAEzD,MAAM,MAAM,kBAAkB,GAAG;IAC7B;;;OAGG;IACH,eAAe,CAEX,SAAS,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,GAClC,0BAA0B,CAAC;CACjC,CAAC"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import type { Commitment, Slot, U64UnsafeBeyond2Pow53Minus1 } from '@solana/rpc-types';
|
|
2
|
+
type GetEpochInfoApiResponse = Readonly<{
|
|
3
|
+
/** the current slot */
|
|
4
|
+
absoluteSlot: Slot;
|
|
5
|
+
/** the current block height */
|
|
6
|
+
blockHeight: U64UnsafeBeyond2Pow53Minus1;
|
|
7
|
+
/** the current epoch */
|
|
8
|
+
epoch: U64UnsafeBeyond2Pow53Minus1;
|
|
9
|
+
/** the current slot relative to the start of the current epoch */
|
|
10
|
+
slotIndex: U64UnsafeBeyond2Pow53Minus1;
|
|
11
|
+
/** the number of slots in this epoch */
|
|
12
|
+
slotsInEpoch: U64UnsafeBeyond2Pow53Minus1;
|
|
13
|
+
/** total number of transactions processed without error since genesis */
|
|
14
|
+
transactionCount: U64UnsafeBeyond2Pow53Minus1 | null;
|
|
15
|
+
}>;
|
|
16
|
+
export type GetEpochInfoApi = {
|
|
17
|
+
/**
|
|
18
|
+
* Returns the balance of the account of provided Pubkey
|
|
19
|
+
*/
|
|
20
|
+
getEpochInfo(config?: Readonly<{
|
|
21
|
+
commitment?: Commitment;
|
|
22
|
+
minContextSlot?: Slot;
|
|
23
|
+
}>): GetEpochInfoApiResponse;
|
|
24
|
+
};
|
|
25
|
+
export {};
|
|
26
|
+
//# sourceMappingURL=getEpochInfo.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getEpochInfo.d.ts","sourceRoot":"","sources":["../../src/getEpochInfo.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,IAAI,EAAE,2BAA2B,EAAE,MAAM,mBAAmB,CAAC;AAEvF,KAAK,uBAAuB,GAAG,QAAQ,CAAC;IACpC,uBAAuB;IACvB,YAAY,EAAE,IAAI,CAAC;IACnB,+BAA+B;IAC/B,WAAW,EAAE,2BAA2B,CAAC;IACzC,wBAAwB;IACxB,KAAK,EAAE,2BAA2B,CAAC;IACnC,kEAAkE;IAClE,SAAS,EAAE,2BAA2B,CAAC;IACvC,wCAAwC;IACxC,YAAY,EAAE,2BAA2B,CAAC;IAC1C,yEAAyE;IACzE,gBAAgB,EAAE,2BAA2B,GAAG,IAAI,CAAC;CACxD,CAAC,CAAC;AAEH,MAAM,MAAM,eAAe,GAAG;IAC1B;;OAEG;IACH,YAAY,CACR,MAAM,CAAC,EAAE,QAAQ,CAAC;QACd,UAAU,CAAC,EAAE,UAAU,CAAC;QACxB,cAAc,CAAC,EAAE,IAAI,CAAC;KACzB,CAAC,GACH,uBAAuB,CAAC;CAC9B,CAAC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type { U64UnsafeBeyond2Pow53Minus1 } from '@solana/rpc-types';
|
|
2
|
+
type GetEpochScheduleApiResponse = Readonly<{
|
|
3
|
+
/** first normal-length epoch, log2(slotsPerEpoch) - log2(MINIMUM_SLOTS_PER_EPOCH) */
|
|
4
|
+
firstNormalEpoch: U64UnsafeBeyond2Pow53Minus1;
|
|
5
|
+
/** MINIMUM_SLOTS_PER_EPOCH * (2^(firstNormalEpoch) - 1) */
|
|
6
|
+
firstNormalSlot: U64UnsafeBeyond2Pow53Minus1;
|
|
7
|
+
/** the number of slots before beginning of an epoch to calculate a leader schedule for that epoch */
|
|
8
|
+
leaderScheduleSlotOffset: U64UnsafeBeyond2Pow53Minus1;
|
|
9
|
+
/** the maximum number of slots in each epoch */
|
|
10
|
+
slotsPerEpoch: U64UnsafeBeyond2Pow53Minus1;
|
|
11
|
+
/** whether epochs start short and grow */
|
|
12
|
+
warmup: boolean;
|
|
13
|
+
}>;
|
|
14
|
+
export type GetEpochScheduleApi = {
|
|
15
|
+
/**
|
|
16
|
+
* Returns the epoch schedule information from this cluster's genesis config
|
|
17
|
+
* Note that the optional NO_CONFIG object is ignored. See https://github.com/solana-labs/solana-web3.js/issues/1389
|
|
18
|
+
*/
|
|
19
|
+
getEpochSchedule(NO_CONFIG?: Record<string, never>): GetEpochScheduleApiResponse;
|
|
20
|
+
};
|
|
21
|
+
export {};
|
|
22
|
+
//# sourceMappingURL=getEpochSchedule.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getEpochSchedule.d.ts","sourceRoot":"","sources":["../../src/getEpochSchedule.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,mBAAmB,CAAC;AAErE,KAAK,2BAA2B,GAAG,QAAQ,CAAC;IACxC,qFAAqF;IACrF,gBAAgB,EAAE,2BAA2B,CAAC;IAC9C,2DAA2D;IAC3D,eAAe,EAAE,2BAA2B,CAAC;IAC7C,qGAAqG;IACrG,wBAAwB,EAAE,2BAA2B,CAAC;IACtD,gDAAgD;IAChD,aAAa,EAAE,2BAA2B,CAAC;IAC3C,0CAA0C;IAC1C,MAAM,EAAE,OAAO,CAAC;CACnB,CAAC,CAAC;AAEH,MAAM,MAAM,mBAAmB,GAAG;IAC9B;;;OAGG;IACH,gBAAgB,CAEZ,SAAS,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,GAClC,2BAA2B,CAAC;CAClC,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { Commitment, LamportsUnsafeBeyond2Pow53Minus1, Slot, SolanaRpcResponse } from '@solana/rpc-types';
|
|
2
|
+
import type { TransactionMessageBytesBase64 } from '@solana/transactions';
|
|
3
|
+
/** Fee corresponding to the message at the specified blockhash */
|
|
4
|
+
type GetFeeForMessageApiResponse = LamportsUnsafeBeyond2Pow53Minus1 | null;
|
|
5
|
+
export type GetFeeForMessageApi = {
|
|
6
|
+
/**
|
|
7
|
+
* Returns the fee the network will charge for a particular Message
|
|
8
|
+
*/
|
|
9
|
+
getFeeForMessage(message: TransactionMessageBytesBase64, config?: Readonly<{
|
|
10
|
+
commitment?: Commitment;
|
|
11
|
+
minContextSlot?: Slot;
|
|
12
|
+
}>): SolanaRpcResponse<GetFeeForMessageApiResponse>;
|
|
13
|
+
};
|
|
14
|
+
export {};
|
|
15
|
+
//# sourceMappingURL=getFeeForMessage.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getFeeForMessage.d.ts","sourceRoot":"","sources":["../../src/getFeeForMessage.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,gCAAgC,EAAE,IAAI,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AAC/G,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,sBAAsB,CAAC;AAE1E,kEAAkE;AAClE,KAAK,2BAA2B,GAAG,gCAAgC,GAAG,IAAI,CAAC;AAE3E,MAAM,MAAM,mBAAmB,GAAG;IAC9B;;OAEG;IACH,gBAAgB,CACZ,OAAO,EAAE,6BAA6B,EACtC,MAAM,CAAC,EAAE,QAAQ,CAAC;QACd,UAAU,CAAC,EAAE,UAAU,CAAC;QACxB,cAAc,CAAC,EAAE,IAAI,CAAC;KACzB,CAAC,GACH,iBAAiB,CAAC,2BAA2B,CAAC,CAAC;CACrD,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Slot } from '@solana/rpc-types';
|
|
2
|
+
type GetFirstAvailableBlockApiResponse = Slot;
|
|
3
|
+
export type GetFirstAvailableBlockApi = {
|
|
4
|
+
/**
|
|
5
|
+
* Returns the slot of the lowest confirmed block that has not been purged from the ledger
|
|
6
|
+
* Note that the optional NO_CONFIG object is ignored. See https://github.com/solana-labs/solana-web3.js/issues/1389
|
|
7
|
+
*/
|
|
8
|
+
getFirstAvailableBlock(NO_CONFIG?: Record<string, never>): GetFirstAvailableBlockApiResponse;
|
|
9
|
+
};
|
|
10
|
+
export {};
|
|
11
|
+
//# sourceMappingURL=getFirstAvailableBlock.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getFirstAvailableBlock.d.ts","sourceRoot":"","sources":["../../src/getFirstAvailableBlock.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAC;AAE9C,KAAK,iCAAiC,GAAG,IAAI,CAAC;AAE9C,MAAM,MAAM,yBAAyB,GAAG;IACpC;;;OAGG;IACH,sBAAsB,CAElB,SAAS,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,GAClC,iCAAiC,CAAC;CACxC,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { Blockhash } from '@solana/rpc-types';
|
|
2
|
+
type GetGenesisHashApiResponse = Blockhash;
|
|
3
|
+
export type GetGenesisHashApi = {
|
|
4
|
+
/**
|
|
5
|
+
* Returns the genesis hash
|
|
6
|
+
*/
|
|
7
|
+
getGenesisHash(NO_CONFIG?: Record<string, never>): GetGenesisHashApiResponse;
|
|
8
|
+
};
|
|
9
|
+
export {};
|
|
10
|
+
//# sourceMappingURL=getGenesisHash.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getGenesisHash.d.ts","sourceRoot":"","sources":["../../src/getGenesisHash.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAEnD,KAAK,yBAAyB,GAAG,SAAS,CAAC;AAE3C,MAAM,MAAM,iBAAiB,GAAG;IAC5B;;OAEG;IACH,cAAc,CAEV,SAAS,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,GAClC,yBAAyB,CAAC;CAChC,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
type GetHealthApiResponse = 'ok';
|
|
2
|
+
export type GetHealthApi = {
|
|
3
|
+
/**
|
|
4
|
+
* Returns the health status of the node ("ok" if healthy).
|
|
5
|
+
*/
|
|
6
|
+
getHealth(NO_CONFIG?: Record<string, never>): GetHealthApiResponse;
|
|
7
|
+
};
|
|
8
|
+
export {};
|
|
9
|
+
//# sourceMappingURL=getHealth.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getHealth.d.ts","sourceRoot":"","sources":["../../src/getHealth.ts"],"names":[],"mappings":"AAAA,KAAK,oBAAoB,GAAG,IAAI,CAAC;AAEjC,MAAM,MAAM,YAAY,GAAG;IACvB;;OAEG;IACH,SAAS,CAEL,SAAS,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,GAClC,oBAAoB,CAAC;CAC3B,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { Slot } from '@solana/rpc-types';
|
|
2
|
+
type GetHighestSnapshotSlotApiResponse = Readonly<{
|
|
3
|
+
full: Slot;
|
|
4
|
+
incremental: Slot | null;
|
|
5
|
+
}>;
|
|
6
|
+
export type GetHighestSnapshotSlotApi = {
|
|
7
|
+
/**
|
|
8
|
+
* Returns the highest slot information that the node has snapshots for.
|
|
9
|
+
*
|
|
10
|
+
* This will find the highest full snapshot slot, and the highest
|
|
11
|
+
* incremental snapshot slot based on the full snapshot slot, if there
|
|
12
|
+
* is one.
|
|
13
|
+
*/
|
|
14
|
+
getHighestSnapshotSlot(NO_CONFIG?: Record<string, never>): GetHighestSnapshotSlotApiResponse;
|
|
15
|
+
};
|
|
16
|
+
export {};
|
|
17
|
+
//# sourceMappingURL=getHighestSnapshotSlot.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getHighestSnapshotSlot.d.ts","sourceRoot":"","sources":["../../src/getHighestSnapshotSlot.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAC;AAE9C,KAAK,iCAAiC,GAAG,QAAQ,CAAC;IAC9C,IAAI,EAAE,IAAI,CAAC;IACX,WAAW,EAAE,IAAI,GAAG,IAAI,CAAC;CAC5B,CAAC,CAAC;AAEH,MAAM,MAAM,yBAAyB,GAAG;IACpC;;;;;;OAMG;IACH,sBAAsB,CAElB,SAAS,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,GAClC,iCAAiC,CAAC;CACxC,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { Address } from '@solana/addresses';
|
|
2
|
+
type GetIdentityApiResponse = Readonly<{
|
|
3
|
+
identity: Address;
|
|
4
|
+
}>;
|
|
5
|
+
export type GetIdentityApi = {
|
|
6
|
+
/**
|
|
7
|
+
* Returns the identity pubkey for the current node
|
|
8
|
+
*/
|
|
9
|
+
getIdentity(NO_CONFIG?: Record<string, never>): GetIdentityApiResponse;
|
|
10
|
+
};
|
|
11
|
+
export {};
|
|
12
|
+
//# sourceMappingURL=getIdentity.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getIdentity.d.ts","sourceRoot":"","sources":["../../src/getIdentity.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAEjD,KAAK,sBAAsB,GAAG,QAAQ,CAAC;IACnC,QAAQ,EAAE,OAAO,CAAC;CACrB,CAAC,CAAC;AAEH,MAAM,MAAM,cAAc,GAAG;IACzB;;OAEG;IACH,WAAW,CAEP,SAAS,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,GAClC,sBAAsB,CAAC;CAC7B,CAAC"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import type { Commitment, F64UnsafeSeeDocumentation } from '@solana/rpc-types';
|
|
2
|
+
type GetInflationGovernorApiResponse = Readonly<{
|
|
3
|
+
/** Percentage of total inflation allocated to the foundation */
|
|
4
|
+
foundation: F64UnsafeSeeDocumentation;
|
|
5
|
+
/** Duration of foundation pool inflation in years */
|
|
6
|
+
foundationTerm: F64UnsafeSeeDocumentation;
|
|
7
|
+
/** The initial inflation percentage from time 0 */
|
|
8
|
+
initial: F64UnsafeSeeDocumentation;
|
|
9
|
+
/**
|
|
10
|
+
* Rate per year at which inflation is lowered.
|
|
11
|
+
* (Rate reduction is derived using the target
|
|
12
|
+
* slot time in genesis config)
|
|
13
|
+
*/
|
|
14
|
+
taper: F64UnsafeSeeDocumentation;
|
|
15
|
+
/** Terminal inflation percentage */
|
|
16
|
+
terminal: F64UnsafeSeeDocumentation;
|
|
17
|
+
}>;
|
|
18
|
+
export type GetInflationGovernorApi = {
|
|
19
|
+
/**
|
|
20
|
+
* Returns the current inflation governor
|
|
21
|
+
*/
|
|
22
|
+
getInflationGovernor(config?: Readonly<{
|
|
23
|
+
commitment?: Commitment;
|
|
24
|
+
}>): GetInflationGovernorApiResponse;
|
|
25
|
+
};
|
|
26
|
+
export {};
|
|
27
|
+
//# sourceMappingURL=getInflationGovernor.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getInflationGovernor.d.ts","sourceRoot":"","sources":["../../src/getInflationGovernor.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,yBAAyB,EAAE,MAAM,mBAAmB,CAAC;AAE/E,KAAK,+BAA+B,GAAG,QAAQ,CAAC;IAC5C,gEAAgE;IAChE,UAAU,EAAE,yBAAyB,CAAC;IACtC,qDAAqD;IACrD,cAAc,EAAE,yBAAyB,CAAC;IAC1C,mDAAmD;IACnD,OAAO,EAAE,yBAAyB,CAAC;IACnC;;;;OAIG;IACH,KAAK,EAAE,yBAAyB,CAAC;IACjC,oCAAoC;IACpC,QAAQ,EAAE,yBAAyB,CAAC;CACvC,CAAC,CAAC;AAEH,MAAM,MAAM,uBAAuB,GAAG;IAClC;;OAEG;IACH,oBAAoB,CAChB,MAAM,CAAC,EAAE,QAAQ,CAAC;QAEd,UAAU,CAAC,EAAE,UAAU,CAAC;KAC3B,CAAC,GACH,+BAA+B,CAAC;CACtC,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { F64UnsafeSeeDocumentation, U64UnsafeBeyond2Pow53Minus1 } from '@solana/rpc-types';
|
|
2
|
+
type GetInflationRateApiResponse = Readonly<{
|
|
3
|
+
/** Epoch for which these values are valid */
|
|
4
|
+
epoch: U64UnsafeBeyond2Pow53Minus1;
|
|
5
|
+
/** Inflation allocated to the foundation */
|
|
6
|
+
foundation: F64UnsafeSeeDocumentation;
|
|
7
|
+
/** Total inflation */
|
|
8
|
+
total: F64UnsafeSeeDocumentation;
|
|
9
|
+
/** Inflation allocated to validators */
|
|
10
|
+
validator: F64UnsafeSeeDocumentation;
|
|
11
|
+
}>;
|
|
12
|
+
export type GetInflationRateApi = {
|
|
13
|
+
/**
|
|
14
|
+
* Returns the current block height of the node
|
|
15
|
+
*/
|
|
16
|
+
getInflationRate(NO_CONFIG?: Record<string, never>): GetInflationRateApiResponse;
|
|
17
|
+
};
|
|
18
|
+
export {};
|
|
19
|
+
//# sourceMappingURL=getInflationRate.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getInflationRate.d.ts","sourceRoot":"","sources":["../../src/getInflationRate.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,yBAAyB,EAAE,2BAA2B,EAAE,MAAM,mBAAmB,CAAC;AAEhG,KAAK,2BAA2B,GAAG,QAAQ,CAAC;IACxC,6CAA6C;IAC7C,KAAK,EAAE,2BAA2B,CAAC;IACnC,4CAA4C;IAC5C,UAAU,EAAE,yBAAyB,CAAC;IACtC,sBAAsB;IACtB,KAAK,EAAE,yBAAyB,CAAC;IACjC,wCAAwC;IACxC,SAAS,EAAE,yBAAyB,CAAC;CACxC,CAAC,CAAC;AAEH,MAAM,MAAM,mBAAmB,GAAG;IAC9B;;OAEG;IACH,gBAAgB,CAEZ,SAAS,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,GAClC,2BAA2B,CAAC;CAClC,CAAC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type { Address } from '@solana/addresses';
|
|
2
|
+
import type { Commitment, LamportsUnsafeBeyond2Pow53Minus1, Slot, U64UnsafeBeyond2Pow53Minus1 } from '@solana/rpc-types';
|
|
3
|
+
type GetInflationRewardApiConfig = Readonly<{
|
|
4
|
+
commitment?: Commitment;
|
|
5
|
+
epoch?: U64UnsafeBeyond2Pow53Minus1;
|
|
6
|
+
minContextSlot?: Slot;
|
|
7
|
+
}>;
|
|
8
|
+
type InflationReward = Readonly<{
|
|
9
|
+
amount: LamportsUnsafeBeyond2Pow53Minus1;
|
|
10
|
+
commission: number;
|
|
11
|
+
effectiveSlot: Slot;
|
|
12
|
+
epoch: U64UnsafeBeyond2Pow53Minus1;
|
|
13
|
+
postBalance: LamportsUnsafeBeyond2Pow53Minus1;
|
|
14
|
+
}>;
|
|
15
|
+
type GetInflationRewardApiResponse = readonly (InflationReward | null)[];
|
|
16
|
+
export type GetInflationRewardApi = {
|
|
17
|
+
/**
|
|
18
|
+
* Returns the current block height of the node
|
|
19
|
+
*/
|
|
20
|
+
getInflationReward(addresses: Address[], config?: GetInflationRewardApiConfig): GetInflationRewardApiResponse;
|
|
21
|
+
};
|
|
22
|
+
export {};
|
|
23
|
+
//# 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,EACR,UAAU,EACV,gCAAgC,EAChC,IAAI,EACJ,2BAA2B,EAC9B,MAAM,mBAAmB,CAAC;AAE3B,KAAK,2BAA2B,GAAG,QAAQ,CAAC;IAExC,UAAU,CAAC,EAAE,UAAU,CAAC;IAGxB,KAAK,CAAC,EAAE,2BAA2B,CAAC;IAEpC,cAAc,CAAC,EAAE,IAAI,CAAC;CACzB,CAAC,CAAC;AAEH,KAAK,eAAe,GAAG,QAAQ,CAAC;IAE5B,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,KAAK,6BAA6B,GAAG,SAAS,CAAC,eAAe,GAAG,IAAI,CAAC,EAAE,CAAC;AAEzE,MAAM,MAAM,qBAAqB,GAAG;IAChC;;OAEG;IACH,kBAAkB,CAAC,SAAS,EAAE,OAAO,EAAE,EAAE,MAAM,CAAC,EAAE,2BAA2B,GAAG,6BAA6B,CAAC;CACjH,CAAC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type { Address } from '@solana/addresses';
|
|
2
|
+
import type { Commitment, LamportsUnsafeBeyond2Pow53Minus1, SolanaRpcResponse } from '@solana/rpc-types';
|
|
3
|
+
type GetLargestAccountsResponseItem = Readonly<{
|
|
4
|
+
/** Base-58 encoded address of the account */
|
|
5
|
+
address: Address;
|
|
6
|
+
/** Number of lamports in the account */
|
|
7
|
+
lamports: LamportsUnsafeBeyond2Pow53Minus1;
|
|
8
|
+
}>;
|
|
9
|
+
type GetLargestAccountsApiResponse = readonly GetLargestAccountsResponseItem[];
|
|
10
|
+
export type GetLargestAccountsApi = {
|
|
11
|
+
/**
|
|
12
|
+
* Returns the 20 largest accounts, by lamport balance
|
|
13
|
+
* (results may be cached up to two hours)
|
|
14
|
+
*/
|
|
15
|
+
getLargestAccounts(config?: Readonly<{
|
|
16
|
+
commitment?: Commitment;
|
|
17
|
+
/** Filter results by account type */
|
|
18
|
+
filter?: 'circulating' | 'nonCirculating';
|
|
19
|
+
}>): SolanaRpcResponse<GetLargestAccountsApiResponse>;
|
|
20
|
+
};
|
|
21
|
+
export {};
|
|
22
|
+
//# 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,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,SAAS,8BAA8B,EAAE,CAAC;AAE/E,MAAM,MAAM,qBAAqB,GAAG;IAChC;;;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,iBAAiB,CAAC,6BAA6B,CAAC,CAAC;CACvD,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { Blockhash, Commitment, Slot, SolanaRpcResponse, U64UnsafeBeyond2Pow53Minus1 } from '@solana/rpc-types';
|
|
2
|
+
type GetLatestBlockhashApiResponse = Readonly<{
|
|
3
|
+
/** a Hash as base-58 encoded string */
|
|
4
|
+
blockhash: Blockhash;
|
|
5
|
+
/** last block height at which the blockhash will be valid */
|
|
6
|
+
lastValidBlockHeight: U64UnsafeBeyond2Pow53Minus1;
|
|
7
|
+
}>;
|
|
8
|
+
export type GetLatestBlockhashApi = {
|
|
9
|
+
/**
|
|
10
|
+
* Returns the latest blockhash
|
|
11
|
+
*/
|
|
12
|
+
getLatestBlockhash(config?: Readonly<{
|
|
13
|
+
commitment?: Commitment;
|
|
14
|
+
minContextSlot?: Slot;
|
|
15
|
+
}>): SolanaRpcResponse<GetLatestBlockhashApiResponse>;
|
|
16
|
+
};
|
|
17
|
+
export {};
|
|
18
|
+
//# 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,SAAS,EAAE,UAAU,EAAE,IAAI,EAAE,iBAAiB,EAAE,2BAA2B,EAAE,MAAM,mBAAmB,CAAC;AAErH,KAAK,6BAA6B,GAAG,QAAQ,CAAC;IAC1C,uCAAuC;IACvC,SAAS,EAAE,SAAS,CAAC;IACrB,6DAA6D;IAC7D,oBAAoB,EAAE,2BAA2B,CAAC;CACrD,CAAC,CAAC;AAEH,MAAM,MAAM,qBAAqB,GAAG;IAChC;;OAEG;IACH,kBAAkB,CACd,MAAM,CAAC,EAAE,QAAQ,CAAC;QACd,UAAU,CAAC,EAAE,UAAU,CAAC;QACxB,cAAc,CAAC,EAAE,IAAI,CAAC;KACzB,CAAC,GACH,iBAAiB,CAAC,6BAA6B,CAAC,CAAC;CACvD,CAAC"}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import type { Address } from '@solana/addresses';
|
|
2
|
+
import type { Commitment, Slot } from '@solana/rpc-types';
|
|
3
|
+
type GetLeaderScheduleApiConfigBase = Readonly<{
|
|
4
|
+
commitment?: Commitment;
|
|
5
|
+
}>;
|
|
6
|
+
/**
|
|
7
|
+
* This return type is a dictionary of validator identities, as base-58 encoded
|
|
8
|
+
* strings, and their corresponding leader slot indices as values
|
|
9
|
+
* (indices are relative to the first slot in the requested epoch)
|
|
10
|
+
* @example
|
|
11
|
+
* ```json
|
|
12
|
+
* {
|
|
13
|
+
* "4Qkev8aNZcqFNSRhQzwyLMFSsi94jHqE8WNVTJzTP99F": [
|
|
14
|
+
* 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20,
|
|
15
|
+
* 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38,
|
|
16
|
+
* 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56,
|
|
17
|
+
* 57, 58, 59, 60, 61, 62, 63
|
|
18
|
+
* ]
|
|
19
|
+
* }
|
|
20
|
+
* ```
|
|
21
|
+
*/
|
|
22
|
+
type GetLeaderScheduleApiResponseWithAllIdentities = Record<Address, Slot[]>;
|
|
23
|
+
type GetLeaderScheduleApiResponseWithSingleIdentity<TIdentity extends string> = Readonly<{
|
|
24
|
+
[TAddress in TIdentity]?: Slot[];
|
|
25
|
+
}>;
|
|
26
|
+
export type GetLeaderScheduleApi = {
|
|
27
|
+
/**
|
|
28
|
+
* Fetch the leader schedule for the epoch that corresponds to the provided slot.
|
|
29
|
+
* If unspecified, the leader schedule for the current epoch is fetched
|
|
30
|
+
*
|
|
31
|
+
* When a slot is provided, the leader schedule for the epoch that corresponds
|
|
32
|
+
* to the provided slot is returned, and this can be null if the slot corresponds
|
|
33
|
+
* to an epoch that does not exist.
|
|
34
|
+
*
|
|
35
|
+
* The RPC request payload provides a `null` value for `slot` when the slot is not
|
|
36
|
+
* specified but the request wishes to include config.
|
|
37
|
+
*/
|
|
38
|
+
getLeaderSchedule<TIdentity extends Address>(slot: Slot, config: GetLeaderScheduleApiConfigBase & Readonly<{
|
|
39
|
+
/** Only return results for this validator identity (base58 encoded address) */
|
|
40
|
+
identity: Address;
|
|
41
|
+
}>): GetLeaderScheduleApiResponseWithSingleIdentity<TIdentity> | null;
|
|
42
|
+
getLeaderSchedule(slot: Slot, config?: GetLeaderScheduleApiConfigBase): GetLeaderScheduleApiResponseWithAllIdentities | null;
|
|
43
|
+
getLeaderSchedule<TIdentity extends Address>(slot: null, config: GetLeaderScheduleApiConfigBase & Readonly<{
|
|
44
|
+
/** Only return results for this validator identity (base58 encoded address) */
|
|
45
|
+
identity: Address;
|
|
46
|
+
}>): GetLeaderScheduleApiResponseWithSingleIdentity<TIdentity>;
|
|
47
|
+
getLeaderSchedule(slot: null, config?: GetLeaderScheduleApiConfigBase): GetLeaderScheduleApiResponseWithAllIdentities;
|
|
48
|
+
};
|
|
49
|
+
export {};
|
|
50
|
+
//# 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,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,MAAM,oBAAoB,GAAG;IAC/B;;;;;;;;;;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,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Slot } from '@solana/rpc-types';
|
|
2
|
+
type GetMaxRetransmitSlotApiResponse = Slot;
|
|
3
|
+
export type GetMaxRetransmitSlotApi = {
|
|
4
|
+
/**
|
|
5
|
+
* Get the max slot seen from retransmit stage.
|
|
6
|
+
* Note that the optional NO_CONFIG object is ignored. See https://github.com/solana-labs/solana-web3.js/issues/1389
|
|
7
|
+
*/
|
|
8
|
+
getMaxRetransmitSlot(NO_CONFIG?: Record<string, never>): GetMaxRetransmitSlotApiResponse;
|
|
9
|
+
};
|
|
10
|
+
export {};
|
|
11
|
+
//# 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,IAAI,EAAE,MAAM,mBAAmB,CAAC;AAE9C,KAAK,+BAA+B,GAAG,IAAI,CAAC;AAE5C,MAAM,MAAM,uBAAuB,GAAG;IAClC;;;OAGG;IACH,oBAAoB,CAEhB,SAAS,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,GAClC,+BAA+B,CAAC;CACtC,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Slot } from '@solana/rpc-types';
|
|
2
|
+
type GetMaxShredInsertSlotApiResponse = Slot;
|
|
3
|
+
export type GetMaxShredInsertSlotApi = {
|
|
4
|
+
/**
|
|
5
|
+
* Get the max slot seen from after shred insert.
|
|
6
|
+
* Note that the optional NO_CONFIG object is ignored. See https://github.com/solana-labs/solana-web3.js/issues/1389
|
|
7
|
+
*/
|
|
8
|
+
getMaxShredInsertSlot(NO_CONFIG?: Record<string, never>): GetMaxShredInsertSlotApiResponse;
|
|
9
|
+
};
|
|
10
|
+
export {};
|
|
11
|
+
//# 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,IAAI,EAAE,MAAM,mBAAmB,CAAC;AAE9C,KAAK,gCAAgC,GAAG,IAAI,CAAC;AAE7C,MAAM,MAAM,wBAAwB,GAAG;IACnC;;;OAGG;IACH,qBAAqB,CAEjB,SAAS,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,GAClC,gCAAgC,CAAC;CACvC,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { Commitment, LamportsUnsafeBeyond2Pow53Minus1, U64UnsafeBeyond2Pow53Minus1 } from '@solana/rpc-types';
|
|
2
|
+
type GetMinimumBalanceForRentExemptionApiResponse = LamportsUnsafeBeyond2Pow53Minus1;
|
|
3
|
+
export type GetMinimumBalanceForRentExemptionApi = {
|
|
4
|
+
/**
|
|
5
|
+
* Returns the minimum balance to exempt an account of a certain size from rent
|
|
6
|
+
*/
|
|
7
|
+
getMinimumBalanceForRentExemption(size: U64UnsafeBeyond2Pow53Minus1, config?: Readonly<{
|
|
8
|
+
commitment?: Commitment;
|
|
9
|
+
}>): GetMinimumBalanceForRentExemptionApiResponse;
|
|
10
|
+
};
|
|
11
|
+
export {};
|
|
12
|
+
//# 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,UAAU,EAAE,gCAAgC,EAAE,2BAA2B,EAAE,MAAM,mBAAmB,CAAC;AAEnH,KAAK,4CAA4C,GAAG,gCAAgC,CAAC;AAErF,MAAM,MAAM,oCAAoC,GAAG;IAC/C;;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,CAAC"}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import type { Address } from '@solana/addresses';
|
|
2
|
+
import type { AccountInfoBase, AccountInfoWithBase58EncodedData, AccountInfoWithBase64EncodedData, AccountInfoWithBase64EncodedZStdCompressedData, AccountInfoWithJsonData, Commitment, DataSlice, Slot, SolanaRpcResponse } from '@solana/rpc-types';
|
|
3
|
+
type GetMultipleAccountsApiResponseBase = AccountInfoBase | null;
|
|
4
|
+
type GetMultipleAccountsApiCommonConfig = Readonly<{
|
|
5
|
+
/** Defaults to `finalized` */
|
|
6
|
+
commitment?: Commitment;
|
|
7
|
+
/** The minimum slot that the request can be evaluated at */
|
|
8
|
+
minContextSlot?: Slot;
|
|
9
|
+
}>;
|
|
10
|
+
type GetMultipleAccountsApiSliceableCommonConfig = Readonly<{
|
|
11
|
+
/** Limit the returned account data */
|
|
12
|
+
dataSlice?: DataSlice;
|
|
13
|
+
}>;
|
|
14
|
+
export type GetMultipleAccountsApi = {
|
|
15
|
+
/**
|
|
16
|
+
* Returns the account information for a list of Pubkeys.
|
|
17
|
+
*/
|
|
18
|
+
getMultipleAccounts(
|
|
19
|
+
/** An array of up to 100 Pubkeys to query */
|
|
20
|
+
addresses: Address[], config: GetMultipleAccountsApiCommonConfig & GetMultipleAccountsApiSliceableCommonConfig & Readonly<{
|
|
21
|
+
encoding: 'base64';
|
|
22
|
+
}>): SolanaRpcResponse<(GetMultipleAccountsApiResponseBase & (AccountInfoWithBase64EncodedData | null))[]>;
|
|
23
|
+
getMultipleAccounts(
|
|
24
|
+
/** An array of up to 100 Pubkeys to query */
|
|
25
|
+
addresses: Address[], config: GetMultipleAccountsApiCommonConfig & GetMultipleAccountsApiSliceableCommonConfig & Readonly<{
|
|
26
|
+
encoding: 'base64+zstd';
|
|
27
|
+
}>): SolanaRpcResponse<(GetMultipleAccountsApiResponseBase & (AccountInfoWithBase64EncodedZStdCompressedData | null))[]>;
|
|
28
|
+
getMultipleAccounts(
|
|
29
|
+
/** An array of up to 100 Pubkeys to query */
|
|
30
|
+
addresses: Address[], config: GetMultipleAccountsApiCommonConfig & Readonly<{
|
|
31
|
+
encoding: 'jsonParsed';
|
|
32
|
+
}>): SolanaRpcResponse<(GetMultipleAccountsApiResponseBase & (AccountInfoWithJsonData | null))[]>;
|
|
33
|
+
getMultipleAccounts(
|
|
34
|
+
/** An array of up to 100 Pubkeys to query */
|
|
35
|
+
addresses: Address[], config: GetMultipleAccountsApiCommonConfig & GetMultipleAccountsApiSliceableCommonConfig & Readonly<{
|
|
36
|
+
encoding: 'base58';
|
|
37
|
+
}>): SolanaRpcResponse<(GetMultipleAccountsApiResponseBase & (AccountInfoWithBase58EncodedData | null))[]>;
|
|
38
|
+
getMultipleAccounts(
|
|
39
|
+
/** An array of up to 100 Pubkeys to query */
|
|
40
|
+
addresses: Address[], config?: GetMultipleAccountsApiCommonConfig): SolanaRpcResponse<(GetMultipleAccountsApiResponseBase & (AccountInfoWithBase64EncodedData | null))[]>;
|
|
41
|
+
};
|
|
42
|
+
export {};
|
|
43
|
+
//# 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,EACR,eAAe,EACf,gCAAgC,EAChC,gCAAgC,EAChC,8CAA8C,EAC9C,uBAAuB,EACvB,UAAU,EACV,SAAS,EACT,IAAI,EACJ,iBAAiB,EACpB,MAAM,mBAAmB,CAAC;AAE3B,KAAK,kCAAkC,GAAG,eAAe,GAAG,IAAI,CAAC;AAEjE,KAAK,kCAAkC,GAAG,QAAQ,CAAC;IAC/C,8BAA8B;IAC9B,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB,4DAA4D;IAC5D,cAAc,CAAC,EAAE,IAAI,CAAC;CACzB,CAAC,CAAC;AAEH,KAAK,2CAA2C,GAAG,QAAQ,CAAC;IACxD,sCAAsC;IACtC,SAAS,CAAC,EAAE,SAAS,CAAC;CACzB,CAAC,CAAC;AAEH,MAAM,MAAM,sBAAsB,GAAG;IACjC;;OAEG;IACH,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,EAAE,kCAAkC,GACtC,2CAA2C,GAC3C,QAAQ,CAAC;QACL,QAAQ,EAAE,aAAa,CAAC;KAC3B,CAAC,GACP,iBAAiB,CAChB,CAAC,kCAAkC,GAAG,CAAC,8CAA8C,GAAG,IAAI,CAAC,CAAC,EAAE,CACnG,CAAC;IACF,mBAAmB;IACf,6CAA6C;IAC7C,SAAS,EAAE,OAAO,EAAE,EACpB,MAAM,EAAE,kCAAkC,GACtC,QAAQ,CAAC;QACL,QAAQ,EAAE,YAAY,CAAC;KAC1B,CAAC,GACP,iBAAiB,CAAC,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,CAAC"}
|