Socket
Socket
Sign inDemoInstall

@solana/rpc-core

Package Overview
Dependencies
Maintainers
15
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.59e5893 to 2.0.0-experimental.5a6335d

55

dist/index.browser.js

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

// ../rpc-transport/dist/index.browser.js
function createJsonRpcApi(config) {
return new Proxy({}, {
defineProperty() {
return false;
},
deleteProperty() {
return false;
},
get(...args) {
const [_, p] = args;
const methodName = p.toString();
return function(...rawParams) {
const params = config?.parametersTransformer ? config?.parametersTransformer(rawParams, methodName) : rawParams;
const responseTransformer = config?.responseTransformer ? config?.responseTransformer : (rawResponse) => rawResponse;
return {
methodName,
params,
responseTransformer
};
};
}
});
}
function createJsonRpcSubscriptionsApi(config) {
return new Proxy({}, {
defineProperty() {
return false;
},
deleteProperty() {
return false;
},
get(...args) {
const [_, p] = args;
const notificationName = p.toString();
return function(...rawParams) {
const params = config?.parametersTransformer ? config?.parametersTransformer(rawParams, notificationName) : rawParams;
const responseTransformer = config?.responseTransformer ? config?.responseTransformer : (rawResponse) => rawResponse;
const subscribeMethodName = config?.subscribeNotificationNameTransformer ? config?.subscribeNotificationNameTransformer(notificationName) : notificationName;
const unsubscribeMethodName = config?.unsubscribeNotificationNameTransformer ? config?.unsubscribeNotificationNameTransformer(notificationName) : notificationName;
return {
params,
responseTransformer,
subscribeMethodName,
unsubscribeMethodName
};
};
}
});
}
import { createJsonRpcApi, createJsonRpcSubscriptionsApi } from '@solana/rpc-transport';
// src/rpc-methods/index.ts
// src/default-commitment.ts

