Socket
Socket
Sign inDemoInstall

@solana/rpc-api

Package Overview
Dependencies
Maintainers
15
Versions
759
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@solana/rpc-api - npm Package Compare versions

Comparing version 2.0.0-experimental.d3890b7 to 2.0.0-experimental.d49ac92

4

dist/types/getBlock.d.ts

@@ -5,4 +5,2 @@ import type { RpcApiMethods } from '@solana/rpc-spec';

type GetBlockApiResponseBase = Readonly<{
/** the blockhash of this block */
blockhash: Blockhash;
/** The number of blocks beneath this block */

@@ -12,2 +10,4 @@ blockHeight: U64UnsafeBeyond2Pow53Minus1;

blockTime: UnixTimestamp;
/** the blockhash of this block */
blockhash: Blockhash;
/** The slot index of this block's parent */

@@ -14,0 +14,0 @@ parentSlot: Slot;

import type { RpcApiMethods } from '@solana/rpc-spec';
import type { U64UnsafeBeyond2Pow53Minus1 } from '@solana/rpc-types';
type GetEpochScheduleApiResponse = Readonly<{
/** first normal-length epoch, log2(slotsPerEpoch) - log2(MINIMUM_SLOTS_PER_EPOCH) */
firstNormalEpoch: U64UnsafeBeyond2Pow53Minus1;
/** MINIMUM_SLOTS_PER_EPOCH * (2^(firstNormalEpoch) - 1) */
firstNormalSlot: U64UnsafeBeyond2Pow53Minus1;
/** the number of slots before beginning of an epoch to calculate a leader schedule for that epoch */
leaderScheduleSlotOffset: U64UnsafeBeyond2Pow53Minus1;
/** the maximum number of slots in each epoch */
slotsPerEpoch: U64UnsafeBeyond2Pow53Minus1;
/** the number of slots before beginning of an epoch to calculate a leader schedule for that epoch */
leaderScheduleSlotOffset: U64UnsafeBeyond2Pow53Minus1;
/** whether epochs start short and grow */
warmup: boolean;
/** first normal-length epoch, log2(slotsPerEpoch) - log2(MINIMUM_SLOTS_PER_EPOCH) */
firstNormalEpoch: U64UnsafeBeyond2Pow53Minus1;
/** MINIMUM_SLOTS_PER_EPOCH * (2^(firstNormalEpoch) - 1) */
firstNormalSlot: U64UnsafeBeyond2Pow53Minus1;
}>;

@@ -15,0 +15,0 @@ export interface GetEpochScheduleApi extends RpcApiMethods {

import type { RpcApiMethods } from '@solana/rpc-spec';
import type { Commitment, F64UnsafeSeeDocumentation } from '@solana/rpc-types';
type GetInflationGovernorApiResponse = Readonly<{
/** The initial inflation percentage from time 0 */
initial: F64UnsafeSeeDocumentation;
/** Percentage of total inflation allocated to the foundation */

@@ -10,2 +8,4 @@ foundation: F64UnsafeSeeDocumentation;

foundationTerm: F64UnsafeSeeDocumentation;
/** The initial inflation percentage from time 0 */
initial: F64UnsafeSeeDocumentation;
/**

@@ -12,0 +12,0 @@ * Rate per year at which inflation is lowered.

@@ -7,6 +7,6 @@ import type { Address } from '@solana/addresses';

commitment?: Commitment;
/** filter results (up to 4 filters allowed) @see https://docs.solana.com/api/http#filter-criteria */
filters?: (GetProgramAccountsDatasizeFilter | GetProgramAccountsMemcmpFilter)[];
/** The minimum slot that the request can be evaluated at */
minContextSlot?: Slot;
/** filter results (up to 4 filters allowed) @see https://docs.solana.com/api/http#filter-criteria */
filters?: (GetProgramAccountsMemcmpFilter | GetProgramAccountsDatasizeFilter)[];
}>;

@@ -13,0 +13,0 @@ type GetProgramAccountsApiSliceableCommonConfig = Readonly<{

import type { RpcApiMethods } from '@solana/rpc-spec';
import type { Slot, U64UnsafeBeyond2Pow53Minus1 } from '@solana/rpc-types';
type PerformanceSample = Readonly<{
/** Slot in which sample was taken at */
slot: Slot;
/** Number of non-vote transactions in sample. */
numNonVoteTransaction: U64UnsafeBeyond2Pow53Minus1;
/** Number of slots in sample */
numSlots: U64UnsafeBeyond2Pow53Minus1;
/** Number of transactions in sample */
numTransactions: U64UnsafeBeyond2Pow53Minus1;
/** Number of slots in sample */
numSlots: U64UnsafeBeyond2Pow53Minus1;
/** Number of seconds in a sample window */
samplePeriodSecs: number;
/** Number of non-vote transactions in sample. */
numNonVoteTransaction: U64UnsafeBeyond2Pow53Minus1;
/** Slot in which sample was taken at */
slot: Slot;
}>;

@@ -15,0 +15,0 @@ type GetRecentPerformanceSamplesApiResponse = readonly PerformanceSample[];

@@ -6,2 +6,10 @@ import type { Address } from '@solana/addresses';

type GetSignaturesForAddressTransaction = Readonly<{
/** estimated production time of when transaction was processed. null if not available. */
blockTime: UnixTimestamp | null;
/** The transaction's cluster confirmation status */
confirmationStatus: Commitment | null;
/** Error if transaction failed, null if transaction succeeded. */
err: TransactionError | null;
/** Memo associated with the transaction, null if no memo is present */
memo: string | null;
/** transaction signature as base-58 encoded string */

@@ -11,10 +19,2 @@ signature: Signature;

slot: Slot;
/** Error if transaction failed, null if transaction succeeded. */
err: TransactionError | null;
/** Memo associated with the transaction, null if no memo is present */
memo: string | null;
/** estimated production time of when transaction was processed. null if not available. */
blockTime: UnixTimestamp | null;
/** The transaction's cluster confirmation status */
confirmationStatus: Commitment | null;
}>;

@@ -24,9 +24,9 @@ type GetSignaturesForAddressApiResponse = readonly GetSignaturesForAddressTransaction[];

type GetSignaturesForAddressConfig = Readonly<{
/** start searching backwards from this transaction signature. If not provided the search starts from the top of the highest max confirmed block. */
before?: Signature;
commitment?: AllowedCommitmentForGetSignaturesForAddress;
/** maximum transaction signatures to return (between 1 and 1,000). Default: 1000 */
limit?: number;
/** The minimum slot that the request can be evaluated at */
minContextSlot?: Slot;
/** maximum transaction signatures to return (between 1 and 1,000). Default: 1000 */
limit?: number;
/** start searching backwards from this transaction signature. If not provided the search starts from the top of the highest max confirmed block. */
before?: Signature;
/** search until this transaction signature, if found before limit reached */

@@ -33,0 +33,0 @@ until?: Signature;

@@ -14,2 +14,7 @@ import type { Signature } from '@solana/keys';

/**
* The transaction's cluster confirmation status; either `processed`,
* `confirmed`, or `finalized`.
*/
confirmationStatus: Commitment | null;
/**
* Number of blocks since signature confirmation, null if rooted,

@@ -19,7 +24,2 @@ * as well as finalized by a supermajority of the cluster

confirmations: U64UnsafeBeyond2Pow53Minus1 | null;
/**
* The transaction's cluster confirmation status; either `processed`,
* `confirmed`, or `finalized`.
*/
confirmationStatus: Commitment | null;
/** Error if transaction failed, null if transaction succeeded */

@@ -32,3 +32,3 @@ err: TransactionError | null;

*/
status: TransactionStatusOk | TransactionStatusErr;
status: TransactionStatusErr | TransactionStatusOk;
}>;

@@ -35,0 +35,0 @@ type GetSignatureStatusesBase = ReadonlyArray<SignatureStatusResult | null>;

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

/** The stake account's activation state */
state: 'active' | 'inactive' | 'activating' | 'deactivating';
state: 'activating' | 'active' | 'deactivating' | 'inactive';
}>;

@@ -19,5 +19,5 @@ export interface GetStakeActivationApi extends RpcApiMethods {

commitment?: Commitment;
minContextSlot?: Slot;
/** Defaults to current epoch */
epoch?: U64UnsafeBeyond2Pow53Minus1;
minContextSlot?: Slot;
}>): GetStakeActivationApiResponse;

@@ -24,0 +24,0 @@ }

