Socket
Socket
Sign inDemoInstall

@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.762ff13 to 2.0.0-experimental.76cf6b4

dist/types/index.d.ts.map

4

dist/types/index.d.ts

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

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

@@ -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;

@@ -1,9 +0,9 @@

import { Base58EncodedAddress } from '@solana/addresses';
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<{
/** public key for an address lookup table account. */
accountKey: Base58EncodedAddress;
accountKey: Address;
/** List of indices used to load addresses of writable accounts from a lookup table. */

@@ -16,16 +16,16 @@ writableIndexes: readonly number[];

parsed: {
info?: object;
type: string;
info?: object;
};
program: string;
programId: Base58EncodedAddress;
programId: Address;
}>;
type PartiallyDecodedTransactionInstruction = Readonly<{
accounts: readonly Base58EncodedAddress[];
accounts: readonly Address[];
data: Base58EncodedBytes;
programId: Base58EncodedAddress;
programId: Address;
}>;
type ReturnData = {
/** the program that generated the return data */
programId: Base58EncodedAddress;
programId: Address;
/** the return data itself */

@@ -40,3 +40,3 @@ data: Base64EncodedDataResponse;

type TransactionParsedAccountLegacy = Readonly<{
pubkey: Base58EncodedAddress;
pubkey: Address;
signer: boolean;

@@ -47,3 +47,3 @@ source: 'transaction';

type TransactionParsedAccountVersioned = Readonly<{
pubkey: Base58EncodedAddress;
pubkey: Address;
signer: boolean;

@@ -141,4 +141,4 @@ source: 'lookupTable' | 'transaction';

loadedAddresses: {
writable: readonly Base58EncodedAddress[];
readonly: readonly Base58EncodedAddress[];
writable: readonly Address[];
readonly: readonly Address[];
};

@@ -207,3 +207,3 @@ }>;

message: {
accountKeys: readonly Base58EncodedAddress[];
accountKeys: readonly Address[];
header: {

@@ -229,3 +229,3 @@ numReadonlySignedAccounts: number;

/** The public key of the account that received the reward */
pubkey: Base58EncodedAddress;
pubkey: Address;
/** number of reward lamports credited or debited by the account */

@@ -232,0 +232,0 @@ lamports: SignedLamportsAsI64Unsafe;

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

import { Base58EncodedAddress } from '@solana/addresses';
import { Address } from '@solana/addresses';
import { LamportsUnsafeBeyond2Pow53Minus1, StringifiedBigInt, StringifiedNumber } from '@solana/rpc-types';

@@ -32,5 +32,2 @@ export type DataSlice = Readonly<{

export type Base64EncodedZStdCompressedDataResponse = [Base64EncodedZStdCompressedBytes, 'base64+zstd'];
export type Base58EncodedTransactionSignature = string & {
readonly __brand: unique symbol;
};
export type AccountInfoBase = Readonly<{

@@ -42,3 +39,3 @@ /** indicates if the account contains a program (and is strictly read-only) */

/** pubkey of the program this account has been assigned to */
owner: Base58EncodedAddress;
owner: Address;
/** the epoch at which this account will next owe rent */

@@ -64,3 +61,6 @@ rentEpoch: U64UnsafeBeyond2Pow53Minus1;

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

@@ -71,3 +71,3 @@ }> | Base64EncodedDataResponse;

account: TAccount;
pubkey: Base58EncodedAddress;
pubkey: Address;
}>;

@@ -84,7 +84,7 @@ export type TokenAmount = Readonly<{

/** Pubkey of the token's mint. */
mint: Base58EncodedAddress;
mint: Address;
/** Pubkey of token balance's owner. */
owner?: Base58EncodedAddress;
owner?: Address;
/** Pubkey of the Token program that owns the account. */
programId?: Base58EncodedAddress;
programId?: Address;
uiTokenAmount: TokenAmount;

@@ -94,6 +94,6 @@ }>;

export type TokenAccount = Readonly<{
mint: Base58EncodedAddress;
owner: Base58EncodedAddress;
mint: Address;
owner: Address;
tokenAmount: TokenAmount;
delegate?: Base58EncodedAddress;
delegate?: Address;
state: TokenAccountState;

@@ -103,3 +103,3 @@ isNative: boolean;

delegatedAmount?: TokenAmount;
closeAuthority?: Base58EncodedAddress;
closeAuthority?: Address;
extensions?: unknown[];

@@ -106,0 +106,0 @@ }>;

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

import { Base58EncodedAddress } from '@solana/addresses';
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>;

@@ -19,17 +19,17 @@ type NestInRpcResponseOrNull<T> = Readonly<{

*/
getAccountInfo(address: Base58EncodedAddress, config: GetAccountInfoApiCommonConfig & GetAccountInfoApiSliceableCommonConfig & Readonly<{
getAccountInfo(address: Address, config: GetAccountInfoApiCommonConfig & GetAccountInfoApiSliceableCommonConfig & Readonly<{
encoding: 'base64';
}>): GetAccountInfoApiResponseBase & NestInRpcResponseOrNull<AccountInfoWithBase64EncodedData>;
getAccountInfo(address: Base58EncodedAddress, config: GetAccountInfoApiCommonConfig & GetAccountInfoApiSliceableCommonConfig & Readonly<{
getAccountInfo(address: Address, config: GetAccountInfoApiCommonConfig & GetAccountInfoApiSliceableCommonConfig & Readonly<{
encoding: 'base64+zstd';
}>): GetAccountInfoApiResponseBase & NestInRpcResponseOrNull<AccountInfoWithBase64EncodedZStdCompressedData>;
getAccountInfo(address: Base58EncodedAddress, config: GetAccountInfoApiCommonConfig & Readonly<{
getAccountInfo(address: Address, config: GetAccountInfoApiCommonConfig & Readonly<{
encoding: 'jsonParsed';
}>): GetAccountInfoApiResponseBase & NestInRpcResponseOrNull<AccountInfoWithJsonData>;
getAccountInfo(address: Base58EncodedAddress, config: GetAccountInfoApiCommonConfig & GetAccountInfoApiSliceableCommonConfig & Readonly<{
getAccountInfo(address: Address, config: GetAccountInfoApiCommonConfig & GetAccountInfoApiSliceableCommonConfig & Readonly<{
encoding: 'base58';
}>): GetAccountInfoApiResponseBase & NestInRpcResponseOrNull<AccountInfoWithBase58EncodedData>;
getAccountInfo(address: Base58EncodedAddress, config?: GetAccountInfoApiCommonConfig): GetAccountInfoApiResponseBase & NestInRpcResponseOrNull<AccountInfoWithBase58Bytes>;
getAccountInfo(address: Address, config?: GetAccountInfoApiCommonConfig): GetAccountInfoApiResponseBase & NestInRpcResponseOrNull<AccountInfoWithBase58Bytes>;
}
export {};
//# sourceMappingURL=getAccountInfo.d.ts.map

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

import { Base58EncodedAddress } from '@solana/addresses';
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>;

@@ -9,3 +9,3 @@ export interface GetBalanceApi {

*/
getBalance(address: Base58EncodedAddress, config?: Readonly<{
getBalance(address: Address, config?: Readonly<{
commitment?: Commitment;

@@ -12,0 +12,0 @@ minContextSlot?: Slot;

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 {

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

import { Base58EncodedAddress } from '@solana/addresses';
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;

@@ -19,3 +19,3 @@ type NumberOfBlocksProduced = U64UnsafeBeyond2Pow53Minus1;

value: Readonly<{
byIdentity: Record<Base58EncodedAddress, [NumberOfLeaderSlots, NumberOfBlocksProduced]>;
byIdentity: Record<Address, [NumberOfLeaderSlots, NumberOfBlocksProduced]>;
}>;

@@ -34,3 +34,3 @@ }>;

*/
getBlockProduction<TIdentity extends Base58EncodedAddress>(config: GetBlockProductionApiConfigBase & Readonly<{
getBlockProduction<TIdentity extends Address>(config: GetBlockProductionApiConfigBase & Readonly<{
identity: TIdentity;

@@ -37,0 +37,0 @@ }>): GetBlockProductionApiResponseBase & GetBlockProductionApiResponseWithSingleIdentity<TIdentity>;

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;

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

import { Base58EncodedAddress } from '@solana/addresses';
import { Address } from '@solana/addresses';
type GetClusterNodesNode = Readonly<{

@@ -8,3 +8,3 @@ /** The unique identifier of the node's feature set */

/** Node public key, as base-58 encoded string */
pubkey: Base58EncodedAddress;
pubkey: Address;
/**

@@ -11,0 +11,0 @@ * JSON RPC network address for the node,

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;

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

import { Base58EncodedAddress } from '@solana/addresses';
import { Address } from '@solana/addresses';
type GetIdentityApiResponse = Readonly<{
identity: Base58EncodedAddress;
identity: Address;
}>;

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

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 */

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

import { Base58EncodedAddress } from '@solana/addresses';
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<{

@@ -15,3 +15,3 @@ amount: LamportsUnsafeBeyond2Pow53Minus1;

*/
getInflationReward(addresses: Base58EncodedAddress[], config?: Readonly<{
getInflationReward(addresses: Address[], config?: Readonly<{
commitment?: Commitment;

@@ -18,0 +18,0 @@ epoch?: U64UnsafeBeyond2Pow53Minus1;

@@ -1,7 +0,7 @@

import { Base58EncodedAddress } from '@solana/addresses';
import { Address } from '@solana/addresses';
import { Commitment, LamportsUnsafeBeyond2Pow53Minus1 } from '@solana/rpc-types';
import { RpcResponse } from './common';
import { RpcResponse } from './common.js';
type GetLargestAccountsResponseItem = Readonly<{
/** Base-58 encoded address of the account */
address: Base58EncodedAddress;
address: Address;
/** Number of lamports in the account */

@@ -8,0 +8,0 @@ lamports: LamportsUnsafeBeyond2Pow53Minus1;

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 */

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

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

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

type GetLeaderScheduleApiResponseBase = Readonly<{
[key: Base58EncodedAddress]: Slot[];
[key: Address]: Slot[];
}>;

@@ -36,3 +36,3 @@ export interface GetLeaderScheduleApi {

/** Only return results for this validator identity (base58 encoded address) */
identity?: Base58EncodedAddress;
identity?: Address;
}>): GetLeaderScheduleApiResponseBase | null;

@@ -42,3 +42,3 @@ getLeaderSchedule(config?: Readonly<{

/** Only return results for this validator identity (base58 encoded address) */
identity?: Base58EncodedAddress;
identity?: Address;
}>): GetLeaderScheduleApiResponseBase;

@@ -45,0 +45,0 @@ }

@@ -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 {

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

import { Base58EncodedAddress } from '@solana/addresses';
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;

@@ -21,3 +21,3 @@ type GetMultipleAccountsApiCommonConfig = Readonly<{

/** An array of up to 100 Pubkeys to query */
addresses: Base58EncodedAddress[], config: GetMultipleAccountsApiCommonConfig & GetMultipleAccountsApiSliceableCommonConfig & Readonly<{
addresses: Address[], config: GetMultipleAccountsApiCommonConfig & GetMultipleAccountsApiSliceableCommonConfig & Readonly<{
encoding: 'base64';

@@ -27,3 +27,3 @@ }>): RpcResponse<(GetMultipleAccountsApiResponseBase & (AccountInfoWithBase64EncodedData | null))[]>;

/** An array of up to 100 Pubkeys to query */
addresses: Base58EncodedAddress[], config: GetMultipleAccountsApiCommonConfig & GetMultipleAccountsApiSliceableCommonConfig & Readonly<{
addresses: Address[], config: GetMultipleAccountsApiCommonConfig & GetMultipleAccountsApiSliceableCommonConfig & Readonly<{
encoding: 'base64+zstd';

@@ -33,3 +33,3 @@ }>): RpcResponse<(GetMultipleAccountsApiResponseBase & (AccountInfoWithBase64EncodedZStdCompressedData | null))[]>;

/** An array of up to 100 Pubkeys to query */
addresses: Base58EncodedAddress[], config: GetMultipleAccountsApiCommonConfig & Readonly<{
addresses: Address[], config: GetMultipleAccountsApiCommonConfig & Readonly<{
encoding: 'jsonParsed';

@@ -39,3 +39,3 @@ }>): RpcResponse<(GetMultipleAccountsApiResponseBase & (AccountInfoWithJsonData | null))[]>;

/** An array of up to 100 Pubkeys to query */
addresses: Base58EncodedAddress[], config: GetMultipleAccountsApiCommonConfig & GetMultipleAccountsApiSliceableCommonConfig & Readonly<{
addresses: Address[], config: GetMultipleAccountsApiCommonConfig & GetMultipleAccountsApiSliceableCommonConfig & Readonly<{
encoding: 'base58';

@@ -45,5 +45,5 @@ }>): RpcResponse<(GetMultipleAccountsApiResponseBase & (AccountInfoWithBase58EncodedData | null))[]>;

/** An array of up to 100 Pubkeys to query */
addresses: Base58EncodedAddress[], config?: GetMultipleAccountsApiCommonConfig): RpcResponse<(GetMultipleAccountsApiResponseBase & (AccountInfoWithBase64EncodedData | null))[]>;
addresses: Address[], config?: GetMultipleAccountsApiCommonConfig): RpcResponse<(GetMultipleAccountsApiResponseBase & (AccountInfoWithBase64EncodedData | null))[]>;
}
export {};
//# sourceMappingURL=getMultipleAccounts.d.ts.map

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

import { Base58EncodedAddress } from '@solana/addresses';
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<{

@@ -20,38 +20,38 @@ /** @defaultValue "finalized" */

*/
getProgramAccounts(program: Base58EncodedAddress, config: GetProgramAccountsApiCommonConfig & GetProgramAccountsApiSliceableCommonConfig & Readonly<{
getProgramAccounts(program: Address, config: GetProgramAccountsApiCommonConfig & GetProgramAccountsApiSliceableCommonConfig & Readonly<{
encoding: 'base64';
withContext: true;
}>): RpcResponse<AccountInfoWithPubkey<AccountInfoBase & AccountInfoWithBase64EncodedData>[]>;
getProgramAccounts(program: Base58EncodedAddress, config: GetProgramAccountsApiCommonConfig & GetProgramAccountsApiSliceableCommonConfig & Readonly<{
getProgramAccounts(program: Address, config: GetProgramAccountsApiCommonConfig & GetProgramAccountsApiSliceableCommonConfig & Readonly<{
encoding: 'base64';
withContext?: boolean;
}>): AccountInfoWithPubkey<AccountInfoBase & AccountInfoWithBase64EncodedData>[];
getProgramAccounts(program: Base58EncodedAddress, config: GetProgramAccountsApiCommonConfig & GetProgramAccountsApiSliceableCommonConfig & Readonly<{
getProgramAccounts(program: Address, config: GetProgramAccountsApiCommonConfig & GetProgramAccountsApiSliceableCommonConfig & Readonly<{
encoding: 'base64+zstd';
withContext: true;
}>): RpcResponse<AccountInfoWithPubkey<AccountInfoBase & AccountInfoWithBase64EncodedZStdCompressedData>[]>;
getProgramAccounts(program: Base58EncodedAddress, config: GetProgramAccountsApiCommonConfig & GetProgramAccountsApiSliceableCommonConfig & Readonly<{
getProgramAccounts(program: Address, config: GetProgramAccountsApiCommonConfig & GetProgramAccountsApiSliceableCommonConfig & Readonly<{
encoding: 'base64+zstd';
withContext?: boolean;
}>): AccountInfoWithPubkey<AccountInfoBase & AccountInfoWithBase64EncodedZStdCompressedData>[];
getProgramAccounts(program: Base58EncodedAddress, config: GetProgramAccountsApiCommonConfig & Readonly<{
getProgramAccounts(program: Address, config: GetProgramAccountsApiCommonConfig & Readonly<{
encoding: 'jsonParsed';
withContext: true;
}>): RpcResponse<AccountInfoWithPubkey<AccountInfoBase & AccountInfoWithJsonData>[]>;
getProgramAccounts(program: Base58EncodedAddress, config: GetProgramAccountsApiCommonConfig & Readonly<{
getProgramAccounts(program: Address, config: GetProgramAccountsApiCommonConfig & Readonly<{
encoding: 'jsonParsed';
withContext?: boolean;
}>): AccountInfoWithPubkey<AccountInfoBase & AccountInfoWithJsonData>[];
getProgramAccounts(program: Base58EncodedAddress, config: GetProgramAccountsApiCommonConfig & GetProgramAccountsApiSliceableCommonConfig & Readonly<{
getProgramAccounts(program: Address, config: GetProgramAccountsApiCommonConfig & GetProgramAccountsApiSliceableCommonConfig & Readonly<{
encoding: 'base58';
withContext: true;
}>): RpcResponse<AccountInfoWithPubkey<AccountInfoBase & AccountInfoWithBase58EncodedData>[]>;
getProgramAccounts(program: Base58EncodedAddress, config: GetProgramAccountsApiCommonConfig & GetProgramAccountsApiSliceableCommonConfig & Readonly<{
getProgramAccounts(program: Address, config: GetProgramAccountsApiCommonConfig & GetProgramAccountsApiSliceableCommonConfig & Readonly<{
encoding: 'base58';
withContext?: boolean;
}>): AccountInfoWithPubkey<AccountInfoBase & AccountInfoWithBase58EncodedData>[];
getProgramAccounts(program: Base58EncodedAddress, config: GetProgramAccountsApiCommonConfig & GetProgramAccountsApiSliceableCommonConfig & Readonly<{
getProgramAccounts(program: Address, config: GetProgramAccountsApiCommonConfig & GetProgramAccountsApiSliceableCommonConfig & Readonly<{
withContext: true;
}>): RpcResponse<AccountInfoWithPubkey<AccountInfoBase & AccountInfoWithBase58Bytes>[]>;
getProgramAccounts(program: Base58EncodedAddress, config?: GetProgramAccountsApiCommonConfig & GetProgramAccountsApiSliceableCommonConfig & Readonly<{
getProgramAccounts(program: Address, config?: GetProgramAccountsApiCommonConfig & GetProgramAccountsApiSliceableCommonConfig & Readonly<{
withContext?: boolean;

@@ -58,0 +58,0 @@ }>): AccountInfoWithPubkey<AccountInfoBase & AccountInfoWithBase58Bytes>[];

@@ -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 */

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

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

@@ -26,5 +26,5 @@ /**

*/
addresses?: Base58EncodedAddress[]): GetRecentPrioritizationFeesApiResponse;
addresses?: Address[]): GetRecentPrioritizationFeesApiResponse;
}
export {};
//# sourceMappingURL=getRecentPrioritizationFees.d.ts.map

@@ -1,9 +0,9 @@

import { Base58EncodedAddress } from '@solana/addresses';
import { Address } from '@solana/addresses';
import { Signature } from '@solana/keys';
import { Commitment, UnixTimestamp } from '@solana/rpc-types';
import { TransactionSignature } from '@solana/transactions';
import { TransactionError } from '../transaction-error';
import { RpcResponse, Slot } from './common';
type GetSignaturesForAddressTransaction = RpcResponse<{
import { TransactionError } from '../transaction-error.js';
import { Slot } from './common.js';
type GetSignaturesForAddressTransaction = Readonly<{
/** transaction signature as base-58 encoded string */
signature: TransactionSignature;
signature: Signature;
/** The slot that contains the block with the transaction */

@@ -29,5 +29,5 @@ slot: Slot;

/** start searching backwards from this transaction signature. If not provided the search starts from the top of the highest max confirmed block. */
before?: TransactionSignature;
before?: Signature;
/** search until this transaction signature, if found before limit reached */
until?: TransactionSignature;
until?: Signature;
}>;

@@ -39,5 +39,5 @@ export interface GetSignaturesForAddressApi {

*/
getSignaturesForAddress(address: Base58EncodedAddress, config?: GetSignaturesForAddressConfig): GetSignaturesForAddressApiResponse;
getSignaturesForAddress(address: Address, config?: GetSignaturesForAddressConfig): GetSignaturesForAddressApiResponse;
}
export {};
//# sourceMappingURL=getSignaturesForAddress.d.ts.map

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

import { Signature } from '@solana/keys';
import { Commitment } from '@solana/rpc-types';
import { TransactionSignature } from '@solana/transactions';
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 */

@@ -50,3 +50,3 @@ type TransactionStatusOk = Readonly<{

*/
signatures: TransactionSignature[], config?: Readonly<{
signatures: Signature[], config?: Readonly<{
/**

@@ -53,0 +53,0 @@ * if `true` - a Solana node will search its ledger cache for any

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 {

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

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

@@ -11,4 +11,4 @@ /**

minContextSlot?: Slot;
}>): Base58EncodedAddress;
}>): Address;
}
//# sourceMappingURL=getSlotLeader.d.ts.map

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

import { Base58EncodedAddress } from '@solana/addresses';
import { Slot } from './common';
import { Address } from '@solana/addresses';
import { Slot } from './common.js';
/** array of Node identity public keys as base-58 encoded strings */
type GetSlotLeadersApiResponse = Base58EncodedAddress[];
type GetSlotLeadersApiResponse = Address[];
export interface GetSlotLeadersApi {

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

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

import { Base58EncodedAddress } from '@solana/addresses';
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<{

@@ -16,3 +16,3 @@ /** Stake active during the epoch */

*/
getStakeActivation(address: Base58EncodedAddress, config?: Readonly<{
getStakeActivation(address: Address, config?: Readonly<{
commitment?: Commitment;

@@ -19,0 +19,0 @@ minContextSlot?: Slot;

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 {

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

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

@@ -19,3 +19,3 @@ commitment?: Commitment;

/** an array of account addresses of non-circulating accounts */
nonCirculatingAccounts: [Base58EncodedAddress];
nonCirculatingAccounts: [Address];
}>;

@@ -22,0 +22,0 @@ }>;

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

import { Base58EncodedAddress } from '@solana/addresses';
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>;

@@ -11,3 +11,3 @@ export interface GetTokenAccountBalanceApi {

/** Pubkey of Token account to query, as base-58 encoded string */
address: Base58EncodedAddress, config?: Readonly<{
address: Address, config?: Readonly<{
commitment?: Commitment;

@@ -14,0 +14,0 @@ }>): GetTokenAccountBalanceApiResponse;

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

import { Base58EncodedAddress } from '@solana/addresses';
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<{

@@ -17,7 +17,7 @@ data: Readonly<{

/** Pubkey of the specific token Mint to limit accounts to */
mint: Base58EncodedAddress;
mint: Address;
}>;
type ProgramIdFilter = Readonly<{
/** Pubkey of the Token program that owns the accounts */
programId: Base58EncodedAddress;
programId: Address;
}>;

@@ -39,17 +39,17 @@ type AccountsFilter = MintFilter | ProgramIdFilter;

*/
getTokenAccountsByDelegate(program: Base58EncodedAddress, filter: AccountsFilter, config: GetTokenAccountsByDelegateApiCommonConfig & GetTokenAccountsByDelegateApiSliceableCommonConfig & Readonly<{
getTokenAccountsByDelegate(program: Address, filter: AccountsFilter, config: GetTokenAccountsByDelegateApiCommonConfig & GetTokenAccountsByDelegateApiSliceableCommonConfig & Readonly<{
encoding: 'base64';
}>): RpcResponse<AccountInfoWithPubkey<AccountInfoBase & AccountInfoWithBase64EncodedData>[]>;
getTokenAccountsByDelegate(program: Base58EncodedAddress, filter: AccountsFilter, config: GetTokenAccountsByDelegateApiCommonConfig & GetTokenAccountsByDelegateApiSliceableCommonConfig & Readonly<{
getTokenAccountsByDelegate(program: Address, filter: AccountsFilter, config: GetTokenAccountsByDelegateApiCommonConfig & GetTokenAccountsByDelegateApiSliceableCommonConfig & Readonly<{
encoding: 'base64+zstd';
}>): RpcResponse<AccountInfoWithPubkey<AccountInfoBase & AccountInfoWithBase64EncodedZStdCompressedData>[]>;
getTokenAccountsByDelegate(program: Base58EncodedAddress, filter: AccountsFilter, config: GetTokenAccountsByDelegateApiCommonConfig & Readonly<{
getTokenAccountsByDelegate(program: Address, filter: AccountsFilter, config: GetTokenAccountsByDelegateApiCommonConfig & Readonly<{
encoding: 'jsonParsed';
}>): RpcResponse<AccountInfoWithPubkey<AccountInfoBase & TokenAccountInfoWithJsonData>[]>;
getTokenAccountsByDelegate(program: Base58EncodedAddress, filter: AccountsFilter, config: GetTokenAccountsByDelegateApiCommonConfig & GetTokenAccountsByDelegateApiSliceableCommonConfig & Readonly<{
getTokenAccountsByDelegate(program: Address, filter: AccountsFilter, config: GetTokenAccountsByDelegateApiCommonConfig & GetTokenAccountsByDelegateApiSliceableCommonConfig & Readonly<{
encoding: 'base58';
}>): RpcResponse<AccountInfoWithPubkey<AccountInfoBase & AccountInfoWithBase58EncodedData>[]>;
getTokenAccountsByDelegate(program: Base58EncodedAddress, filter: AccountsFilter, config?: GetTokenAccountsByDelegateApiCommonConfig & GetTokenAccountsByDelegateApiSliceableCommonConfig): RpcResponse<AccountInfoWithPubkey<AccountInfoBase & AccountInfoWithBase58Bytes>[]>;
getTokenAccountsByDelegate(program: Address, filter: AccountsFilter, config?: GetTokenAccountsByDelegateApiCommonConfig & GetTokenAccountsByDelegateApiSliceableCommonConfig): RpcResponse<AccountInfoWithPubkey<AccountInfoBase & AccountInfoWithBase58Bytes>[]>;
}
export {};
//# sourceMappingURL=getTokenAccountsByDelegate.d.ts.map

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

import { Base58EncodedAddress } from '@solana/addresses';
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<{

@@ -17,7 +17,7 @@ data: Readonly<{

/** Pubkey of the specific token Mint to limit accounts to */
mint: Base58EncodedAddress;
mint: Address;
}>;
type ProgramIdFilter = Readonly<{
/** Pubkey of the Token program that owns the accounts */
programId: Base58EncodedAddress;
programId: Address;
}>;

@@ -39,17 +39,17 @@ type AccountsFilter = MintFilter | ProgramIdFilter;

*/
getTokenAccountsByOwner(program: Base58EncodedAddress, filter: AccountsFilter, config: GetTokenAccountsByOwnerApiCommonConfig & GetTokenAccountsByOwnerApiSliceableCommonConfig & Readonly<{
getTokenAccountsByOwner(owner: Address, filter: AccountsFilter, config: GetTokenAccountsByOwnerApiCommonConfig & GetTokenAccountsByOwnerApiSliceableCommonConfig & Readonly<{
encoding: 'base64';
}>): RpcResponse<AccountInfoWithPubkey<AccountInfoBase & AccountInfoWithBase64EncodedData>[]>;
getTokenAccountsByOwner(program: Base58EncodedAddress, filter: AccountsFilter, config: GetTokenAccountsByOwnerApiCommonConfig & GetTokenAccountsByOwnerApiSliceableCommonConfig & Readonly<{
getTokenAccountsByOwner(owner: Address, filter: AccountsFilter, config: GetTokenAccountsByOwnerApiCommonConfig & GetTokenAccountsByOwnerApiSliceableCommonConfig & Readonly<{
encoding: 'base64+zstd';
}>): RpcResponse<AccountInfoWithPubkey<AccountInfoBase & AccountInfoWithBase64EncodedZStdCompressedData>[]>;
getTokenAccountsByOwner(program: Base58EncodedAddress, filter: AccountsFilter, config: GetTokenAccountsByOwnerApiCommonConfig & Readonly<{
getTokenAccountsByOwner(owner: Address, filter: AccountsFilter, config: GetTokenAccountsByOwnerApiCommonConfig & Readonly<{
encoding: 'jsonParsed';
}>): RpcResponse<AccountInfoWithPubkey<AccountInfoBase & TokenAccountInfoWithJsonData>[]>;
getTokenAccountsByOwner(program: Base58EncodedAddress, filter: AccountsFilter, config: GetTokenAccountsByOwnerApiCommonConfig & GetTokenAccountsByOwnerApiSliceableCommonConfig & Readonly<{
getTokenAccountsByOwner(owner: Address, filter: AccountsFilter, config: GetTokenAccountsByOwnerApiCommonConfig & GetTokenAccountsByOwnerApiSliceableCommonConfig & Readonly<{
encoding: 'base58';
}>): RpcResponse<AccountInfoWithPubkey<AccountInfoBase & AccountInfoWithBase58EncodedData>[]>;
getTokenAccountsByOwner(program: Base58EncodedAddress, filter: AccountsFilter, config?: GetTokenAccountsByOwnerApiCommonConfig & GetTokenAccountsByOwnerApiSliceableCommonConfig): RpcResponse<AccountInfoWithPubkey<AccountInfoBase & AccountInfoWithBase58Bytes>[]>;
getTokenAccountsByOwner(owner: Address, filter: AccountsFilter, config?: GetTokenAccountsByOwnerApiCommonConfig & GetTokenAccountsByOwnerApiSliceableCommonConfig): RpcResponse<AccountInfoWithPubkey<AccountInfoBase & AccountInfoWithBase58Bytes>[]>;
}
export {};
//# sourceMappingURL=getTokenAccountsByOwner.d.ts.map

@@ -1,6 +0,6 @@

import { Base58EncodedAddress } from '@solana/addresses';
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 & {
address: Base58EncodedAddress;
address: Address;
}[]>;

@@ -11,3 +11,3 @@ export interface GetTokenLargestAccountsApi {

*/
getTokenLargestAccounts(tokenMint: Base58EncodedAddress, config?: Readonly<{
getTokenLargestAccounts(tokenMint: Address, config?: Readonly<{
commitment?: Commitment;

@@ -14,0 +14,0 @@ }>): GetTokenLargestAccountsApiResponse;

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

import { Base58EncodedAddress } from '@solana/addresses';
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>;

@@ -11,3 +11,3 @@ export interface GetTokenSupplyApi {

/** Pubkey of the token Mint to query, as base-58 encoded string */
address: Base58EncodedAddress, config?: Readonly<{
address: Address, config?: Readonly<{
commitment?: Commitment;

@@ -14,0 +14,0 @@ }>): GetTokenSupplyApiResponse;

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

import { Base58EncodedAddress } from '@solana/addresses';
import { Address } from '@solana/addresses';
import { Signature } from '@solana/keys';
import { Commitment, LamportsUnsafeBeyond2Pow53Minus1, UnixTimestamp } from '@solana/rpc-types';
import { Blockhash, TransactionVersion } from '@solana/transactions';
import { TransactionSignature } 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 = {
/** the program that generated the return data */
programId: Base58EncodedAddress;
programId: Address;
/** the return data itself */

@@ -43,3 +43,3 @@ data: Base64EncodedDataResponse;

/** public key for an address lookup table account. */
accountKey: Base58EncodedAddress;
accountKey: Address;
/** List of indices used to load addresses of writable accounts from a lookup table. */

@@ -63,3 +63,3 @@ writableIndexes: readonly number[];

message: {
accountKeys: readonly Base58EncodedAddress[];
accountKeys: readonly Address[];
header: {

@@ -74,5 +74,5 @@ numReadonlySignedAccounts: number;

type PartiallyDecodedTransactionInstruction = Readonly<{
accounts: readonly Base58EncodedAddress[];
accounts: readonly Address[];
data: Base58EncodedBytes;
programId: Base58EncodedAddress;
programId: Address;
}>;

@@ -85,3 +85,3 @@ type ParsedTransactionInstruction = Readonly<{

program: string;
programId: Base58EncodedAddress;
programId: Address;
}>;

@@ -92,3 +92,3 @@ type TransactionJsonParsed = TransactionBase & Readonly<{

{
pubkey: Base58EncodedAddress;
pubkey: Address;
signer: boolean;

@@ -114,4 +114,4 @@ source: string;

loadedAddresses: {
writable: readonly Base58EncodedAddress[];
readonly: readonly Base58EncodedAddress[];
writable: readonly Address[];
readonly: readonly Address[];
};

@@ -138,3 +138,3 @@ }>;

*/
getTransaction<TMaxSupportedTransactionVersion extends TransactionVersion | void = void>(signature: TransactionSignature, config: GetTransactionCommonConfig<TMaxSupportedTransactionVersion> & Readonly<{
getTransaction<TMaxSupportedTransactionVersion extends TransactionVersion | void = void>(signature: Signature, config: GetTransactionCommonConfig<TMaxSupportedTransactionVersion> & Readonly<{
encoding: 'jsonParsed';

@@ -147,3 +147,3 @@ }>): (GetTransactionApiResponseBase & (TMaxSupportedTransactionVersion extends void ? Record<string, never> : {

}) | null;
getTransaction<TMaxSupportedTransactionVersion extends TransactionVersion | void = void>(signature: TransactionSignature, config: GetTransactionCommonConfig<TMaxSupportedTransactionVersion> & Readonly<{
getTransaction<TMaxSupportedTransactionVersion extends TransactionVersion | void = void>(signature: Signature, config: GetTransactionCommonConfig<TMaxSupportedTransactionVersion> & Readonly<{
encoding: 'base64';

@@ -156,3 +156,3 @@ }>): (GetTransactionApiResponseBase & (TMaxSupportedTransactionVersion extends void ? Record<string, never> : {

}) | null;
getTransaction<TMaxSupportedTransactionVersion extends TransactionVersion | void = void>(signature: TransactionSignature, config: GetTransactionCommonConfig<TMaxSupportedTransactionVersion> & Readonly<{
getTransaction<TMaxSupportedTransactionVersion extends TransactionVersion | void = void>(signature: Signature, config: GetTransactionCommonConfig<TMaxSupportedTransactionVersion> & Readonly<{
encoding: 'base58';

@@ -165,3 +165,3 @@ }>): (GetTransactionApiResponseBase & (TMaxSupportedTransactionVersion extends void ? Record<string, never> : {

}) | null;
getTransaction<TMaxSupportedTransactionVersion extends TransactionVersion | void = void>(signature: TransactionSignature, config?: GetTransactionCommonConfig<TMaxSupportedTransactionVersion> & Readonly<{
getTransaction<TMaxSupportedTransactionVersion extends TransactionVersion | void = void>(signature: Signature, config?: GetTransactionCommonConfig<TMaxSupportedTransactionVersion> & Readonly<{
encoding?: 'json';

@@ -168,0 +168,0 @@ }>): (GetTransactionApiResponseBase & (TMaxSupportedTransactionVersion extends void ? Record<string, never> : {

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 {

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

import { Base58EncodedAddress } from '@solana/addresses';
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;

@@ -8,7 +8,7 @@ type Credits = U64UnsafeBeyond2Pow53Minus1;

type EpochCredit = [Epoch, Credits, PreviousCredits];
type VoteAccount<TVotePubkey extends Base58EncodedAddress> = Readonly<{
type VoteAccount<TVotePubkey extends Address> = Readonly<{
/** Vote account address */
votePubkey: TVotePubkey;
/** Validator identity */
nodePubkey: Base58EncodedAddress;
nodePubkey: Address;
/** the stake, in lamports, delegated to this vote account and active in this epoch */

@@ -27,7 +27,7 @@ activatedStake: U64UnsafeBeyond2Pow53Minus1;

}>;
type GetVoteAccountsApiResponse<TVotePubkey extends Base58EncodedAddress> = Readonly<{
type GetVoteAccountsApiResponse<TVotePubkey extends Address> = Readonly<{
current: readonly VoteAccount<TVotePubkey>[];
delinquent: readonly VoteAccount<TVotePubkey>[];
}>;
type GetVoteAccountsConfig<TVotePubkey extends Base58EncodedAddress> = Readonly<{
type GetVoteAccountsConfig<TVotePubkey extends Address> = Readonly<{
commitment?: Commitment;

@@ -43,5 +43,5 @@ /** Only return results for this validator vote address */

/** Returns the account info and associated stake for all the voting accounts in the current bank. */
getVoteAccounts<TVoteAccount extends Base58EncodedAddress>(config?: GetVoteAccountsConfig<TVoteAccount>): GetVoteAccountsApiResponse<TVoteAccount>;
getVoteAccounts<TVoteAccount extends Address>(config?: GetVoteAccountsConfig<TVoteAccount>): GetVoteAccountsApiResponse<TVoteAccount>;
}
export {};
//# sourceMappingURL=getVoteAccounts.d.ts.map

@@ -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 {

@@ -1,8 +0,8 @@

import { Base58EncodedAddress } from '@solana/addresses';
import { Address } from '@solana/addresses';
import { Signature } from '@solana/keys';
import { Commitment, LamportsUnsafeBeyond2Pow53Minus1 } from '@solana/rpc-types';
import { Base58EncodedTransactionSignature } from './common';
type RequestAirdropConfig = Readonly<{
commitment?: Commitment;
}>;
type RequestAirdropResponse = Base58EncodedTransactionSignature;
type RequestAirdropResponse = Signature;
export interface RequestAirdropApi {

@@ -12,5 +12,5 @@ /**

*/
requestAirdrop(recipientAccount: Base58EncodedAddress, lamports: LamportsUnsafeBeyond2Pow53Minus1, config?: RequestAirdropConfig): RequestAirdropResponse;
requestAirdrop(recipientAccount: Address, lamports: LamportsUnsafeBeyond2Pow53Minus1, config?: RequestAirdropConfig): RequestAirdropResponse;
}
export {};
//# sourceMappingURL=requestAirdrop.d.ts.map

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

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

@@ -10,3 +11,3 @@ skipPreflight?: boolean;

}>;
type SendTransactionResponse = Base58EncodedTransactionSignature;
type SendTransactionResponse = Signature;
export interface SendTransactionApi {

@@ -13,0 +14,0 @@ /** @deprecated Set `encoding` to `'base64'` when calling this method */

@@ -1,6 +0,6 @@

import { Base58EncodedAddress } from '@solana/addresses';
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<{

@@ -34,3 +34,3 @@ /**

/** An `array` of accounts to return */
addresses: Base58EncodedAddress[];
addresses: Address[];
/** Encoding for returned Account data */

@@ -43,3 +43,3 @@ encoding: 'base64+zstd';

/** An `array` of accounts to return */
addresses: Base58EncodedAddress[];
addresses: Address[];
/** Encoding for returned Account data */

@@ -52,3 +52,3 @@ encoding: 'jsonParsed';

/** An `array` of accounts to return */
addresses: Base58EncodedAddress[];
addresses: Address[];
/** Encoding for returned Account data */

@@ -68,3 +68,3 @@ encoding?: 'base64';

/** The program that generated the return data */
programId: Base58EncodedAddress;
programId: Address;
/** The return data itself, as base-64 encoded binary data */

@@ -71,0 +71,0 @@ data: Base64EncodedDataResponse;

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

import { Base58EncodedAddress } from '@solana/addresses';
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<{

@@ -15,17 +15,17 @@ commitment?: Commitment;

*/
accountNotifications(address: Base58EncodedAddress, config: AccountNotificationsApiCommonConfig & Readonly<{
accountNotifications(address: Address, config: AccountNotificationsApiCommonConfig & Readonly<{
encoding: 'base64';
}>): RpcResponse<AccountInfoBase & AccountInfoWithBase64EncodedData>;
accountNotifications(address: Base58EncodedAddress, config: AccountNotificationsApiCommonConfig & Readonly<{
accountNotifications(address: Address, config: AccountNotificationsApiCommonConfig & Readonly<{
encoding: 'base64+zstd';
}>): RpcResponse<AccountInfoBase & AccountInfoWithBase64EncodedZStdCompressedData>;
accountNotifications(address: Base58EncodedAddress, config: AccountNotificationsApiCommonConfig & Readonly<{
accountNotifications(address: Address, config: AccountNotificationsApiCommonConfig & Readonly<{
encoding: 'jsonParsed';
}>): RpcResponse<AccountInfoBase & AccountInfoWithJsonData>;
accountNotifications(address: Base58EncodedAddress, config: AccountNotificationsApiCommonConfig & Readonly<{
accountNotifications(address: Address, config: AccountNotificationsApiCommonConfig & Readonly<{
encoding: 'base58';
}>): RpcResponse<AccountInfoBase & AccountInfoWithBase58EncodedData>;
accountNotifications(address: Base58EncodedAddress, config?: AccountNotificationsApiCommonConfig): RpcResponse<AccountInfoBase & AccountInfoWithBase58Bytes>;
accountNotifications(address: Address, config?: AccountNotificationsApiCommonConfig): RpcResponse<AccountInfoBase & AccountInfoWithBase58Bytes>;
}
export {};
//# sourceMappingURL=account-notifications.d.ts.map
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

@@ -1,13 +0,13 @@

import { Base58EncodedAddress } from '@solana/addresses';
import { Address } from '@solana/addresses';
import { Signature } from '@solana/keys';
import { Commitment } from '@solana/rpc-types';
import { TransactionSignature } from '@solana/transactions';
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<{
err: TransactionError | null;
logs: readonly string[] | null;
signature: TransactionSignature;
signature: Signature;
}>>;
type LogsNotificationsApiFilter = 'all' | 'allWithVotes' | {
mentions: [Base58EncodedAddress];
mentions: [Address];
};

@@ -14,0 +14,0 @@ type LogsNotificationsApiConfig = Readonly<{

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

import { Base58EncodedAddress } from '@solana/addresses';
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<{

@@ -18,3 +18,3 @@ offset: U64UnsafeBeyond2Pow53Minus1;

type ProgramNotificationsApiNotificationBase<TData> = RpcResponse<Readonly<{
pubkey: Base58EncodedAddress;
pubkey: Address;
account: AccountInfoBase & TData;

@@ -31,17 +31,17 @@ }>>;

*/
programNotifications(programId: Base58EncodedAddress, config: ProgramNotificationsApiCommonConfig & Readonly<{
programNotifications(programId: Address, config: ProgramNotificationsApiCommonConfig & Readonly<{
encoding: 'base64';
}>): ProgramNotificationsApiNotificationBase<AccountInfoWithBase64EncodedData>;
programNotifications(programId: Base58EncodedAddress, config: ProgramNotificationsApiCommonConfig & Readonly<{
programNotifications(programId: Address, config: ProgramNotificationsApiCommonConfig & Readonly<{
encoding: 'base64+zstd';
}>): ProgramNotificationsApiNotificationBase<AccountInfoWithBase64EncodedZStdCompressedData>;
programNotifications(programId: Base58EncodedAddress, config: ProgramNotificationsApiCommonConfig & Readonly<{
programNotifications(programId: Address, config: ProgramNotificationsApiCommonConfig & Readonly<{
encoding: 'jsonParsed';
}>): ProgramNotificationsApiNotificationBase<AccountInfoWithJsonData>;
programNotifications(programId: Base58EncodedAddress, config: ProgramNotificationsApiCommonConfig & Readonly<{
programNotifications(programId: Address, config: ProgramNotificationsApiCommonConfig & Readonly<{
encoding: 'base58';
}>): ProgramNotificationsApiNotificationBase<AccountInfoWithBase58EncodedData>;
programNotifications(programId: Base58EncodedAddress, config?: ProgramNotificationsApiCommonConfig): ProgramNotificationsApiNotificationBase<AccountInfoWithBase58Bytes>;
programNotifications(programId: Address, config?: ProgramNotificationsApiCommonConfig): ProgramNotificationsApiNotificationBase<AccountInfoWithBase58Bytes>;
}
export {};
//# sourceMappingURL=program-notifications.d.ts.map

@@ -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 {

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

import { Signature } from '@solana/keys';
import { Commitment } from '@solana/rpc-types';
import { TransactionSignature } from '@solana/transactions';
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>>;

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

*/
signatureNotifications(signature: TransactionSignature, config: SignatureNotificationsApiConfigBase & Readonly<{
signatureNotifications(signature: Signature, config: SignatureNotificationsApiConfigBase & Readonly<{
enableReceivedNotification: true;
}>): SignatureNotificationsApiNotificationReceived | SignatureNotificationsApiNotificationProcessed;
signatureNotifications(signature: TransactionSignature, config?: SignatureNotificationsApiConfigBase & Readonly<{
signatureNotifications(signature: Signature, config?: SignatureNotificationsApiConfigBase & Readonly<{
enableReceivedNotification?: false;

@@ -24,0 +24,0 @@ }>): SignatureNotificationsApiNotificationProcessed;

@@ -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;

@@ -1,12 +0,12 @@

import { Base58EncodedAddress } from '@solana/addresses';
import { Address } from '@solana/addresses';
import { Signature } from '@solana/keys';
import { UnixTimestamp } from '@solana/rpc-types';
import { Blockhash } from '@solana/transactions';
import { TransactionSignature } from '@solana/transactions';
import { Slot } from '../rpc-methods/common';
import { Slot } from '../rpc-methods/common.js';
type VoteNotificationsApiNotification = Readonly<{
hash: Blockhash;
signature: TransactionSignature;
signature: Signature;
slots: readonly Slot[];
timestamp: UnixTimestamp | null;
votePubkey: Base58EncodedAddress;
votePubkey: Address;
}>;

@@ -13,0 +13,0 @@ export interface VoteNotificationsApi {

{
"name": "@solana/rpc-core",
"version": "2.0.0-experimental.762ff13",
"version": "2.0.0-experimental.76cf6b4",
"description": "A library for making calls to the Solana JSON RPC API",

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

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

@@ -64,15 +64,16 @@ "@typescript-eslint/parser": "^6.3.0",

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

@@ -89,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",

@@ -92,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

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