Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@solana/rpc-core

Package Overview
Dependencies
Maintainers
14
Versions
456
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@solana/rpc-core - npm Package Compare versions

Comparing version 2.0.0-experimental.49dc7f3 to 2.0.0-experimental.4c009bf

5

dist/types/index.d.ts

@@ -1,3 +0,4 @@

export * from './rpc-methods';
export * from './rpc-subscriptions';
export * from './rpc-methods/index.js';
export * from './rpc-subscriptions/index.js';
export * from './transaction-error.js';
//# sourceMappingURL=index.d.ts.map

8

dist/types/response-patcher-allowed-numeric-values.d.ts

@@ -1,5 +0,5 @@

import { IRpcSubscriptionsApi } from '@solana/rpc-transport/dist/types/json-rpc-types';
import { KeyPath } from './response-patcher';
import { createSolanaRpcApi } from './rpc-methods';
import { SolanaRpcSubscriptions, SolanaRpcSubscriptionsUnstable } from './rpc-subscriptions';
import type { IRpcSubscriptionsApi } from '@solana/rpc-transport';
import { KeyPath } from './response-patcher.js';
import { createSolanaRpcApi } from './rpc-methods/index.js';
import { SolanaRpcSubscriptions, SolanaRpcSubscriptionsUnstable } from './rpc-subscriptions/index.js';
type AllowedNumericKeypaths<TApi> = Partial<Record<keyof TApi, readonly KeyPath[]>>;

@@ -6,0 +6,0 @@ /**

@@ -1,4 +0,4 @@

import { KeyPathWildcard } from './response-patcher-types';
import { createSolanaRpcApi } from './rpc-methods';
import { createSolanaRpcSubscriptionsApi } from './rpc-subscriptions';
import { KeyPathWildcard } from './response-patcher-types.js';
import { createSolanaRpcApi } from './rpc-methods/index.js';
import { createSolanaRpcSubscriptionsApi } from './rpc-subscriptions/index.js';
export type KeyPath = ReadonlyArray<KeyPathWildcard | number | string | KeyPath>;

@@ -5,0 +5,0 @@ export declare function patchResponseForSolanaLabsRpc<T>(rawResponse: unknown, methodName?: keyof ReturnType<typeof createSolanaRpcApi>): T;

import { Address } from '@solana/addresses';
import { LamportsUnsafeBeyond2Pow53Minus1 } from '@solana/rpc-types';
import { Blockhash, TransactionVersion } from '@solana/transactions';
import { TransactionError } from '../transaction-error';
import { Base58EncodedBytes, Base58EncodedDataResponse, Base64EncodedDataResponse, SignedLamportsAsI64Unsafe, TokenBalance, U64UnsafeBeyond2Pow53Minus1 } from './common';
import { TransactionError } from '../transaction-error.js';
import { Base58EncodedBytes, Base58EncodedDataResponse, Base64EncodedDataResponse, SignedLamportsAsI64Unsafe, TokenBalance, U64UnsafeBeyond2Pow53Minus1 } from './common.js';
type AddressTableLookup = Readonly<{

@@ -16,4 +16,4 @@ /** public key for an address lookup table account. */

parsed: {
info?: object;
type: string;
info?: object;
};

@@ -20,0 +20,0 @@ program: string;

@@ -59,3 +59,6 @@ import { Address } from '@solana/addresses';

program: string;
parsed: unknown;
parsed: {
info?: object;
type: string;
};
space: U64UnsafeBeyond2Pow53Minus1;

@@ -62,0 +65,0 @@ }> | Base64EncodedDataResponse;

import { Address } from '@solana/addresses';
import { Commitment } from '@solana/rpc-types';
import { AccountInfoBase, AccountInfoWithBase58Bytes, AccountInfoWithBase58EncodedData, AccountInfoWithBase64EncodedData, AccountInfoWithBase64EncodedZStdCompressedData, AccountInfoWithJsonData, DataSlice, RpcResponse, Slot } from './common';
import { AccountInfoBase, AccountInfoWithBase58Bytes, AccountInfoWithBase58EncodedData, AccountInfoWithBase64EncodedData, AccountInfoWithBase64EncodedZStdCompressedData, AccountInfoWithJsonData, DataSlice, RpcResponse, Slot } from './common.js';
type GetAccountInfoApiResponseBase = RpcResponse<AccountInfoBase | null>;