@@ -8,4 +8,2 @@ import type { Address } from '@solana/addresses';

type GetSupplyApiResponseBase = SolanaRpcResponse<{
/** Total supply in lamports */
total: LamportsUnsafeBeyond2Pow53Minus1;
/** Circulating supply in lamports */

@@ -15,2 +13,4 @@ circulating: LamportsUnsafeBeyond2Pow53Minus1;

nonCirculating: LamportsUnsafeBeyond2Pow53Minus1;
/** Total supply in lamports */
total: LamportsUnsafeBeyond2Pow53Minus1;
}>;

@@ -17,0 +17,0 @@ type GetSupplyApiResponseWithNonCirculatingAccounts = GetSupplyApiResponseBase & Readonly<{

@@ -7,4 +7,2 @@ import type { Address } from '@solana/addresses';

data: Readonly<{
/** Name of the program that owns this account. */
program: Address;
parsed: {

@@ -14,2 +12,4 @@ info: JsonParsedTokenAccount;

};
/** Name of the program that owns this account. */
program: Address;
space: U64UnsafeBeyond2Pow53Minus1;

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

@@ -7,4 +7,2 @@ import type { Address } from '@solana/addresses';

data: Readonly<{
/** Name of the program that owns this account. */
program: Address;
parsed: {

@@ -14,2 +12,4 @@ info: JsonParsedTokenAccount;

};
/** Name of the program that owns this account. */
program: Address;
space: U64UnsafeBeyond2Pow53Minus1;

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

import type { Address } from '@solana/addresses';
import type { RpcApiMethods } from '@solana/rpc-spec';
import type { Commitment, SolanaRpcResponse, TokenAmount } from '@solana/rpc-types';
type GetTokenLargestAccountsApiResponse = SolanaRpcResponse<TokenAmount & {
type GetTokenLargestAccountsApiResponse = SolanaRpcResponse<{
address: Address;
}[]>;
}[] & TokenAmount>;
export interface GetTokenLargestAccountsApi extends RpcApiMethods {

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

@@ -7,8 +7,10 @@ import type { Address } from '@solana/addresses';

type ReturnData = {
/** the return data itself */
data: Base64EncodedDataResponse;
/** the program that generated the return data */
programId: Address;
/** the return data itself */
data: Base64EncodedDataResponse;
};
type TransactionMetaBase = Readonly<{
/** number of compute units consumed by the transaction */
computeUnitsConsumed?: U64UnsafeBeyond2Pow53Minus1;
/** Error if transaction failed, null if transaction succeeded. */

@@ -18,12 +20,14 @@ err: TransactionError | null;

fee: LamportsUnsafeBeyond2Pow53Minus1;
/** array of string log messages or null if log message recording was not enabled during this transaction */
logMessages: readonly string[] | null;
/** array of account balances after the transaction was processed */
postBalances: readonly LamportsUnsafeBeyond2Pow53Minus1[];
/** List of token balances from after the transaction was processed or omitted if token balance recording was not yet enabled during this transaction */
postTokenBalances?: readonly TokenBalance[];
/** array of account balances from before the transaction was processed */
preBalances: readonly LamportsUnsafeBeyond2Pow53Minus1[];
/** array of account balances after the transaction was processed */
postBalances: readonly LamportsUnsafeBeyond2Pow53Minus1[];
/** List of token balances from before the transaction was processed or omitted if token balance recording was not yet enabled during this transaction */
preTokenBalances?: readonly TokenBalance[];
/** List of token balances from after the transaction was processed or omitted if token balance recording was not yet enabled during this transaction */
postTokenBalances?: readonly TokenBalance[];
/** array of string log messages or null if log message recording was not enabled during this transaction */
logMessages: readonly string[] | null;
/** the most-recent return data generated by an instruction in the transaction */
returnData?: ReturnData;
/** transaction-level rewards */

@@ -36,6 +40,2 @@ rewards: readonly Reward[] | null;

status: TransactionStatus;
/** the most-recent return data generated by an instruction in the transaction */
returnData?: ReturnData;
/** number of compute units consumed by the transaction */
computeUnitsConsumed?: U64UnsafeBeyond2Pow53Minus1;
}>;

@@ -45,6 +45,6 @@ type AddressTableLookup = Readonly<{

accountKey: Address;
/** List of indices used to load addresses of readonly accounts from a lookup table. */
readableIndexes: readonly number[];
/** List of indices used to load addresses of writable accounts from a lookup table. */
writableIndexes: readonly number[];
/** List of indices used to load addresses of readonly accounts from a lookup table. */
readableIndexes: readonly number[];
}>;

@@ -58,7 +58,7 @@ type TransactionBase = Readonly<{

type TransactionInstruction = Readonly<{
programIdIndex: number;
accounts: readonly number[];
data: Base58EncodedBytes;
programIdIndex: number;
}>;
type TransactionJson = TransactionBase & Readonly<{
type TransactionJson = Readonly<{
message: {

@@ -73,3 +73,3 @@ accountKeys: readonly Address[];

};
}>;
}> & TransactionBase;
type PartiallyDecodedTransactionInstruction = Readonly<{

@@ -82,4 +82,4 @@ accounts: readonly Address[];

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

@@ -89,3 +89,3 @@ program: string;

}>;
type TransactionJsonParsed = TransactionBase & Readonly<{
type TransactionJsonParsed = Readonly<{
message: {

@@ -102,3 +102,3 @@ accountKeys: [

};
}>;
}> & TransactionBase;
type GetTransactionCommonConfig<TMaxSupportedTransactionVersion> = Readonly<{

@@ -109,11 +109,11 @@ commitment?: Commitment;

type GetTransactionApiResponseBase = Readonly<{
/** estimated production time of when the transaction was processed. null if not available */
blockTime: UnixTimestamp | null;
/** the slot this transaction was processed in */
slot: Slot;
/** estimated production time of when the transaction was processed. null if not available */
blockTime: UnixTimestamp | null;
}>;
type TransactionMetaLoadedAddresses = Readonly<{
loadedAddresses: {
readonly: readonly Address[];
writable: readonly Address[];
readonly: readonly Address[];
};

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

type TransactionMetaInnerInstructionsParsed = Readonly<{
innerInstructions?: readonly InnerInstructions<PartiallyDecodedTransactionInstruction | ParsedTransactionInstruction>[] | null;
innerInstructions?: readonly InnerInstructions<ParsedTransactionInstruction | PartiallyDecodedTransactionInstruction>[] | null;
}>;

@@ -132,0 +132,0 @@ type TransactionAddressTableLookups = Readonly<{

@@ -9,18 +9,18 @@ import type { Address } from '@solana/addresses';

type VoteAccount<TVotePubkey extends Address> = Readonly<{
/** Vote account address */
votePubkey: TVotePubkey;
/** Validator identity */
nodePubkey: Address;
/** the stake, in lamports, delegated to this vote account and active in this epoch */
activatedStake: U64UnsafeBeyond2Pow53Minus1;
/** percentage (0-100) of rewards payout owed to the vote account */
commission: number;
/** Latest history of earned credits for up to five epochs */
epochCredits: readonly EpochCredit[];
/** whether the vote account is staked for this epoch */
epochVoteAccount: boolean;
/** percentage (0-100) of rewards payout owed to the vote account */
commission: number;
/** Most recent slot voted on by this vote account */
lastVote: U64UnsafeBeyond2Pow53Minus1;
/** Latest history of earned credits for up to five epochs */
epochCredits: readonly EpochCredit[];
/** Validator identity */
nodePubkey: Address;
/** Current root slot for this vote account */
rootSlot: Slot;
/** Vote account address */
votePubkey: TVotePubkey;
}>;

@@ -33,8 +33,8 @@ type GetVoteAccountsApiResponse<TVotePubkey extends Address> = Readonly<{

commitment?: Commitment;
/** Specify the number of slots behind the tip that a validator must fall to be considered delinquent. **NOTE:** For the sake of consistency between ecosystem products, _it is **not** recommended that this argument be specified._ */
delinquentSlotDistance?: U64UnsafeBeyond2Pow53Minus1;
/** Do not filter out delinquent validators with no stake */
keepUnstakedDelinquents?: boolean;
/** Only return results for this validator vote address */
votePubkey?: TVotePubkey;
/** Do not filter out delinquent validators with no stake */
keepUnstakedDelinquents?: boolean;
/** Specify the number of slots behind the tip that a validator must fall to be considered delinquent. **NOTE:** For the sake of consistency between ecosystem products, _it is **not** recommended that this argument be specified._ */
delinquentSlotDistance?: U64UnsafeBeyond2Pow53Minus1;
}>;

@@ -41,0 +41,0 @@ export interface GetVoteAccountsApi extends RpcApiMethods {

@@ -57,3 +57,3 @@ import { RpcApi } from '@solana/rpc-spec';

type SolanaRpcApiForAllClusters = 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 & SendTransactionApi & SimulateTransactionApi;
type SolanaRpcApiForTestClusters = SolanaRpcApiForAllClusters & RequestAirdropApi;
type SolanaRpcApiForTestClusters = RequestAirdropApi & SolanaRpcApiForAllClusters;
export type SolanaRpcApi = SolanaRpcApiForTestClusters;

@@ -65,3 +65,3 @@ export type SolanaRpcApiDevnet = SolanaRpcApiForTestClusters;

type Config = ParamsTransformerConfig;
export declare function createSolanaRpcApi<TRpcMethods extends SolanaRpcApi | SolanaRpcApiDevnet | SolanaRpcApiTestnet | SolanaRpcApiMainnet = SolanaRpcApi>(config?: Config): RpcApi<TRpcMethods>;
export declare function createSolanaRpcApi<TRpcMethods extends SolanaRpcApi | SolanaRpcApiDevnet | SolanaRpcApiMainnet | SolanaRpcApiTestnet = SolanaRpcApi>(config?: Config): RpcApi<TRpcMethods>;
//# sourceMappingURL=index.d.ts.map

@@ -6,6 +6,6 @@ import type { Signature } from '@solana/keys';

type SendTransactionConfig = Readonly<{
skipPreflight?: boolean;
preflightCommitment?: Commitment;
maxRetries?: bigint;
minContextSlot?: Slot;
preflightCommitment?: Commitment;
skipPreflight?: boolean;
}>;

@@ -12,0 +12,0 @@ type SendTransactionResponse = Signature;

@@ -15,8 +15,3 @@ import type { Address } from '@solana/addresses';

type SigVerifyAndReplaceRecentBlockhashConfig = Readonly<{
/** if `true` the transaction signatures will be verified (conflicts with `replaceRecentBlockhash`) */
sigVerify: true;
/** if `true` the transaction recent blockhash will be replaced with the most recent blockhash. (conflicts with `sigVerify`) */
replaceRecentBlockhash?: false;
}> | Readonly<{
/** if `true` the transaction recent blockhash will be replaced with the most recent blockhash. (conflicts with `sigVerify`) */
replaceRecentBlockhash: true;

@@ -26,6 +21,11 @@ /** if `true` the transaction signatures will be verified (conflicts with `replaceRecentBlockhash`) */

}> | Readonly<{
/** if `true` the transaction recent blockhash will be replaced with the most recent blockhash. (conflicts with `sigVerify`) */
replaceRecentBlockhash?: false;
/** if `true` the transaction signatures will be verified (conflicts with `replaceRecentBlockhash`) */
sigVerify?: false;
sigVerify: true;
}> | Readonly<{
/** if `true` the transaction recent blockhash will be replaced with the most recent blockhash. (conflicts with `sigVerify`) */
replaceRecentBlockhash?: false;
/** if `true` the transaction signatures will be verified (conflicts with `replaceRecentBlockhash`) */
sigVerify?: false;
}>;

@@ -61,11 +61,11 @@ type AccountsConfigWithBase64EncodingZstdCompression = Readonly<{

logs: string[] | null;
/** The number of compute budget units consumed during the processing of this transaction */
unitsConsumed?: U64UnsafeBeyond2Pow53Minus1;
/** The most-recent return data generated by an instruction in the transaction */
returnData: Readonly<{
/** The return data itself, as base-64 encoded binary data */
data: Base64EncodedDataResponse;
/** The program that generated the return data */
programId: Address;
/** The return data itself, as base-64 encoded binary data */
data: Base64EncodedDataResponse;
}> | null;
/** The number of compute budget units consumed during the processing of this transaction */
unitsConsumed?: U64UnsafeBeyond2Pow53Minus1;
}>;

@@ -78,27 +78,27 @@ type SimulateTransactionApiResponseWithAccounts<T extends AccountInfoBase> = SolanaRpcResponse<{

/** @deprecated Set `encoding` to `'base64'` when calling this method */
simulateTransaction(base58EncodedWireTransaction: Base58EncodedBytes, config: SimulateTransactionConfigBase & SigVerifyAndReplaceRecentBlockhashConfig & AccountsConfigWithBase64Encoding): SimulateTransactionApiResponseBase & SimulateTransactionApiResponseWithAccounts<AccountInfoBase & AccountInfoWithBase64EncodedData>;
simulateTransaction(base58EncodedWireTransaction: Base58EncodedBytes, config: AccountsConfigWithBase64Encoding & SigVerifyAndReplaceRecentBlockhashConfig & SimulateTransactionConfigBase): SimulateTransactionApiResponseBase & SimulateTransactionApiResponseWithAccounts<AccountInfoBase & AccountInfoWithBase64EncodedData>;
/** @deprecated Set `encoding` to `'base64'` when calling this method */
simulateTransaction(base58EncodedWireTransaction: Base58EncodedBytes, config: SimulateTransactionConfigBase & SigVerifyAndReplaceRecentBlockhashConfig & AccountsConfigWithBase64EncodingZstdCompression): SimulateTransactionApiResponseBase & SimulateTransactionApiResponseWithAccounts<AccountInfoBase & AccountInfoWithBase64EncodedZStdCompressedData>;
simulateTransaction(base58EncodedWireTransaction: Base58EncodedBytes, config: AccountsConfigWithBase64EncodingZstdCompression & SigVerifyAndReplaceRecentBlockhashConfig & SimulateTransactionConfigBase): SimulateTransactionApiResponseBase & SimulateTransactionApiResponseWithAccounts<AccountInfoBase & AccountInfoWithBase64EncodedZStdCompressedData>;
/** @deprecated Set `encoding` to `'base64'` when calling this method */
simulateTransaction(base58EncodedWireTransaction: Base58EncodedBytes, config: SimulateTransactionConfigBase & SigVerifyAndReplaceRecentBlockhashConfig & AccountsConfigWithJsonParsedEncoding): SimulateTransactionApiResponseBase & SimulateTransactionApiResponseWithAccounts<AccountInfoBase & AccountInfoWithJsonData>;
simulateTransaction(base58EncodedWireTransaction: Base58EncodedBytes, config: AccountsConfigWithJsonParsedEncoding & SigVerifyAndReplaceRecentBlockhashConfig & SimulateTransactionConfigBase): SimulateTransactionApiResponseBase & SimulateTransactionApiResponseWithAccounts<AccountInfoBase & AccountInfoWithJsonData>;
/** @deprecated Set `encoding` to `'base64'` when calling this method */
simulateTransaction(base58EncodedWireTransaction: Base58EncodedBytes, config?: SimulateTransactionConfigBase & SigVerifyAndReplaceRecentBlockhashConfig): SimulateTransactionApiResponseBase & {
simulateTransaction(base58EncodedWireTransaction: Base58EncodedBytes, config?: SigVerifyAndReplaceRecentBlockhashConfig & SimulateTransactionConfigBase): SimulateTransactionApiResponseBase & {
accounts: null;
};
/** Simulate sending a transaction */
simulateTransaction(base64EncodedWireTransaction: Base64EncodedWireTransaction, config: SimulateTransactionConfigBase & {
simulateTransaction(base64EncodedWireTransaction: Base64EncodedWireTransaction, config: AccountsConfigWithBase64Encoding & SigVerifyAndReplaceRecentBlockhashConfig & SimulateTransactionConfigBase & {
encoding: 'base64';
} & SigVerifyAndReplaceRecentBlockhashConfig & AccountsConfigWithBase64Encoding): SimulateTransactionApiResponseBase & SimulateTransactionApiResponseWithAccounts<AccountInfoBase & AccountInfoWithBase64EncodedData>;
}): SimulateTransactionApiResponseBase & SimulateTransactionApiResponseWithAccounts<AccountInfoBase & AccountInfoWithBase64EncodedData>;
/** Simulate sending a transaction */
simulateTransaction(base64EncodedWireTransaction: Base64EncodedWireTransaction, config: SimulateTransactionConfigBase & {
simulateTransaction(base64EncodedWireTransaction: Base64EncodedWireTransaction, config: AccountsConfigWithBase64EncodingZstdCompression & SigVerifyAndReplaceRecentBlockhashConfig & SimulateTransactionConfigBase & {
encoding: 'base64';
} & SigVerifyAndReplaceRecentBlockhashConfig & AccountsConfigWithBase64EncodingZstdCompression): SimulateTransactionApiResponseBase & SimulateTransactionApiResponseWithAccounts<AccountInfoBase & AccountInfoWithBase64EncodedZStdCompressedData>;
}): SimulateTransactionApiResponseBase & SimulateTransactionApiResponseWithAccounts<AccountInfoBase & AccountInfoWithBase64EncodedZStdCompressedData>;
/** Simulate sending a transaction */
simulateTransaction(base64EncodedWireTransaction: Base64EncodedWireTransaction, config: SimulateTransactionConfigBase & {
simulateTransaction(base64EncodedWireTransaction: Base64EncodedWireTransaction, config: AccountsConfigWithJsonParsedEncoding & SigVerifyAndReplaceRecentBlockhashConfig & SimulateTransactionConfigBase & {
encoding: 'base64';
} & SigVerifyAndReplaceRecentBlockhashConfig & AccountsConfigWithJsonParsedEncoding): SimulateTransactionApiResponseBase & SimulateTransactionApiResponseWithAccounts<AccountInfoBase & AccountInfoWithJsonData>;
}): SimulateTransactionApiResponseBase & SimulateTransactionApiResponseWithAccounts<AccountInfoBase & AccountInfoWithJsonData>;
/** Simulate sending a transaction */
simulateTransaction(base64EncodedWireTransaction: Base64EncodedWireTransaction, config: SimulateTransactionConfigBase & {
simulateTransaction(base64EncodedWireTransaction: Base64EncodedWireTransaction, config: SigVerifyAndReplaceRecentBlockhashConfig & SimulateTransactionConfigBase & {
encoding: 'base64';
} & SigVerifyAndReplaceRecentBlockhashConfig): SimulateTransactionApiResponseBase & {
}): SimulateTransactionApiResponseBase & {
accounts: null;

@@ -105,0 +105,0 @@ };

{
"name": "@solana/rpc-api",
"version": "2.0.0-experimental.d3890b7",
"version": "2.0.0-experimental.d49ac92",
"description": "Defines all default Solana RPC methods as types",

@@ -49,11 +49,11 @@ "exports": {

"dependencies": {
"@solana/addresses": "2.0.0-experimental.d3890b7",
"@solana/codecs-core": "2.0.0-experimental.d3890b7",
"@solana/codecs-strings": "2.0.0-experimental.d3890b7",
"@solana/keys": "2.0.0-experimental.d3890b7",
"@solana/rpc-parsed-types": "2.0.0-experimental.d3890b7",
"@solana/rpc-spec": "2.0.0-experimental.d3890b7",
"@solana/rpc-transformers": "2.0.0-experimental.d3890b7",
"@solana/rpc-types": "2.0.0-experimental.d3890b7",
"@solana/transactions": "2.0.0-experimental.d3890b7"
"@solana/addresses": "2.0.0-experimental.d49ac92",
"@solana/codecs-core": "2.0.0-experimental.d49ac92",
"@solana/codecs-strings": "2.0.0-experimental.d49ac92",
"@solana/keys": "2.0.0-experimental.d49ac92",
"@solana/rpc-parsed-types": "2.0.0-experimental.d49ac92",
"@solana/rpc-spec": "2.0.0-experimental.d49ac92",
"@solana/rpc-transformers": "2.0.0-experimental.d49ac92",
"@solana/rpc-types": "2.0.0-experimental.d49ac92",
"@solana/transactions": "2.0.0-experimental.d49ac92"
},

@@ -70,9 +70,9 @@ "bundlewatch": {

"compile:js": "tsup --config build-scripts/tsup.config.package.ts",
"compile:typedefs": "tsc -p ./tsconfig.declarations.json && node node_modules/@solana/build-scripts/add-js-extension-to-types.mjs",
"dev": "jest -c node_modules/@solana/test-config/jest-dev.config.ts --globalSetup @solana/test-config/test-validator-setup.js --globalTeardown @solana/test-config/test-validator-teardown.js --rootDir . --watch",
"compile:typedefs": "tsc -p ./tsconfig.declarations.json && node ../../node_modules/@solana/build-scripts/add-js-extension-to-types.mjs",
"dev": "jest -c ../../node_modules/@solana/test-config/jest-dev.config.ts --globalSetup @solana/test-config/test-validator-setup.js --globalTeardown @solana/test-config/test-validator-teardown.js --rootDir . --watch",
"publish-impl": "npm view $npm_package_name@$npm_package_version > /dev/null 2>&1 || pnpm publish --tag experimental --access public --no-git-checks",
"publish-packages": "pnpm prepublishOnly && pnpm publish-impl",
"style:fix": "pnpm eslint --fix src/* && pnpm prettier -w src/* package.json",
"test:lint": "jest -c node_modules/@solana/test-config/jest-lint.config.ts --rootDir . --silent",
"test:prettier": "jest -c node_modules/@solana/test-config/jest-prettier.config.ts --rootDir . --silent",
"test:lint": "jest -c ../../node_modules/@solana/test-config/jest-lint.config.ts --rootDir . --silent",
"test:prettier": "jest -c ../../node_modules/@solana/test-config/jest-prettier.config.ts --rootDir . --silent",
"test:treeshakability:browser": "agadoo dist/index.browser.js",

@@ -82,5 +82,5 @@ "test:treeshakability:native": "agadoo dist/index.native.js",

"test:typecheck": "tsc --noEmit",
"test:unit:browser": "jest -c node_modules/@solana/test-config/jest-unit.config.browser.ts --globalSetup @solana/test-config/test-validator-setup.js --globalTeardown @solana/test-config/test-validator-teardown.js --rootDir . --silent",
"test:unit:node": "jest -c node_modules/@solana/test-config/jest-unit.config.node.ts --globalSetup @solana/test-config/test-validator-setup.js --globalTeardown @solana/test-config/test-validator-teardown.js --rootDir . --silent"
"test:unit:browser": "jest -c ../../node_modules/@solana/test-config/jest-unit.config.browser.ts --globalSetup @solana/test-config/test-validator-setup.js --globalTeardown @solana/test-config/test-validator-teardown.js --rootDir . --silent",
"test:unit:node": "jest -c ../../node_modules/@solana/test-config/jest-unit.config.node.ts --globalSetup @solana/test-config/test-validator-setup.js --globalTeardown @solana/test-config/test-validator-teardown.js --rootDir . --silent"
}
}

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