@@ -673,4 +626,2 @@ function applyDefaultCommitment({

}
// src/rpc-subscriptions/index.ts
function createSolanaRpcSubscriptionsApi_INTERNAL(config) {

@@ -677,0 +628,0 @@ return createJsonRpcSubscriptionsApi({

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

// ../rpc-transport/dist/index.browser.js
function createJsonRpcApi(config) {
return new Proxy({}, {
defineProperty() {
return false;
},
deleteProperty() {
return false;
},
get(...args) {
const [_, p] = args;
const methodName = p.toString();
return function(...rawParams) {
const params = config?.parametersTransformer ? config?.parametersTransformer(rawParams, methodName) : rawParams;
const responseTransformer = config?.responseTransformer ? config?.responseTransformer : (rawResponse) => rawResponse;
return {
methodName,
params,
responseTransformer
};
};
}
});
}
function createJsonRpcSubscriptionsApi(config) {
return new Proxy({}, {
defineProperty() {
return false;
},
deleteProperty() {
return false;
},
get(...args) {
const [_, p] = args;
const notificationName = p.toString();
return function(...rawParams) {
const params = config?.parametersTransformer ? config?.parametersTransformer(rawParams, notificationName) : rawParams;
const responseTransformer = config?.responseTransformer ? config?.responseTransformer : (rawResponse) => rawResponse;
const subscribeMethodName = config?.subscribeNotificationNameTransformer ? config?.subscribeNotificationNameTransformer(notificationName) : notificationName;
const unsubscribeMethodName = config?.unsubscribeNotificationNameTransformer ? config?.unsubscribeNotificationNameTransformer(notificationName) : notificationName;
return {
params,
responseTransformer,
subscribeMethodName,
unsubscribeMethodName
};
};
}
});
}
import { createJsonRpcApi, createJsonRpcSubscriptionsApi } from '@solana/rpc-transport';
// src/rpc-methods/index.ts
// src/default-commitment.ts

@@ -673,4 +626,2 @@ function applyDefaultCommitment({

}
// src/rpc-subscriptions/index.ts
function createSolanaRpcSubscriptionsApi_INTERNAL(config) {

@@ -677,0 +628,0 @@ return createJsonRpcSubscriptionsApi({

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

import 'ws';
import { createJsonRpcApi, createJsonRpcSubscriptionsApi } from '@solana/rpc-transport';
// ../rpc-transport/dist/index.node.js
function createJsonRpcApi(config) {
return new Proxy({}, {
defineProperty() {
return false;
},
deleteProperty() {
return false;
},
get(...args) {
const [_, p] = args;
const methodName = p.toString();
return function(...rawParams) {
const params = config?.parametersTransformer ? config?.parametersTransformer(rawParams, methodName) : rawParams;
const responseTransformer = config?.responseTransformer ? config?.responseTransformer : (rawResponse) => rawResponse;
return {
methodName,
params,
responseTransformer
};
};
}
});
}
function createJsonRpcSubscriptionsApi(config) {
return new Proxy({}, {
defineProperty() {
return false;
},
deleteProperty() {
return false;
},
get(...args) {
const [_, p] = args;
const notificationName = p.toString();
return function(...rawParams) {
const params = config?.parametersTransformer ? config?.parametersTransformer(rawParams, notificationName) : rawParams;
const responseTransformer = config?.responseTransformer ? config?.responseTransformer : (rawResponse) => rawResponse;
const subscribeMethodName = config?.subscribeNotificationNameTransformer ? config?.subscribeNotificationNameTransformer(notificationName) : notificationName;
const unsubscribeMethodName = config?.unsubscribeNotificationNameTransformer ? config?.unsubscribeNotificationNameTransformer(notificationName) : notificationName;
return {
params,
responseTransformer,
subscribeMethodName,
unsubscribeMethodName
};
};
}
});
}
// src/rpc-methods/index.ts

@@ -675,4 +626,2 @@ // src/default-commitment.ts

}
// src/rpc-subscriptions/index.ts
function createSolanaRpcSubscriptionsApi_INTERNAL(config) {

@@ -679,0 +628,0 @@ return createJsonRpcSubscriptionsApi({

2

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

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

import type { IRpcSubscriptionsApi } from '@solana/rpc-transport';
import type { IRpcSubscriptionsApi } from '@solana/rpc-types';
import { createSolanaRpcApi } from './rpc-methods/index.js';

@@ -3,0 +3,0 @@ import { SolanaRpcSubscriptions, SolanaRpcSubscriptionsUnstable } from './rpc-subscriptions/index.js';

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

@@ -7,0 +7,0 @@ /** public key for an address lookup table account. */

import { Address } from '@solana/addresses';
import { LamportsUnsafeBeyond2Pow53Minus1, StringifiedBigInt, StringifiedNumber } from '@solana/rpc-types';
import type { Base58EncodedBytes, Base58EncodedDataResponse, Base64EncodedDataResponse, Base64EncodedZStdCompressedDataResponse, LamportsUnsafeBeyond2Pow53Minus1, TokenAmount, U64UnsafeBeyond2Pow53Minus1 } from '@solana/rpc-types';
export type DataSlice = Readonly<{

@@ -10,24 +10,4 @@ offset: number;

};
export type Slot = U64UnsafeBeyond2Pow53Minus1;
export type U64UnsafeBeyond2Pow53Minus1 = bigint;
export type SignedLamportsAsI64Unsafe = bigint;
export type F64UnsafeSeeDocumentation = number;
export type RpcResponse<TValue> = Readonly<{
context: Readonly<{
slot: Slot;
}>;
value: TValue;
}>;
export type Base58EncodedBytes = string & {
readonly __brand: unique symbol;
};
export type Base64EncodedBytes = string & {
readonly __brand: unique symbol;
};
export type Base64EncodedZStdCompressedBytes = string & {
readonly __brand: unique symbol;
};
export type Base58EncodedDataResponse = [Base58EncodedBytes, 'base58'];
export type Base64EncodedDataResponse = [Base64EncodedBytes, 'base64'];
export type Base64EncodedZStdCompressedDataResponse = [Base64EncodedZStdCompressedBytes, 'base64+zstd'];
export type AccountInfoBase = Readonly<{

@@ -71,8 +51,2 @@ /** indicates if the account contains a program (and is strictly read-only) */

}>;
export type TokenAmount = Readonly<{
amount: StringifiedBigInt;
decimals: number;
uiAmount: number | null;
uiAmountString: StringifiedNumber;
}>;
export type TokenBalance = Readonly<{

@@ -89,15 +63,2 @@ /** Index of the account in which the token balance is provided for. */

}>;
type TokenAccountState = 'initialized' | 'uninitialized' | 'frozen';
export type TokenAccount = Readonly<{
mint: Address;
owner: Address;
tokenAmount: TokenAmount;
delegate?: Address;
state: TokenAccountState;
isNative: boolean;
rentExemptReserve?: TokenAmount;
delegatedAmount?: TokenAmount;
closeAuthority?: Address;
extensions?: unknown[];
}>;
export type GetProgramAccountsMemcmpFilter = Readonly<{

@@ -111,3 +72,2 @@ offset: U64UnsafeBeyond2Pow53Minus1;

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

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

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

@@ -6,0 +4,0 @@ export interface GetBalanceApi extends IRpcApiMethods {

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

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

@@ -6,0 +4,0 @@ type GetBlockApiResponseBase = Readonly<{

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

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

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

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

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

@@ -5,0 +3,0 @@ export interface GetBlockHeightApi extends IRpcApiMethods {

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

@@ -6,0 +4,0 @@ type NumberOfBlocksProduced = U64UnsafeBeyond2Pow53Minus1;

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

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

@@ -5,0 +3,0 @@ export interface GetBlocksApi extends IRpcApiMethods {

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

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

@@ -5,0 +3,0 @@ export interface GetBlocksWithLimitApi extends IRpcApiMethods {

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

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

@@ -5,0 +3,0 @@ type GetBlockTimeApiResponse = UnixTimestamp;

import { Address } from '@solana/addresses';
import type { IRpcApiMethods } from '@solana/rpc-transport';
import type { IRpcApiMethods } from '@solana/rpc-types';
type GetClusterNodesNode = Readonly<{

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

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

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

@@ -5,0 +3,0 @@ /** the current slot */

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

import type { IRpcApiMethods } from '@solana/rpc-transport';
import { U64UnsafeBeyond2Pow53Minus1 } from './common.js';
import type { IRpcApiMethods, U64UnsafeBeyond2Pow53Minus1 } from '@solana/rpc-types';
type GetEpochScheduleApiResponse = Readonly<{

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

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

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

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

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

import type { IRpcApiMethods } from '@solana/rpc-transport';
import { Slot } from './common.js';
import type { IRpcApiMethods, Slot } from '@solana/rpc-types';
type GetFirstAvailableBlockApiResponse = Slot;

@@ -4,0 +3,0 @@ export interface GetFirstAvailableBlockApi extends IRpcApiMethods {

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

import type { IRpcApiMethods } from '@solana/rpc-transport';
import { Blockhash } from '@solana/transactions';
import type { Blockhash, IRpcApiMethods } from '@solana/rpc-types';
type GetGenesisHashApiResponse = Blockhash;

@@ -4,0 +3,0 @@ export interface GetGenesisHashApi extends IRpcApiMethods {

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

import type { IRpcApiMethods } from '@solana/rpc-transport';
import type { IRpcApiMethods } from '@solana/rpc-types';
type GetHealthApiResponse = 'ok';

@@ -3,0 +3,0 @@ export interface GetHealthApi extends IRpcApiMethods {

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

import type { IRpcApiMethods } from '@solana/rpc-transport';
import { Slot } from './common.js';
import type { IRpcApiMethods, Slot } from '@solana/rpc-types';
type GetHighestSnapshotSlotApiResponse = Readonly<{

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

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

import { Address } from '@solana/addresses';
import type { IRpcApiMethods } from '@solana/rpc-transport';
import type { Address } from '@solana/addresses';
import type { IRpcApiMethods } from '@solana/rpc-types';
type GetIdentityApiResponse = Readonly<{

@@ -4,0 +4,0 @@ identity: Address;

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

import type { IRpcApiMethods } from '@solana/rpc-transport';
import { Commitment } from '@solana/rpc-types';
import type { Commitment, IRpcApiMethods } from '@solana/rpc-types';
import { F64UnsafeSeeDocumentation } from './common.js';

@@ -4,0 +3,0 @@ type GetInflationGovernorApiResponse = Readonly<{

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

import type { IRpcApiMethods } from '@solana/rpc-transport';
import { F64UnsafeSeeDocumentation, U64UnsafeBeyond2Pow53Minus1 } from './common.js';
import type { IRpcApiMethods, U64UnsafeBeyond2Pow53Minus1 } from '@solana/rpc-types';
import { F64UnsafeSeeDocumentation } from './common.js';
type GetInflationRateApiResponse = Readonly<{

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

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

@@ -6,0 +4,0 @@ amount: LamportsUnsafeBeyond2Pow53Minus1;

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

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

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

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

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

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

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

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

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

import type { IRpcApiMethods } from '@solana/rpc-transport';
import { Slot } from './common.js';
import type { IRpcApiMethods, Slot } from '@solana/rpc-types';
type GetMaxRetransmitSlotApiResponse = Slot;

@@ -4,0 +3,0 @@ export interface GetMaxRetransmitSlotApi extends IRpcApiMethods {

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

import type { IRpcApiMethods } from '@solana/rpc-transport';
import { Slot } from './common.js';
import type { IRpcApiMethods, Slot } from '@solana/rpc-types';
type GetMaxShredInsertSlotApiResponse = Slot;

@@ -4,0 +3,0 @@ export interface GetMaxShredInsertSlotApi extends IRpcApiMethods {

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

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

@@ -5,0 +3,0 @@ export interface GetMinimumBalanceForRentExemptionApi extends IRpcApiMethods {

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

@@ -7,0 +5,0 @@ type TransactionStatusOk = Readonly<{

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

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

@@ -5,0 +3,0 @@ export interface GetSlotApi extends IRpcApiMethods {

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

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

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

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

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

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

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

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

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

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

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

@@ -5,0 +3,0 @@ export interface GetStakeMinimumDelegationApi extends IRpcApiMethods {

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

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

@@ -6,0 +4,0 @@ commitment?: Commitment;

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

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

@@ -6,0 +4,0 @@ export interface GetTokenAccountBalanceApi extends IRpcApiMethods {

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

import { Address } from '@solana/addresses';
import type { IRpcApiMethods } from '@solana/rpc-transport';
import { Commitment } from '@solana/rpc-types';
import { AccountInfoBase, AccountInfoWithBase58Bytes, AccountInfoWithBase58EncodedData, AccountInfoWithBase64EncodedData, AccountInfoWithBase64EncodedZStdCompressedData, AccountInfoWithPubkey, DataSlice, RpcResponse, Slot, TokenAccount, U64UnsafeBeyond2Pow53Minus1 } from './common.js';
import type { Address } from '@solana/addresses';
import type { JsonParsedTokenAccount } from '@solana/rpc-parsed-types';
import type { Commitment, IRpcApiMethods, RpcResponse, Slot, U64UnsafeBeyond2Pow53Minus1 } from '@solana/rpc-types';
import { AccountInfoBase, AccountInfoWithBase58Bytes, AccountInfoWithBase58EncodedData, AccountInfoWithBase64EncodedData, AccountInfoWithBase64EncodedZStdCompressedData, AccountInfoWithPubkey, DataSlice } from './common.js';
type TokenAccountInfoWithJsonData = Readonly<{
data: Readonly<{
/** Name of the program that owns this account. */
program: {
info: TokenAccount;
program: Address;
parsed: {
info: JsonParsedTokenAccount;
type: 'account';
};
parsed: unknown;
space: U64UnsafeBeyond2Pow53Minus1;

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

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

import { Address } from '@solana/addresses';
import type { IRpcApiMethods } from '@solana/rpc-transport';
import { Commitment } from '@solana/rpc-types';
import { AccountInfoBase, AccountInfoWithBase58Bytes, AccountInfoWithBase58EncodedData, AccountInfoWithBase64EncodedData, AccountInfoWithBase64EncodedZStdCompressedData, AccountInfoWithPubkey, DataSlice, RpcResponse, Slot, TokenAccount, U64UnsafeBeyond2Pow53Minus1 } from './common.js';
import type { Address } from '@solana/addresses';
import type { JsonParsedTokenAccount } from '@solana/rpc-parsed-types';
import type { Commitment, IRpcApiMethods, RpcResponse, Slot, U64UnsafeBeyond2Pow53Minus1 } from '@solana/rpc-types';
import { AccountInfoBase, AccountInfoWithBase58Bytes, AccountInfoWithBase58EncodedData, AccountInfoWithBase64EncodedData, AccountInfoWithBase64EncodedZStdCompressedData, AccountInfoWithPubkey, DataSlice } from './common.js';
type TokenAccountInfoWithJsonData = Readonly<{
data: Readonly<{
/** Name of the program that owns this account. */
program: {
info: TokenAccount;
program: Address;
parsed: {
info: JsonParsedTokenAccount;
type: 'account';
};
parsed: unknown;
space: U64UnsafeBeyond2Pow53Minus1;

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

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

@@ -6,0 +4,0 @@ address: Address;

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

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

@@ -6,0 +4,0 @@ export interface GetTokenSupplyApi extends IRpcApiMethods {

import { Address } from '@solana/addresses';
import { Signature } from '@solana/keys';
import type { IRpcApiMethods } from '@solana/rpc-transport';
import { Commitment, LamportsUnsafeBeyond2Pow53Minus1, UnixTimestamp } from '@solana/rpc-types';
import { Blockhash, TransactionVersion } from '@solana/transactions';
import type { IRpcApiMethods } from '@solana/rpc-types';
import { Base58EncodedBytes, Base58EncodedDataResponse, Base64EncodedDataResponse, Blockhash, Commitment, LamportsUnsafeBeyond2Pow53Minus1, Slot, U64UnsafeBeyond2Pow53Minus1, UnixTimestamp } from '@solana/rpc-types';
import { TransactionVersion } from '@solana/transactions';
import { TransactionError } from '../transaction-error.js';
import { Base58EncodedBytes, Base58EncodedDataResponse, Base64EncodedDataResponse, Slot, TokenBalance, U64UnsafeBeyond2Pow53Minus1 } from './common.js';
import { TokenBalance } from './common.js';
import { Reward, TransactionStatus } from './common-transactions.js';

@@ -9,0 +9,0 @@ type ReturnData = {

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

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

@@ -5,0 +3,0 @@ export interface GetTransactionCountApi extends IRpcApiMethods {

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

import type { IRpcApiMethods } from '@solana/rpc-transport';
import type { IRpcApiMethods } from '@solana/rpc-types';
type GetVersionApiResponse = Readonly<{

@@ -3,0 +3,0 @@ /** Unique identifier of the current software's feature set */

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

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

@@ -6,0 +4,0 @@ type Credits = U64UnsafeBeyond2Pow53Minus1;

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

import { IRpcApi } from '@solana/rpc-transport';
import { IRpcTransport, IRpcTransportDevnet, IRpcTransportMainnet, IRpcTransportTestnet, IRpcTransportWithCluster } from '@solana/rpc-transport';
import { IRpcApi } from '@solana/rpc-types';
import { ParamsPatcherConfig } from '../params-patcher.js';

@@ -58,5 +59,9 @@ import { GetAccountInfoApi } from './getAccountInfo.js';

export type SolanaRpcMethods = GetAccountInfoApi & GetBalanceApi & GetBlockApi & GetBlockCommitmentApi & GetBlockHeightApi & GetBlockProductionApi & GetBlocksApi & GetBlocksWithLimitApi & GetBlockTimeApi & GetClusterNodesApi & GetEpochInfoApi & GetEpochScheduleApi & GetFeeForMessageApi & GetFirstAvailableBlockApi & GetGenesisHashApi & GetHealthApi & GetHighestSnapshotSlotApi & GetIdentityApi & GetInflationGovernorApi & GetInflationRateApi & GetInflationRewardApi & GetLargestAccountsApi & GetLatestBlockhashApi & GetLeaderScheduleApi & GetMaxRetransmitSlotApi & GetMaxShredInsertSlotApi & GetMinimumBalanceForRentExemptionApi & GetMultipleAccountsApi & GetProgramAccountsApi & GetRecentPerformanceSamplesApi & GetRecentPrioritizationFeesApi & GetSignaturesForAddressApi & GetSignatureStatusesApi & GetSlotApi & GetSlotLeaderApi & GetSlotLeadersApi & GetStakeActivationApi & GetStakeMinimumDelegationApi & GetSupplyApi & GetTokenAccountBalanceApi & GetTokenAccountsByDelegateApi & GetTokenAccountsByOwnerApi & GetTokenLargestAccountsApi & GetTokenSupplyApi & GetTransactionApi & GetTransactionCountApi & GetVersionApi & GetVoteAccountsApi & IsBlockhashValidApi & MinimumLedgerSlotApi & RequestAirdropApi & SendTransactionApi & SimulateTransactionApi;
export declare function createSolanaRpcApi(config?: Config): IRpcApi<SolanaRpcMethods>;
export type { GetAccountInfoApi, GetBalanceApi, GetBlockApi, GetBlockCommitmentApi, GetBlockHeightApi, GetBlockProductionApi, GetBlocksApi, GetBlocksWithLimitApi, GetBlockTimeApi, GetClusterNodesApi, GetEpochInfoApi, GetEpochScheduleApi, GetFeeForMessageApi, GetFirstAvailableBlockApi, GetGenesisHashApi, GetHealthApi, GetHighestSnapshotSlotApi, GetIdentityApi, GetInflationGovernorApi, GetInflationRateApi, GetInflationRewardApi, GetLargestAccountsApi, GetLatestBlockhashApi, GetLeaderScheduleApi, GetMaxRetransmitSlotApi, GetMaxShredInsertSlotApi, GetMinimumBalanceForRentExemptionApi, GetMultipleAccountsApi, GetProgramAccountsApi, GetRecentPerformanceSamplesApi, GetRecentPrioritizationFeesApi, GetSignaturesForAddressApi, GetSignatureStatusesApi, GetSlotApi, GetSlotLeaderApi, GetStakeActivationApi, GetStakeMinimumDelegationApi, GetSupplyApi, GetTokenAccountBalanceApi, GetTokenAccountsByDelegateApi, GetTokenAccountsByOwnerApi, GetTokenLargestAccountsApi, GetTokenSupplyApi, GetTransactionApi, GetTransactionCountApi, GetVersionApi, GetVoteAccountsApi, IsBlockhashValidApi, MinimumLedgerSlotApi, RequestAirdropApi, SendTransactionApi, SimulateTransactionApi, };
export type { Base64EncodedDataResponse, DataSlice, GetProgramAccountsDatasizeFilter, GetProgramAccountsMemcmpFilter, Slot, } from './common.js';
export type SolanaRpcMethodsDevnet = SolanaRpcMethods;
export type SolanaRpcMethodsTestnet = SolanaRpcMethods;
export type SolanaRpcMethodsMainnet = Omit<SolanaRpcMethods, 'requestAirdrop'>;
export type SolanaRpcMethodsFromTransport<TTransport extends IRpcTransport | IRpcTransportWithCluster> = TTransport extends IRpcTransportDevnet ? SolanaRpcMethodsDevnet : TTransport extends IRpcTransportTestnet ? SolanaRpcMethodsTestnet : TTransport extends IRpcTransportMainnet ? SolanaRpcMethodsMainnet : SolanaRpcMethods;
export declare function createSolanaRpcApi<TRpcMethods extends SolanaRpcMethods | SolanaRpcMethodsDevnet | SolanaRpcMethodsTestnet | SolanaRpcMethodsMainnet = SolanaRpcMethods>(config?: Config): IRpcApi<TRpcMethods>;
export type { GetAccountInfoApi, GetBalanceApi, GetBlockApi, GetBlockCommitmentApi, GetBlockHeightApi, GetBlockProductionApi, GetBlocksApi, GetBlocksWithLimitApi, GetBlockTimeApi, GetClusterNodesApi, GetEpochInfoApi, GetEpochScheduleApi, GetFeeForMessageApi, GetFirstAvailableBlockApi, GetGenesisHashApi, GetHealthApi, GetHighestSnapshotSlotApi, GetIdentityApi, GetInflationGovernorApi, GetInflationRateApi, GetInflationRewardApi, GetLargestAccountsApi, GetLatestBlockhashApi, GetLeaderScheduleApi, GetMaxRetransmitSlotApi, GetMaxShredInsertSlotApi, GetMinimumBalanceForRentExemptionApi, GetMultipleAccountsApi, GetProgramAccountsApi, GetRecentPerformanceSamplesApi, GetRecentPrioritizationFeesApi, GetSignaturesForAddressApi, GetSignatureStatusesApi, GetSlotApi, GetSlotLeaderApi, GetSlotLeadersApi, GetStakeActivationApi, GetStakeMinimumDelegationApi, GetSupplyApi, GetTokenAccountBalanceApi, GetTokenAccountsByDelegateApi, GetTokenAccountsByOwnerApi, GetTokenLargestAccountsApi, GetTokenSupplyApi, GetTransactionApi, GetTransactionCountApi, GetVersionApi, GetVoteAccountsApi, IsBlockhashValidApi, MinimumLedgerSlotApi, RequestAirdropApi, SendTransactionApi, SimulateTransactionApi, };
export type { DataSlice, GetProgramAccountsDatasizeFilter, GetProgramAccountsMemcmpFilter } from './common.js';
//# sourceMappingURL=index.d.ts.map

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

import type { IRpcApiMethods } from '@solana/rpc-transport';
import { Commitment } from '@solana/rpc-types';
import { Blockhash } from '@solana/transactions';
import { RpcResponse, Slot } from './common.js';
import type { Blockhash, Commitment, IRpcApiMethods, RpcResponse, Slot } from '@solana/rpc-types';
type IsBlockhashValidApiResponse = RpcResponse<boolean>;

@@ -6,0 +3,0 @@ export interface IsBlockhashValidApi extends IRpcApiMethods {

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

import type { IRpcApiMethods } from '@solana/rpc-transport';
import { Slot } from './common.js';
import type { IRpcApiMethods, Slot } from '@solana/rpc-types';
type MinimumLedgerSlotApiResponse = Slot;

@@ -4,0 +3,0 @@ export interface MinimumLedgerSlotApi extends IRpcApiMethods {

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

import { Address } from '@solana/addresses';
import { Signature } from '@solana/keys';
import type { IRpcApiMethods } from '@solana/rpc-transport';
import { Commitment, LamportsUnsafeBeyond2Pow53Minus1 } from '@solana/rpc-types';
import type { Address } from '@solana/addresses';
import type { Signature } from '@solana/keys';
import type { Commitment, IRpcApiMethods, LamportsUnsafeBeyond2Pow53Minus1 } from '@solana/rpc-types';
type RequestAirdropConfig = Readonly<{

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

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

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

@@ -7,0 +5,0 @@ skipPreflight?: boolean;

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

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

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

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

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

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

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

@@ -6,0 +4,0 @@ type BlockNotificationsNotificationBase = Readonly<{

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

import { IRpcSubscriptionsApi } from '@solana/rpc-transport';
import { IRpcSubscriptionsApi } from '@solana/rpc-types';
import { ParamsPatcherConfig } from '../params-patcher.js';

@@ -18,3 +18,3 @@ import { AccountNotificationsApi } from './account-notifications.js';

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

@@ -7,0 +5,0 @@ type LogsNotificationsApiNotification = RpcResponse<Readonly<{

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

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

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

import type { IRpcApiSubscriptions } from '@solana/rpc-transport';
import { Slot } from '../rpc-methods/common.js';
import type { IRpcApiSubscriptions, Slot } from '@solana/rpc-types';
type RootNotificationsApiNotification = Slot;

@@ -4,0 +3,0 @@ export interface RootNotificationsApi extends IRpcApiSubscriptions {

import { Signature } from '@solana/keys';
import type { IRpcApiSubscriptions } from '@solana/rpc-transport';
import { Commitment } from '@solana/rpc-types';
import { RpcResponse } from '../rpc-methods/common.js';
import type { Commitment, IRpcApiSubscriptions, RpcResponse } from '@solana/rpc-types';
import { TransactionError } from '../transaction-error.js';

@@ -6,0 +4,0 @@ type SignatureNotificationsApiNotificationReceived = RpcResponse<Readonly<string>>;

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

import type { IRpcApiSubscriptions } from '@solana/rpc-transport';
import { Slot } from '../rpc-methods/common.js';
import type { IRpcApiSubscriptions, Slot } from '@solana/rpc-types';
type SlotNotificationsApiNotification = Readonly<{

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

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

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

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

import { Address } from '@solana/addresses';
import { Signature } from '@solana/keys';
import { UnixTimestamp } from '@solana/rpc-types';
import { Blockhash } from '@solana/transactions';
import { Slot } from '../rpc-methods/common.js';
import type { Blockhash, Slot, UnixTimestamp } from '@solana/rpc-types';
type VoteNotificationsApiNotification = Readonly<{

@@ -7,0 +5,0 @@ hash: Blockhash;

{
"name": "@solana/rpc-core",
"version": "2.0.0-experimental.59e5893",
"version": "2.0.0-experimental.5a6335d",
"description": "A library for making calls to the Solana JSON RPC API",

@@ -48,2 +48,12 @@ "exports": {

],
"dependencies": {
"@solana/addresses": "2.0.0-experimental.5a6335d",
"@solana/codecs-core": "2.0.0-experimental.5a6335d",
"@solana/codecs-strings": "2.0.0-experimental.5a6335d",
"@solana/keys": "2.0.0-experimental.5a6335d",
"@solana/rpc-parsed-types": "2.0.0-experimental.5a6335d",
"@solana/rpc-transport": "2.0.0-experimental.5a6335d",
"@solana/rpc-types": "2.0.0-experimental.5a6335d",
"@solana/transactions": "2.0.0-experimental.5a6335d"
},
"devDependencies": {

@@ -68,9 +78,2 @@ "@solana/eslint-config-solana": "^1.0.2",

"version-from-git": "^1.1.1",
"@solana/addresses": "2.0.0-experimental.59e5893",
"@solana/codecs-core": "2.0.0-experimental.59e5893",
"@solana/codecs-strings": "2.0.0-experimental.59e5893",
"@solana/rpc-transport": "2.0.0-experimental.59e5893",
"@solana/keys": "2.0.0-experimental.59e5893",
"@solana/transactions": "2.0.0-experimental.59e5893",
"@solana/rpc-types": "2.0.0-experimental.59e5893",
"build-scripts": "0.0.0",

@@ -77,0 +80,0 @@ "test-config": "0.0.0",

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

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

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

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

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

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

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