@@ -5,0 +5,0 @@ type NestInRpcResponseOrNull<T> = Readonly<{

import { Address } from '@solana/addresses';
import { Commitment, LamportsUnsafeBeyond2Pow53Minus1 } from '@solana/rpc-types';
import { RpcResponse, Slot } from './common';
import { RpcResponse, Slot } from './common.js';
type GetBalanceApiResponse = RpcResponse<LamportsUnsafeBeyond2Pow53Minus1>;

@@ -5,0 +5,0 @@ export interface GetBalanceApi {

import { Commitment, UnixTimestamp } from '@solana/rpc-types';
import { Blockhash, TransactionVersion } from '@solana/transactions';
import { Base58EncodedBytes, Slot, U64UnsafeBeyond2Pow53Minus1 } from './common';
import { Reward, TransactionForAccounts, TransactionForFullBase58, TransactionForFullBase64, TransactionForFullJson, TransactionForFullJsonParsed } from './common-transactions';
import { Base58EncodedBytes, Slot, U64UnsafeBeyond2Pow53Minus1 } from './common.js';
import { Reward, TransactionForAccounts, TransactionForFullBase58, TransactionForFullBase64, TransactionForFullJson, TransactionForFullJsonParsed } from './common-transactions.js';
type GetBlockApiResponseBase = Readonly<{

@@ -6,0 +6,0 @@ /** the blockhash of this block */

import { LamportsUnsafeBeyond2Pow53Minus1 } from '@solana/rpc-types';
import { Slot } from './common';
import { Slot } from './common.js';
type GetBlockCommitmentApiResponse = Readonly<{

@@ -4,0 +4,0 @@ commitment: LamportsUnsafeBeyond2Pow53Minus1[] | null;

import { Commitment } from '@solana/rpc-types';
import { Slot, U64UnsafeBeyond2Pow53Minus1 } from './common';
import { Slot, U64UnsafeBeyond2Pow53Minus1 } from './common.js';
type GetBlockHeightApiResponse = U64UnsafeBeyond2Pow53Minus1;

@@ -4,0 +4,0 @@ export interface GetBlockHeightApi {

import { Address } from '@solana/addresses';
import { Commitment } from '@solana/rpc-types';
import { RpcResponse, Slot, U64UnsafeBeyond2Pow53Minus1 } from './common';
import { RpcResponse, Slot, U64UnsafeBeyond2Pow53Minus1 } from './common.js';
type NumberOfLeaderSlots = U64UnsafeBeyond2Pow53Minus1;

@@ -5,0 +5,0 @@ type NumberOfBlocksProduced = U64UnsafeBeyond2Pow53Minus1;

import { Commitment } from '@solana/rpc-types';
import { Slot } from './common';
import { Slot } from './common.js';
type GetBlocksApiResponse = Slot[];

@@ -4,0 +4,0 @@ export interface GetBlocksApi {

import { Commitment } from '@solana/rpc-types';
import { Slot } from './common';
import { Slot } from './common.js';
type GetBlocksWithLimitApiResponse = Slot[];

@@ -4,0 +4,0 @@ export interface GetBlocksWithLimitApi {

import { UnixTimestamp } from '@solana/rpc-types';
import { Slot } from './common';
import { Slot } from './common.js';
/** Estimated production time, as Unix timestamp (seconds since the Unix epoch) */

@@ -4,0 +4,0 @@ type GetBlockTimeApiResponse = UnixTimestamp;

import { Commitment } from '@solana/rpc-types';
import { Slot, U64UnsafeBeyond2Pow53Minus1 } from './common';
import { Slot, U64UnsafeBeyond2Pow53Minus1 } from './common.js';
type GetEpochInfoApiResponse = Readonly<{

@@ -4,0 +4,0 @@ /** the current slot */

@@ -1,2 +0,2 @@

import { U64UnsafeBeyond2Pow53Minus1 } from './common';
import { U64UnsafeBeyond2Pow53Minus1 } from './common.js';
type GetEpochScheduleApiResponse = Readonly<{

@@ -3,0 +3,0 @@ /** the maximum number of slots in each epoch */

import { Commitment } from '@solana/rpc-types';
import { SerializedMessageBytesBase64 } from '@solana/transactions';
import { RpcResponse, Slot, U64UnsafeBeyond2Pow53Minus1 } from './common';
import { RpcResponse, Slot, U64UnsafeBeyond2Pow53Minus1 } from './common.js';
/** Fee corresponding to the message at the specified blockhash */

@@ -5,0 +5,0 @@ type GetFeeForMessageApiResponse = RpcResponse<U64UnsafeBeyond2Pow53Minus1 | null>;

@@ -1,2 +0,2 @@

import { Slot } from './common';
import { Slot } from './common.js';
type GetFirstAvailableBlockApiResponse = Slot;

@@ -3,0 +3,0 @@ export interface GetFirstAvailableBlockApi {

@@ -1,2 +0,2 @@

import { Slot } from './common';
import { Slot } from './common.js';
type GetHighestSnapshotSlotApiResponse = Readonly<{

@@ -3,0 +3,0 @@ full: Slot;

import { Commitment } from '@solana/rpc-types';
import { F64UnsafeSeeDocumentation } from './common';
import { F64UnsafeSeeDocumentation } from './common.js';
type GetInflationGovernorApiResponse = Readonly<{

@@ -4,0 +4,0 @@ /** The initial inflation percentage from time 0 */

@@ -1,2 +0,2 @@

import { F64UnsafeSeeDocumentation, U64UnsafeBeyond2Pow53Minus1 } from './common';
import { F64UnsafeSeeDocumentation, U64UnsafeBeyond2Pow53Minus1 } from './common.js';
type GetInflationRateApiResponse = Readonly<{

@@ -3,0 +3,0 @@ /** Epoch for which these values are valid */

import { Address } from '@solana/addresses';
import { Commitment, LamportsUnsafeBeyond2Pow53Minus1 } from '@solana/rpc-types';
import { Slot, U64UnsafeBeyond2Pow53Minus1 } from './common';
import { Slot, U64UnsafeBeyond2Pow53Minus1 } from './common.js';
type GetInflationRewardApiResponse = Readonly<{

@@ -5,0 +5,0 @@ amount: LamportsUnsafeBeyond2Pow53Minus1;

import { Address } from '@solana/addresses';
import { Commitment, LamportsUnsafeBeyond2Pow53Minus1 } from '@solana/rpc-types';
import { RpcResponse } from './common';
import { RpcResponse } from './common.js';
type GetLargestAccountsResponseItem = Readonly<{

@@ -5,0 +5,0 @@ /** Base-58 encoded address of the account */

import { Commitment } from '@solana/rpc-types';
import { Blockhash } from '@solana/transactions';
import { RpcResponse, Slot, U64UnsafeBeyond2Pow53Minus1 } from './common';
import { RpcResponse, Slot, U64UnsafeBeyond2Pow53Minus1 } from './common.js';
type GetLatestBlockhashApiResponse = RpcResponse<{

@@ -5,0 +5,0 @@ /** a Hash as base-58 encoded string */

import { Address } from '@solana/addresses';
import { Commitment } from '@solana/rpc-types';
import { Slot } from './common';
import { Slot } from './common.js';
/**

@@ -5,0 +5,0 @@ * This return type is a dictionary of validator identities, as base-58 encoded

@@ -1,2 +0,2 @@

import { Slot } from './common';
import { Slot } from './common.js';
type GetMaxRetransmitSlotApiResponse = Slot;

@@ -3,0 +3,0 @@ export interface GetMaxRetransmitSlotApi {

@@ -1,2 +0,2 @@

import { Slot } from './common';
import { Slot } from './common.js';
type GetMaxShredInsertSlotApiResponse = Slot;

@@ -3,0 +3,0 @@ export interface GetMaxShredInsertSlotApi {

import { Commitment, LamportsUnsafeBeyond2Pow53Minus1 } from '@solana/rpc-types';
import { U64UnsafeBeyond2Pow53Minus1 } from './common';
import { U64UnsafeBeyond2Pow53Minus1 } from './common.js';
type GetMinimumBalanceForRentExemptionApiResponse = LamportsUnsafeBeyond2Pow53Minus1;

@@ -4,0 +4,0 @@ export interface GetMinimumBalanceForRentExemptionApi {

import { Address } from '@solana/addresses';
import { Commitment } from '@solana/rpc-types';
import { AccountInfoBase, AccountInfoWithBase58EncodedData, AccountInfoWithBase64EncodedData, AccountInfoWithBase64EncodedZStdCompressedData, AccountInfoWithJsonData, DataSlice, RpcResponse, Slot } from './common';
import { AccountInfoBase, AccountInfoWithBase58EncodedData, AccountInfoWithBase64EncodedData, AccountInfoWithBase64EncodedZStdCompressedData, AccountInfoWithJsonData, DataSlice, RpcResponse, Slot } from './common.js';
type GetMultipleAccountsApiResponseBase = AccountInfoBase | null;

@@ -5,0 +5,0 @@ type GetMultipleAccountsApiCommonConfig = Readonly<{

import { Address } from '@solana/addresses';
import { Commitment } from '@solana/rpc-types';
import { AccountInfoBase, AccountInfoWithBase58Bytes, AccountInfoWithBase58EncodedData, AccountInfoWithBase64EncodedData, AccountInfoWithBase64EncodedZStdCompressedData, AccountInfoWithJsonData, AccountInfoWithPubkey, DataSlice, GetProgramAccountsDatasizeFilter, GetProgramAccountsMemcmpFilter, RpcResponse, Slot } from './common';
import { AccountInfoBase, AccountInfoWithBase58Bytes, AccountInfoWithBase58EncodedData, AccountInfoWithBase64EncodedData, AccountInfoWithBase64EncodedZStdCompressedData, AccountInfoWithJsonData, AccountInfoWithPubkey, DataSlice, GetProgramAccountsDatasizeFilter, GetProgramAccountsMemcmpFilter, RpcResponse, Slot } from './common.js';
type GetProgramAccountsApiCommonConfig = Readonly<{

@@ -5,0 +5,0 @@ /** @defaultValue "finalized" */

@@ -1,2 +0,2 @@

import { Slot, U64UnsafeBeyond2Pow53Minus1 } from './common';
import { Slot, U64UnsafeBeyond2Pow53Minus1 } from './common.js';
type PerformanceSample = Readonly<{

@@ -3,0 +3,0 @@ /** Slot in which sample was taken at */

import { Address } from '@solana/addresses';
import { MicroLamportsUnsafeBeyond2Pow53Minus1, Slot } from './common';
import { MicroLamportsUnsafeBeyond2Pow53Minus1, Slot } from './common.js';
type GetRecentPrioritizationFeesApiResponse = Readonly<{

@@ -4,0 +4,0 @@ /**

import { Address } from '@solana/addresses';
import { Signature } from '@solana/keys';
import { Commitment, UnixTimestamp } from '@solana/rpc-types';
import { TransactionError } from '../transaction-error';
import { Slot } from './common';
import { TransactionError } from '../transaction-error.js';
import { Slot } from './common.js';
type GetSignaturesForAddressTransaction = Readonly<{

@@ -7,0 +7,0 @@ /** transaction signature as base-58 encoded string */

import { Signature } from '@solana/keys';
import { Commitment } from '@solana/rpc-types';
import { TransactionError } from '../transaction-error';
import { RpcResponse, Slot, U64UnsafeBeyond2Pow53Minus1 } from './common';
import { TransactionError } from '../transaction-error.js';
import { RpcResponse, Slot, U64UnsafeBeyond2Pow53Minus1 } from './common.js';
/** @deprecated */

@@ -6,0 +6,0 @@ type TransactionStatusOk = Readonly<{

import { Commitment } from '@solana/rpc-types';
import { Slot } from './common';
import { Slot } from './common.js';
type GetSlotApiResponse = Slot;

@@ -4,0 +4,0 @@ export interface GetSlotApi {

import { Address } from '@solana/addresses';
import { Commitment } from '@solana/rpc-types';
import { Slot } from './common';
import { Slot } from './common.js';
export interface GetSlotLeaderApi {

@@ -5,0 +5,0 @@ /**

import { Address } from '@solana/addresses';
import { Slot } from './common';
import { Slot } from './common.js';
/** array of Node identity public keys as base-58 encoded strings */

@@ -4,0 +4,0 @@ type GetSlotLeadersApiResponse = Address[];

import { Address } from '@solana/addresses';
import { Commitment } from '@solana/rpc-types';
import { Slot, U64UnsafeBeyond2Pow53Minus1 } from './common';
import { Slot, U64UnsafeBeyond2Pow53Minus1 } from './common.js';
type GetStakeActivationApiResponse = Readonly<{

@@ -5,0 +5,0 @@ /** Stake active during the epoch */

import { Commitment, LamportsUnsafeBeyond2Pow53Minus1 } from '@solana/rpc-types';
import { RpcResponse } from './common';
import { RpcResponse } from './common.js';
type GetStakeMinimumDelegationApiResponse = RpcResponse<LamportsUnsafeBeyond2Pow53Minus1>;

@@ -4,0 +4,0 @@ export interface GetStakeMinimumDelegationApi {

import { Address } from '@solana/addresses';
import { Commitment, LamportsUnsafeBeyond2Pow53Minus1 } from '@solana/rpc-types';
import { RpcResponse } from './common';
import { RpcResponse } from './common.js';
type GetSupplyConfig = Readonly<{

@@ -5,0 +5,0 @@ commitment?: Commitment;

import { Address } from '@solana/addresses';
import { Commitment } from '@solana/rpc-types';
import { RpcResponse, TokenAmount } from './common';
import { RpcResponse, TokenAmount } from './common.js';
type GetTokenAccountBalanceApiResponse = RpcResponse<TokenAmount>;

@@ -5,0 +5,0 @@ export interface GetTokenAccountBalanceApi {

import { Address } from '@solana/addresses';
import { Commitment } from '@solana/rpc-types';
import { AccountInfoBase, AccountInfoWithBase58Bytes, AccountInfoWithBase58EncodedData, AccountInfoWithBase64EncodedData, AccountInfoWithBase64EncodedZStdCompressedData, AccountInfoWithPubkey, DataSlice, RpcResponse, Slot, TokenAccount, U64UnsafeBeyond2Pow53Minus1 } from './common';
import { AccountInfoBase, AccountInfoWithBase58Bytes, AccountInfoWithBase58EncodedData, AccountInfoWithBase64EncodedData, AccountInfoWithBase64EncodedZStdCompressedData, AccountInfoWithPubkey, DataSlice, RpcResponse, Slot, TokenAccount, U64UnsafeBeyond2Pow53Minus1 } from './common.js';
type TokenAccountInfoWithJsonData = Readonly<{

@@ -5,0 +5,0 @@ data: Readonly<{

import { Address } from '@solana/addresses';
import { Commitment } from '@solana/rpc-types';
import { AccountInfoBase, AccountInfoWithBase58Bytes, AccountInfoWithBase58EncodedData, AccountInfoWithBase64EncodedData, AccountInfoWithBase64EncodedZStdCompressedData, AccountInfoWithPubkey, DataSlice, RpcResponse, Slot, TokenAccount, U64UnsafeBeyond2Pow53Minus1 } from './common';
import { AccountInfoBase, AccountInfoWithBase58Bytes, AccountInfoWithBase58EncodedData, AccountInfoWithBase64EncodedData, AccountInfoWithBase64EncodedZStdCompressedData, AccountInfoWithPubkey, DataSlice, RpcResponse, Slot, TokenAccount, U64UnsafeBeyond2Pow53Minus1 } from './common.js';
type TokenAccountInfoWithJsonData = Readonly<{

@@ -5,0 +5,0 @@ data: Readonly<{

import { Address } from '@solana/addresses';
import { Commitment } from '@solana/rpc-types';
import { RpcResponse, TokenAmount } from './common';
import { RpcResponse, TokenAmount } from './common.js';
type GetTokenLargestAccountsApiResponse = RpcResponse<TokenAmount & {

@@ -5,0 +5,0 @@ address: Address;

import { Address } from '@solana/addresses';
import { Commitment } from '@solana/rpc-types';
import { RpcResponse, TokenAmount } from './common';
import { RpcResponse, TokenAmount } from './common.js';
type GetTokenSupplyApiResponse = RpcResponse<TokenAmount>;

@@ -5,0 +5,0 @@ export interface GetTokenSupplyApi {

@@ -5,5 +5,5 @@ import { Address } from '@solana/addresses';

import { Blockhash, TransactionVersion } from '@solana/transactions';
import { TransactionError } from '../transaction-error';
import { Base58EncodedBytes, Base58EncodedDataResponse, Base64EncodedDataResponse, Slot, TokenBalance, U64UnsafeBeyond2Pow53Minus1 } from './common';
import { Reward, TransactionStatus } from './common-transactions';
import { TransactionError } from '../transaction-error.js';
import { Base58EncodedBytes, Base58EncodedDataResponse, Base64EncodedDataResponse, Slot, TokenBalance, U64UnsafeBeyond2Pow53Minus1 } from './common.js';
import { Reward, TransactionStatus } from './common-transactions.js';
type ReturnData = {

@@ -10,0 +10,0 @@ /** the program that generated the return data */

import { Commitment } from '@solana/rpc-types';
import { Slot, U64UnsafeBeyond2Pow53Minus1 } from './common';
import { Slot, U64UnsafeBeyond2Pow53Minus1 } from './common.js';
type GetTransactionCountApiResponse = U64UnsafeBeyond2Pow53Minus1;

@@ -4,0 +4,0 @@ export interface GetTransactionCountApi {

import { Address } from '@solana/addresses';
import { Commitment } from '@solana/rpc-types';
import { Slot, U64UnsafeBeyond2Pow53Minus1 } from './common';
import { Slot, U64UnsafeBeyond2Pow53Minus1 } from './common.js';
type Epoch = U64UnsafeBeyond2Pow53Minus1;

@@ -5,0 +5,0 @@ type Credits = U64UnsafeBeyond2Pow53Minus1;

@@ -1,55 +0,55 @@

import { IRpcApi } from '@solana/rpc-transport/dist/types/json-rpc-types';
import { GetAccountInfoApi } from './getAccountInfo';
import { GetBalanceApi } from './getBalance';
import { GetBlockApi } from './getBlock';
import { GetBlockCommitmentApi } from './getBlockCommitment';
import { GetBlockHeightApi } from './getBlockHeight';
import { GetBlockProductionApi } from './getBlockProduction';
import { GetBlocksApi } from './getBlocks';
import { GetBlocksWithLimitApi } from './getBlocksWithLimit';
import { GetBlockTimeApi } from './getBlockTime';
import { GetClusterNodesApi } from './getClusterNodes';
import { GetEpochInfoApi } from './getEpochInfo';
import { GetEpochScheduleApi } from './getEpochSchedule';
import { GetFeeForMessageApi } from './getFeeForMessage';
import { GetFirstAvailableBlockApi } from './getFirstAvailableBlock';
import { GetGenesisHashApi } from './getGenesisHash';
import { GetHealthApi } from './getHealth';
import { GetHighestSnapshotSlotApi } from './getHighestSnapshotSlot';
import { GetIdentityApi } from './getIdentity';
import { GetInflationGovernorApi } from './getInflationGovernor';
import { GetInflationRateApi } from './getInflationRate';
import { GetInflationRewardApi } from './getInflationReward';
import { GetLargestAccountsApi } from './getLargestAccounts';
import { GetLatestBlockhashApi } from './getLatestBlockhash';
import { GetLeaderScheduleApi } from './getLeaderSchedule';
import { GetMaxRetransmitSlotApi } from './getMaxRetransmitSlot';
import { GetMaxShredInsertSlotApi } from './getMaxShredInsertSlot';
import { GetMinimumBalanceForRentExemptionApi } from './getMinimumBalanceForRentExemption';
import { GetMultipleAccountsApi } from './getMultipleAccounts';
import { GetProgramAccountsApi } from './getProgramAccounts';
import { GetRecentPerformanceSamplesApi } from './getRecentPerformanceSamples';
import { GetRecentPrioritizationFeesApi } from './getRecentPrioritizationFees';
import { GetSignaturesForAddressApi } from './getSignaturesForAddress';
import { GetSignatureStatusesApi } from './getSignatureStatuses';
import { GetSlotApi } from './getSlot';
import { GetSlotLeaderApi } from './getSlotLeader';
import { GetSlotLeadersApi } from './getSlotLeaders';
import { GetStakeActivationApi } from './getStakeActivation';
import { GetStakeMinimumDelegationApi } from './getStakeMinimumDelegation';
import { GetSupplyApi } from './getSupply';
import { GetTokenAccountBalanceApi } from './getTokenAccountBalance';
import { GetTokenAccountsByDelegateApi } from './getTokenAccountsByDelegate';
import { GetTokenAccountsByOwnerApi } from './getTokenAccountsByOwner';
import { GetTokenLargestAccountsApi } from './getTokenLargestAccounts';
import { GetTokenSupplyApi } from './getTokenSupply';
import { GetTransactionApi } from './getTransaction';
import { GetTransactionCountApi } from './getTransactionCount';
import { GetVersionApi } from './getVersion';
import { GetVoteAccountsApi } from './getVoteAccounts';
import { IsBlockhashValidApi } from './isBlockhashValid';
import { MinimumLedgerSlotApi } from './minimumLedgerSlot';
import { RequestAirdropApi } from './requestAirdrop';
import { SendTransactionApi } from './sendTransaction';
import { SimulateTransactionApi } from './simulateTransaction';
import type { IRpcApi } from '@solana/rpc-transport';
import { GetAccountInfoApi } from './getAccountInfo.js';
import { GetBalanceApi } from './getBalance.js';
import { GetBlockApi } from './getBlock.js';
import { GetBlockCommitmentApi } from './getBlockCommitment.js';
import { GetBlockHeightApi } from './getBlockHeight.js';
import { GetBlockProductionApi } from './getBlockProduction.js';
import { GetBlocksApi } from './getBlocks.js';
import { GetBlocksWithLimitApi } from './getBlocksWithLimit.js';
import { GetBlockTimeApi } from './getBlockTime.js';
import { GetClusterNodesApi } from './getClusterNodes.js';
import { GetEpochInfoApi } from './getEpochInfo.js';
import { GetEpochScheduleApi } from './getEpochSchedule.js';
import { GetFeeForMessageApi } from './getFeeForMessage.js';
import { GetFirstAvailableBlockApi } from './getFirstAvailableBlock.js';
import { GetGenesisHashApi } from './getGenesisHash.js';
import { GetHealthApi } from './getHealth.js';
import { GetHighestSnapshotSlotApi } from './getHighestSnapshotSlot.js';
import { GetIdentityApi } from './getIdentity.js';
import { GetInflationGovernorApi } from './getInflationGovernor.js';
import { GetInflationRateApi } from './getInflationRate.js';
import { GetInflationRewardApi } from './getInflationReward.js';
import { GetLargestAccountsApi } from './getLargestAccounts.js';
import { GetLatestBlockhashApi } from './getLatestBlockhash.js';
import { GetLeaderScheduleApi } from './getLeaderSchedule.js';
import { GetMaxRetransmitSlotApi } from './getMaxRetransmitSlot.js';
import { GetMaxShredInsertSlotApi } from './getMaxShredInsertSlot.js';
import { GetMinimumBalanceForRentExemptionApi } from './getMinimumBalanceForRentExemption.js';
import { GetMultipleAccountsApi } from './getMultipleAccounts.js';
import { GetProgramAccountsApi } from './getProgramAccounts.js';
import { GetRecentPerformanceSamplesApi } from './getRecentPerformanceSamples.js';
import { GetRecentPrioritizationFeesApi } from './getRecentPrioritizationFees.js';
import { GetSignaturesForAddressApi } from './getSignaturesForAddress.js';
import { GetSignatureStatusesApi } from './getSignatureStatuses.js';
import { GetSlotApi } from './getSlot.js';
import { GetSlotLeaderApi } from './getSlotLeader.js';
import { GetSlotLeadersApi } from './getSlotLeaders.js';
import { GetStakeActivationApi } from './getStakeActivation.js';
import { GetStakeMinimumDelegationApi } from './getStakeMinimumDelegation.js';
import { GetSupplyApi } from './getSupply.js';
import { GetTokenAccountBalanceApi } from './getTokenAccountBalance.js';
import { GetTokenAccountsByDelegateApi } from './getTokenAccountsByDelegate.js';
import { GetTokenAccountsByOwnerApi } from './getTokenAccountsByOwner.js';
import { GetTokenLargestAccountsApi } from './getTokenLargestAccounts.js';
import { GetTokenSupplyApi } from './getTokenSupply.js';
import { GetTransactionApi } from './getTransaction.js';
import { GetTransactionCountApi } from './getTransactionCount.js';
import { GetVersionApi } from './getVersion.js';
import { GetVoteAccountsApi } from './getVoteAccounts.js';
import { IsBlockhashValidApi } from './isBlockhashValid.js';
import { MinimumLedgerSlotApi } from './minimumLedgerSlot.js';
import { RequestAirdropApi } from './requestAirdrop.js';
import { SendTransactionApi } from './sendTransaction.js';
import { SimulateTransactionApi } from './simulateTransaction.js';
type Config = Readonly<{

@@ -60,3 +60,4 @@ onIntegerOverflow?: (methodName: string, keyPath: (number | string)[], value: bigint) => void;

export declare function createSolanaRpcApi(config?: Config): IRpcApi<SolanaRpcMethods>;
export {};
export type { GetAccountInfoApi, GetBlockApi, GetProgramAccountsApi, GetSignatureStatusesApi, GetTransactionApi, RequestAirdropApi, SendTransactionApi, };
export type { Base64EncodedDataResponse, DataSlice, GetProgramAccountsDatasizeFilter, GetProgramAccountsMemcmpFilter, Slot, } from './common.js';
//# sourceMappingURL=index.d.ts.map
import { Commitment } from '@solana/rpc-types';
import { Blockhash } from '@solana/transactions';
import { RpcResponse, Slot } from './common';
import { RpcResponse, Slot } from './common.js';
type IsBlockhashValidApiResponse = RpcResponse<boolean>;

@@ -5,0 +5,0 @@ export interface IsBlockhashValidApi {

@@ -1,2 +0,2 @@

import { Slot } from './common';
import { Slot } from './common.js';
type MinimumLedgerSlotApiResponse = Slot;

@@ -3,0 +3,0 @@ export interface MinimumLedgerSlotApi {

import { Signature } from '@solana/keys';
import { Commitment } from '@solana/rpc-types';
import { Base64EncodedWireTransaction } from '@solana/transactions';
import { Slot } from './common';
import { Slot } from './common.js';
type SendTransactionConfig = Readonly<{

@@ -6,0 +6,0 @@ skipPreflight?: boolean;

import { Address } from '@solana/addresses';
import { Commitment } from '@solana/rpc-types';
import { Base64EncodedWireTransaction } from '@solana/transactions';
import { TransactionError } from '../transaction-error';
import { AccountInfoBase, AccountInfoWithBase64EncodedData, AccountInfoWithBase64EncodedZStdCompressedData, AccountInfoWithJsonData, Base58EncodedBytes, Base64EncodedDataResponse, RpcResponse, Slot, U64UnsafeBeyond2Pow53Minus1 } from './common';
import { TransactionError } from '../transaction-error.js';
import { AccountInfoBase, AccountInfoWithBase64EncodedData, AccountInfoWithBase64EncodedZStdCompressedData, AccountInfoWithJsonData, Base58EncodedBytes, Base64EncodedDataResponse, RpcResponse, Slot, U64UnsafeBeyond2Pow53Minus1 } from './common.js';
type SimulateTransactionConfigBase = Readonly<{

@@ -7,0 +7,0 @@ /**

import { Address } from '@solana/addresses';
import { Commitment } from '@solana/rpc-types';
import { AccountInfoBase, AccountInfoWithBase58Bytes, AccountInfoWithBase58EncodedData, AccountInfoWithBase64EncodedData, AccountInfoWithBase64EncodedZStdCompressedData, AccountInfoWithJsonData, RpcResponse } from '../rpc-methods/common';
import { AccountInfoBase, AccountInfoWithBase58Bytes, AccountInfoWithBase58EncodedData, AccountInfoWithBase64EncodedData, AccountInfoWithBase64EncodedZStdCompressedData, AccountInfoWithJsonData, RpcResponse } from '../rpc-methods/common.js';
type AccountNotificationsApiCommonConfig = Readonly<{

@@ -5,0 +5,0 @@ commitment?: Commitment;

import { Commitment, UnixTimestamp } from '@solana/rpc-types';
import { Blockhash, TransactionVersion } from '@solana/transactions';
import { Base58EncodedBytes, RpcResponse, Slot, U64UnsafeBeyond2Pow53Minus1 } from '../rpc-methods/common';
import { Reward, TransactionForAccounts, TransactionForFullBase58, TransactionForFullBase64, TransactionForFullJson, TransactionForFullJsonParsed } from '../rpc-methods/common-transactions';
import { Base58EncodedBytes, RpcResponse, Slot, U64UnsafeBeyond2Pow53Minus1 } from '../rpc-methods/common.js';
import { Reward, TransactionForAccounts, TransactionForFullBase58, TransactionForFullBase64, TransactionForFullJson, TransactionForFullJsonParsed } from '../rpc-methods/common-transactions.js';
type BlockNotificationsNotificationBase = Readonly<{

@@ -6,0 +6,0 @@ /**

@@ -1,11 +0,11 @@

import { IRpcSubscriptionsApi } from '@solana/rpc-transport/dist/types/json-rpc-types';
import { AccountNotificationsApi } from './account-notifications';
import { BlockNotificationsApi } from './block-notifications';
import { LogsNotificationsApi } from './logs-notifications';
import { ProgramNotificationsApi } from './program-notifications';
import { RootNotificationsApi } from './root-notifications';
import { SignatureNotificationsApi } from './signature-notifications';
import { SlotNotificationsApi } from './slot-notifications';
import { SlotsUpdatesNotificationsApi } from './slots-updates-notifications';
import { VoteNotificationsApi } from './vote-notifications';
import type { IRpcSubscriptionsApi } from '@solana/rpc-transport';
import { AccountNotificationsApi } from './account-notifications.js';
import { BlockNotificationsApi } from './block-notifications.js';
import { LogsNotificationsApi } from './logs-notifications.js';
import { ProgramNotificationsApi } from './program-notifications.js';
import { RootNotificationsApi } from './root-notifications.js';
import { SignatureNotificationsApi } from './signature-notifications.js';
import { SlotNotificationsApi } from './slot-notifications.js';
import { SlotsUpdatesNotificationsApi } from './slots-updates-notifications.js';
import { VoteNotificationsApi } from './vote-notifications.js';
type Config = Readonly<{

@@ -18,3 +18,3 @@ onIntegerOverflow?: (methodName: string, keyPath: (number | string)[], value: bigint) => void;

export declare function createSolanaRpcSubscriptionsApi_UNSTABLE(config?: Config): IRpcSubscriptionsApi<SolanaRpcSubscriptions & SolanaRpcSubscriptionsUnstable>;
export {};
export type { AccountNotificationsApi, SignatureNotificationsApi, SlotNotificationsApi };
//# sourceMappingURL=index.d.ts.map
import { Address } from '@solana/addresses';
import { Signature } from '@solana/keys';
import { Commitment } from '@solana/rpc-types';
import { RpcResponse } from '../rpc-methods/common';
import { TransactionError } from '../transaction-error';
import { RpcResponse } from '../rpc-methods/common.js';
import { TransactionError } from '../transaction-error.js';
type LogsNotificationsApiNotification = RpcResponse<Readonly<{

@@ -7,0 +7,0 @@ err: TransactionError | null;

import { Address } from '@solana/addresses';
import { Commitment } from '@solana/rpc-types';
import { AccountInfoBase, AccountInfoWithBase58Bytes, AccountInfoWithBase58EncodedData, AccountInfoWithBase64EncodedData, AccountInfoWithBase64EncodedZStdCompressedData, AccountInfoWithJsonData, Base58EncodedBytes, Base64EncodedBytes, RpcResponse, U64UnsafeBeyond2Pow53Minus1 } from '../rpc-methods/common';
import { AccountInfoBase, AccountInfoWithBase58Bytes, AccountInfoWithBase58EncodedData, AccountInfoWithBase64EncodedData, AccountInfoWithBase64EncodedZStdCompressedData, AccountInfoWithJsonData, Base58EncodedBytes, Base64EncodedBytes, RpcResponse, U64UnsafeBeyond2Pow53Minus1 } from '../rpc-methods/common.js';
type ProgramNotificationsMemcmpFilterBase58 = Readonly<{

@@ -5,0 +5,0 @@ offset: U64UnsafeBeyond2Pow53Minus1;

@@ -1,2 +0,2 @@

import { Slot } from '../rpc-methods/common';
import { Slot } from '../rpc-methods/common.js';
type RootNotificationsApiNotification = Slot;

@@ -3,0 +3,0 @@ export interface RootNotificationsApi {

import { Signature } from '@solana/keys';
import { Commitment } from '@solana/rpc-types';
import { RpcResponse } from '../rpc-methods/common';
import { TransactionError } from '../transaction-error';
import { RpcResponse } from '../rpc-methods/common.js';
import { TransactionError } from '../transaction-error.js';
type SignatureNotificationsApiNotificationReceived = RpcResponse<Readonly<string>>;

@@ -6,0 +6,0 @@ type SignatureNotificationsApiNotificationProcessed = RpcResponse<Readonly<{

@@ -1,2 +0,2 @@

import { Slot } from '../rpc-methods/common';
import { Slot } from '../rpc-methods/common.js';
type SlotNotificationsApiNotification = Readonly<{

@@ -3,0 +3,0 @@ parent: Slot;

@@ -1,2 +0,2 @@

import { Slot, U64UnsafeBeyond2Pow53Minus1 } from '../rpc-methods/common';
import { Slot, U64UnsafeBeyond2Pow53Minus1 } from '../rpc-methods/common.js';
type SlotsUpdatesNotificationsApiNotificationBase = Readonly<{

@@ -3,0 +3,0 @@ slot: Slot;

@@ -5,3 +5,3 @@ import { Address } from '@solana/addresses';

import { Blockhash } from '@solana/transactions';
import { Slot } from '../rpc-methods/common';
import { Slot } from '../rpc-methods/common.js';
type VoteNotificationsApiNotification = Readonly<{

@@ -8,0 +8,0 @@ hash: Blockhash;

{
"name": "@solana/rpc-core",
"version": "2.0.0-experimental.49dc7f3",
"version": "2.0.0-experimental.4c009bf",
"description": "A library for making calls to the Solana JSON RPC API",

@@ -51,4 +51,4 @@ "exports": {

"@swc/jest": "^0.2.29",
"@types/jest": "^29.5.6",
"@typescript-eslint/eslint-plugin": "^6.7.0",
"@types/jest": "^29.5.11",
"@typescript-eslint/eslint-plugin": "^6.13.2",
"@typescript-eslint/parser": "^6.3.0",

@@ -64,16 +64,16 @@ "agadoo": "^3.0.0",

"jest-runner-prettier": "^1.0.0",
"prettier": "^2.8",
"prettier": "^3.1",
"tsup": "^8.0.1",
"typescript": "^5.2.2",
"version-from-git": "^1.1.1",
"@solana/codecs-strings": "2.0.0-experimental.49dc7f3",
"@solana/addresses": "2.0.0-experimental.49dc7f3",
"@solana/codecs-core": "2.0.0-experimental.49dc7f3",
"@solana/keys": "2.0.0-experimental.49dc7f3",
"@solana/rpc-types": "2.0.0-experimental.49dc7f3",
"@solana/rpc-transport": "2.0.0-experimental.49dc7f3",
"@solana/transactions": "2.0.0-experimental.49dc7f3",
"@solana/addresses": "2.0.0-experimental.4c009bf",
"@solana/codecs-strings": "2.0.0-experimental.4c009bf",
"@solana/codecs-core": "2.0.0-experimental.4c009bf",
"@solana/rpc-transport": "2.0.0-experimental.4c009bf",
"@solana/keys": "2.0.0-experimental.4c009bf",
"@solana/rpc-types": "2.0.0-experimental.4c009bf",
"@solana/transactions": "2.0.0-experimental.4c009bf",
"build-scripts": "0.0.0",
"tsconfig": "0.0.0",
"test-config": "0.0.0"
"test-config": "0.0.0",
"tsconfig": "0.0.0"
},

@@ -90,3 +90,3 @@ "bundlewatch": {

"compile:js": "tsup --config build-scripts/tsup.config.package.ts",
"compile:typedefs": "tsc -p ./tsconfig.declarations.json",
"compile:typedefs": "tsc -p ./tsconfig.declarations.json && node node_modules/build-scripts/add-js-extension-to-types.mjs",
"dev": "jest -c node_modules/test-config/jest-dev.config.ts --globalSetup test-config/test-validator-setup.js --globalTeardown test-config/test-validator-teardown.js --rootDir . --watch",

@@ -93,0 +93,0 @@ "publish-packages": "pnpm publish --tag experimental --access public --no-git-checks",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc