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.a9e6db3 to 2.0.0-experimental.aa4a701

dist/types/index.d.ts.map

88

dist/index.browser.js

@@ -1,41 +0,1 @@

// src/commitment.ts
function getCommitmentScore(commitment) {
switch (commitment) {
case "finalized":
return 2;
case "confirmed":
return 1;
case "processed":
return 0;
default:
return ((_) => {
throw new Error(`Unrecognized commitment \`${commitment}\`.`);
})();
}
}
function commitmentComparator(a, b) {
if (a === b) {
return 0;
}
return getCommitmentScore(a) < getCommitmentScore(b) ? -1 : 1;
}
// src/lamports.ts
var maxU64Value = 18446744073709551615n;
function isLamports(putativeLamports) {
return putativeLamports >= 0 && putativeLamports <= maxU64Value;
}
function assertIsLamports(putativeLamports) {
if (putativeLamports < 0) {
throw new Error("Input for 64-bit unsigned integer cannot be negative");
}
if (putativeLamports > maxU64Value) {
throw new Error("Input number is too large to be represented as a 64-bit unsigned integer");
}
}
function lamports(putativeLamports) {
assertIsLamports(putativeLamports);
return putativeLamports;
}
// src/params-patcher.ts

@@ -555,50 +515,4 @@ function visitNode(value, keyPath, onIntegerOverflow) {

// src/stringified-bigint.ts
function isStringifiedBigInt(putativeBigInt) {
try {
BigInt(putativeBigInt);
return true;
} catch (_) {
return false;
}
}
function assertIsStringifiedBigInt(putativeBigInt) {
try {
BigInt(putativeBigInt);
} catch (e) {
throw new Error(`\`${putativeBigInt}\` cannot be parsed as a BigInt`, {
cause: e
});
}
}
function stringifiedBigInt(putativeBigInt) {
assertIsStringifiedBigInt(putativeBigInt);
return putativeBigInt;
}
// src/unix-timestamp.ts
function isUnixTimestamp(putativeTimestamp) {
if (putativeTimestamp > 864e13 || putativeTimestamp < -864e13) {
return false;
}
return true;
}
function assertIsUnixTimestamp(putativeTimestamp) {
try {
if (putativeTimestamp > 864e13 || putativeTimestamp < -864e13) {
throw new Error("Expected input number to be in the range [-8.64e15, 8.64e15]");
}
} catch (e) {
throw new Error(`\`${putativeTimestamp}\` is not a timestamp`, {
cause: e
});
}
}
function unixTimestamp(putativeTimestamp) {
assertIsUnixTimestamp(putativeTimestamp);
return putativeTimestamp;
}
export { assertIsLamports, assertIsStringifiedBigInt, assertIsUnixTimestamp, commitmentComparator, createSolanaRpcApi, createSolanaRpcSubscriptionsApi, createSolanaRpcSubscriptionsApi_UNSTABLE, isLamports, isStringifiedBigInt, isUnixTimestamp, lamports, stringifiedBigInt, unixTimestamp };
export { createSolanaRpcApi, createSolanaRpcSubscriptionsApi, createSolanaRpcSubscriptionsApi_UNSTABLE };
//# sourceMappingURL=out.js.map
//# sourceMappingURL=index.browser.js.map

@@ -1,41 +0,1 @@

// src/commitment.ts
function getCommitmentScore(commitment) {
switch (commitment) {
case "finalized":
return 2;
case "confirmed":
return 1;
case "processed":
return 0;
default:
return ((_) => {
throw new Error(`Unrecognized commitment \`${commitment}\`.`);
})();
}
}
function commitmentComparator(a, b) {
if (a === b) {
return 0;
}
return getCommitmentScore(a) < getCommitmentScore(b) ? -1 : 1;
}
// src/lamports.ts
var maxU64Value = 18446744073709551615n;
function isLamports(putativeLamports) {
return putativeLamports >= 0 && putativeLamports <= maxU64Value;
}
function assertIsLamports(putativeLamports) {
if (putativeLamports < 0) {
throw new Error("Input for 64-bit unsigned integer cannot be negative");
}
if (putativeLamports > maxU64Value) {
throw new Error("Input number is too large to be represented as a 64-bit unsigned integer");
}
}
function lamports(putativeLamports) {
assertIsLamports(putativeLamports);
return putativeLamports;
}
// src/params-patcher.ts

@@ -555,50 +515,4 @@ function visitNode(value, keyPath, onIntegerOverflow) {

// src/stringified-bigint.ts
function isStringifiedBigInt(putativeBigInt) {
try {
BigInt(putativeBigInt);
return true;
} catch (_) {
return false;
}
}
function assertIsStringifiedBigInt(putativeBigInt) {
try {
BigInt(putativeBigInt);
} catch (e) {
throw new Error(`\`${putativeBigInt}\` cannot be parsed as a BigInt`, {
cause: e
});
}
}
function stringifiedBigInt(putativeBigInt) {
assertIsStringifiedBigInt(putativeBigInt);
return putativeBigInt;
}
// src/unix-timestamp.ts
function isUnixTimestamp(putativeTimestamp) {
if (putativeTimestamp > 864e13 || putativeTimestamp < -864e13) {
return false;
}
return true;
}
function assertIsUnixTimestamp(putativeTimestamp) {
try {
if (putativeTimestamp > 864e13 || putativeTimestamp < -864e13) {
throw new Error("Expected input number to be in the range [-8.64e15, 8.64e15]");
}
} catch (e) {
throw new Error(`\`${putativeTimestamp}\` is not a timestamp`, {
cause: e
});
}
}
function unixTimestamp(putativeTimestamp) {
assertIsUnixTimestamp(putativeTimestamp);
return putativeTimestamp;
}
export { assertIsLamports, assertIsStringifiedBigInt, assertIsUnixTimestamp, commitmentComparator, createSolanaRpcApi, createSolanaRpcSubscriptionsApi, createSolanaRpcSubscriptionsApi_UNSTABLE, isLamports, isStringifiedBigInt, isUnixTimestamp, lamports, stringifiedBigInt, unixTimestamp };
export { createSolanaRpcApi, createSolanaRpcSubscriptionsApi, createSolanaRpcSubscriptionsApi_UNSTABLE };
//# sourceMappingURL=out.js.map
//# sourceMappingURL=index.native.js.map

@@ -1,41 +0,1 @@

// src/commitment.ts
function getCommitmentScore(commitment) {
switch (commitment) {
case "finalized":
return 2;
case "confirmed":
return 1;
case "processed":
return 0;
default:
return ((_) => {
throw new Error(`Unrecognized commitment \`${commitment}\`.`);
})();
}
}
function commitmentComparator(a, b) {
if (a === b) {
return 0;
}
return getCommitmentScore(a) < getCommitmentScore(b) ? -1 : 1;
}
// src/lamports.ts
var maxU64Value = 18446744073709551615n;
function isLamports(putativeLamports) {
return putativeLamports >= 0 && putativeLamports <= maxU64Value;
}
function assertIsLamports(putativeLamports) {
if (putativeLamports < 0) {
throw new Error("Input for 64-bit unsigned integer cannot be negative");
}
if (putativeLamports > maxU64Value) {
throw new Error("Input number is too large to be represented as a 64-bit unsigned integer");
}
}
function lamports(putativeLamports) {
assertIsLamports(putativeLamports);
return putativeLamports;
}
// src/params-patcher.ts

@@ -555,50 +515,4 @@ function visitNode(value, keyPath, onIntegerOverflow) {

// src/stringified-bigint.ts
function isStringifiedBigInt(putativeBigInt) {
try {
BigInt(putativeBigInt);
return true;
} catch (_) {
return false;
}
}
function assertIsStringifiedBigInt(putativeBigInt) {
try {
BigInt(putativeBigInt);
} catch (e) {
throw new Error(`\`${putativeBigInt}\` cannot be parsed as a BigInt`, {
cause: e
});
}
}
function stringifiedBigInt(putativeBigInt) {
assertIsStringifiedBigInt(putativeBigInt);
return putativeBigInt;
}
// src/unix-timestamp.ts
function isUnixTimestamp(putativeTimestamp) {
if (putativeTimestamp > 864e13 || putativeTimestamp < -864e13) {
return false;
}
return true;
}
function assertIsUnixTimestamp(putativeTimestamp) {
try {
if (putativeTimestamp > 864e13 || putativeTimestamp < -864e13) {
throw new Error("Expected input number to be in the range [-8.64e15, 8.64e15]");
}
} catch (e) {
throw new Error(`\`${putativeTimestamp}\` is not a timestamp`, {
cause: e
});
}
}
function unixTimestamp(putativeTimestamp) {
assertIsUnixTimestamp(putativeTimestamp);
return putativeTimestamp;
}
export { assertIsLamports, assertIsStringifiedBigInt, assertIsUnixTimestamp, commitmentComparator, createSolanaRpcApi, createSolanaRpcSubscriptionsApi, createSolanaRpcSubscriptionsApi_UNSTABLE, isLamports, isStringifiedBigInt, isUnixTimestamp, lamports, stringifiedBigInt, unixTimestamp };
export { createSolanaRpcApi, createSolanaRpcSubscriptionsApi, createSolanaRpcSubscriptionsApi_UNSTABLE };
//# sourceMappingURL=out.js.map
//# sourceMappingURL=index.node.js.map

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

export * from './commitment';
export * from './lamports';
export * from './rpc-methods';
export * from './rpc-subscriptions';
export * from './stringified-bigint';
export * from './unix-timestamp';
//# sourceMappingURL=index.d.ts.map

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

import { Base58EncodedAddress } from '@solana/addresses';
import { Address } from '@solana/addresses';
import { LamportsUnsafeBeyond2Pow53Minus1 } from '@solana/rpc-types';
import { Blockhash, TransactionVersion } from '@solana/transactions';
import { LamportsUnsafeBeyond2Pow53Minus1 } from '../lamports';
import { TransactionError } from '../transaction-error';

@@ -8,3 +8,3 @@ import { Base58EncodedBytes, Base58EncodedDataResponse, Base64EncodedDataResponse, SignedLamportsAsI64Unsafe, TokenBalance, U64UnsafeBeyond2Pow53Minus1 } from './common';

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

@@ -21,12 +21,12 @@ writableIndexes: readonly number[];

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

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

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

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

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

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

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

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

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

@@ -230,3 +230,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 */

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

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

import { Base58EncodedAddress } from '@solana/addresses';
import { LamportsUnsafeBeyond2Pow53Minus1 } from '../lamports';
import { StringifiedBigInt } from '../stringified-bigint';
import { StringifiedNumber } from '../stringified-number';
import { Address } from '@solana/addresses';
import { LamportsUnsafeBeyond2Pow53Minus1, StringifiedBigInt, StringifiedNumber } from '@solana/rpc-types';
export type DataSlice = Readonly<{

@@ -34,5 +32,2 @@ offset: number;

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

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

@@ -72,3 +67,3 @@ rentEpoch: U64UnsafeBeyond2Pow53Minus1;

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

@@ -85,7 +80,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;

@@ -95,6 +90,6 @@ }>;

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

@@ -104,3 +99,3 @@ isNative: boolean;

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

@@ -107,0 +102,0 @@ }>;

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

import { Base58EncodedAddress } from '@solana/addresses';
import { Commitment } from '../commitment';
import { Address } from '@solana/addresses';
import { Commitment } from '@solana/rpc-types';
import { AccountInfoBase, AccountInfoWithBase58Bytes, AccountInfoWithBase58EncodedData, AccountInfoWithBase64EncodedData, AccountInfoWithBase64EncodedZStdCompressedData, AccountInfoWithJsonData, DataSlice, RpcResponse, Slot } from './common';

@@ -19,17 +19,17 @@ type GetAccountInfoApiResponseBase = RpcResponse<AccountInfoBase | null>;

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

import { Base58EncodedAddress } from '@solana/addresses';
import { Commitment } from '../commitment';
import { LamportsUnsafeBeyond2Pow53Minus1 } from '../lamports';
import { Address } from '@solana/addresses';
import { Commitment, LamportsUnsafeBeyond2Pow53Minus1 } from '@solana/rpc-types';
import { RpcResponse, Slot } from './common';

@@ -10,3 +9,3 @@ type GetBalanceApiResponse = RpcResponse<LamportsUnsafeBeyond2Pow53Minus1>;

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

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

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

import { Commitment, UnixTimestamp } from '@solana/rpc-types';
import { Blockhash, TransactionVersion } from '@solana/transactions';
import { Commitment } from '../commitment';
import { UnixTimestamp } from '../unix-timestamp';
import { Base58EncodedBytes, Slot, U64UnsafeBeyond2Pow53Minus1 } from './common';

@@ -5,0 +4,0 @@ import { Reward, TransactionForAccounts, TransactionForFullBase58, TransactionForFullBase64, TransactionForFullJson, TransactionForFullJsonParsed } from './common-transactions';

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

import { LamportsUnsafeBeyond2Pow53Minus1 } from '../lamports';
import { LamportsUnsafeBeyond2Pow53Minus1 } from '@solana/rpc-types';
import { Slot } from './common';

@@ -3,0 +3,0 @@ type GetBlockCommitmentApiResponse = Readonly<{

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

import { Commitment } from '../commitment';
import { Commitment } from '@solana/rpc-types';
import { Slot, U64UnsafeBeyond2Pow53Minus1 } from './common';

@@ -3,0 +3,0 @@ type GetBlockHeightApiResponse = U64UnsafeBeyond2Pow53Minus1;

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

import { Base58EncodedAddress } from '@solana/addresses';
import { Commitment } from '../commitment';
import { Address } from '@solana/addresses';
import { Commitment } from '@solana/rpc-types';
import { RpcResponse, Slot, U64UnsafeBeyond2Pow53Minus1 } from './common';

@@ -19,3 +19,3 @@ type NumberOfLeaderSlots = 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>;

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

import { Commitment } from '../commitment';
import { Commitment } from '@solana/rpc-types';
import { Slot } from './common';

@@ -3,0 +3,0 @@ type GetBlocksApiResponse = Slot[];

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

import { Commitment } from '../commitment';
import { Commitment } from '@solana/rpc-types';
import { Slot } from './common';

@@ -3,0 +3,0 @@ type GetBlocksWithLimitApiResponse = Slot[];

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

import { UnixTimestamp } from '../unix-timestamp';
import { UnixTimestamp } from '@solana/rpc-types';
import { Slot } from './common';

@@ -3,0 +3,0 @@ /** Estimated production time, as Unix timestamp (seconds since the Unix epoch) */

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

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

import { Commitment } from '../commitment';
import { Commitment } from '@solana/rpc-types';
import { Slot, U64UnsafeBeyond2Pow53Minus1 } from './common';

@@ -3,0 +3,0 @@ type GetEpochInfoApiResponse = Readonly<{

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

import { Commitment } from '@solana/rpc-types';
import { SerializedMessageBytesBase64 } from '@solana/transactions';
import { Commitment } from '../commitment';
import { RpcResponse, Slot, U64UnsafeBeyond2Pow53Minus1 } from './common';

@@ -4,0 +4,0 @@ /** Fee corresponding to the message at the specified blockhash */

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

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

import { Commitment } from '../commitment';
import { Commitment } from '@solana/rpc-types';
import { F64UnsafeSeeDocumentation } from './common';

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

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

import { Base58EncodedAddress } from '@solana/addresses';
import { Commitment } from '../commitment';
import { LamportsUnsafeBeyond2Pow53Minus1 } from '../lamports';
import { Address } from '@solana/addresses';
import { Commitment, LamportsUnsafeBeyond2Pow53Minus1 } from '@solana/rpc-types';
import { Slot, U64UnsafeBeyond2Pow53Minus1 } from './common';

@@ -16,3 +15,3 @@ type GetInflationRewardApiResponse = Readonly<{

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

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

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

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

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

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

import { Commitment } from '@solana/rpc-types';
import { Blockhash } from '@solana/transactions';
import { Commitment } from '../commitment';
import { RpcResponse, Slot, U64UnsafeBeyond2Pow53Minus1 } from './common';

@@ -4,0 +4,0 @@ type GetLatestBlockhashApiResponse = RpcResponse<{

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

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

@@ -21,3 +21,3 @@ /**

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,3 +0,2 @@

import { Commitment } from '../commitment';
import { LamportsUnsafeBeyond2Pow53Minus1 } from '../lamports';
import { Commitment, LamportsUnsafeBeyond2Pow53Minus1 } from '@solana/rpc-types';
import { U64UnsafeBeyond2Pow53Minus1 } from './common';

@@ -4,0 +3,0 @@ type GetMinimumBalanceForRentExemptionApiResponse = LamportsUnsafeBeyond2Pow53Minus1;

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

import { Base58EncodedAddress } from '@solana/addresses';
import { Commitment } from '../commitment';
import { Address } from '@solana/addresses';
import { Commitment } from '@solana/rpc-types';
import { AccountInfoBase, AccountInfoWithBase58EncodedData, AccountInfoWithBase64EncodedData, AccountInfoWithBase64EncodedZStdCompressedData, AccountInfoWithJsonData, DataSlice, RpcResponse, Slot } from './common';

@@ -21,3 +21,3 @@ type GetMultipleAccountsApiResponseBase = AccountInfoBase | null;

/** 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,3 +0,3 @@

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

@@ -20,38 +20,38 @@ type GetProgramAccountsApiCommonConfig = Readonly<{

*/
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 { Base58EncodedAddress } from '@solana/addresses';
import { Address } from '@solana/addresses';
import { MicroLamportsUnsafeBeyond2Pow53Minus1, Slot } from './common';

@@ -26,5 +26,5 @@ type GetRecentPrioritizationFeesApiResponse = Readonly<{

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

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

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

@@ -30,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;
}>;

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

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

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

import { TransactionSignature } from '@solana/transactions';
import { Commitment } from '../commitment';
import { Signature } from '@solana/keys';
import { Commitment } from '@solana/rpc-types';
import { TransactionError } from '../transaction-error';

@@ -50,3 +50,3 @@ import { RpcResponse, Slot, U64UnsafeBeyond2Pow53Minus1 } from './common';

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

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

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

import { Commitment } from '../commitment';
import { Commitment } from '@solana/rpc-types';
import { Slot } from './common';

@@ -3,0 +3,0 @@ type GetSlotApiResponse = Slot;

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

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

@@ -11,4 +11,4 @@ export interface GetSlotLeaderApi {

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

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

import { Base58EncodedAddress } from '@solana/addresses';
import { Address } from '@solana/addresses';
import { Slot } from './common';
/** 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,3 +0,3 @@

import { Base58EncodedAddress } from '@solana/addresses';
import { Commitment } from '../commitment';
import { Address } from '@solana/addresses';
import { Commitment } from '@solana/rpc-types';
import { Slot, U64UnsafeBeyond2Pow53Minus1 } from './common';

@@ -16,3 +16,3 @@ type GetStakeActivationApiResponse = Readonly<{

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

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

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

import { Commitment } from '../commitment';
import { LamportsUnsafeBeyond2Pow53Minus1 } from '../lamports';
import { Commitment, LamportsUnsafeBeyond2Pow53Minus1 } from '@solana/rpc-types';
import { RpcResponse } from './common';

@@ -4,0 +3,0 @@ type GetStakeMinimumDelegationApiResponse = RpcResponse<LamportsUnsafeBeyond2Pow53Minus1>;

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

import { Base58EncodedAddress } from '@solana/addresses';
import { Commitment } from '../commitment';
import { LamportsUnsafeBeyond2Pow53Minus1 } from '../lamports';
import { Address } from '@solana/addresses';
import { Commitment, LamportsUnsafeBeyond2Pow53Minus1 } from '@solana/rpc-types';
import { RpcResponse } from './common';

@@ -20,3 +19,3 @@ type GetSupplyConfig = Readonly<{

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

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

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

import { Base58EncodedAddress } from '@solana/addresses';
import { Commitment } from '../commitment';
import { Address } from '@solana/addresses';
import { Commitment } from '@solana/rpc-types';
import { RpcResponse, TokenAmount } from './common';

@@ -11,3 +11,3 @@ type GetTokenAccountBalanceApiResponse = RpcResponse<TokenAmount>;

/** 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,3 +0,3 @@

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

@@ -17,7 +17,7 @@ type TokenAccountInfoWithJsonData = 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,3 +0,3 @@

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

@@ -17,7 +17,7 @@ type TokenAccountInfoWithJsonData = 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 { Commitment } from '../commitment';
import { Address } from '@solana/addresses';
import { Commitment } from '@solana/rpc-types';
import { RpcResponse, TokenAmount } from './common';
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,3 +0,3 @@

import { Base58EncodedAddress } from '@solana/addresses';
import { Commitment } from '../commitment';
import { Address } from '@solana/addresses';
import { Commitment } from '@solana/rpc-types';
import { RpcResponse, TokenAmount } from './common';

@@ -11,3 +11,3 @@ type GetTokenSupplyApiResponse = RpcResponse<TokenAmount>;

/** 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,8 +0,6 @@

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 { Commitment } from '../commitment';
import { LamportsUnsafeBeyond2Pow53Minus1 } from '../lamports';
import { TransactionError } from '../transaction-error';
import { UnixTimestamp } from '../unix-timestamp';
import { Base58EncodedBytes, Base58EncodedDataResponse, Base64EncodedDataResponse, Slot, TokenBalance, U64UnsafeBeyond2Pow53Minus1 } from './common';

@@ -12,3 +10,3 @@ import { Reward, TransactionStatus } from './common-transactions';

/** the program that generated the return data */
programId: Base58EncodedAddress;
programId: Address;
/** the return data itself */

@@ -46,3 +44,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. */

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

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

@@ -77,5 +75,5 @@ numReadonlySignedAccounts: number;

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

@@ -88,3 +86,3 @@ type ParsedTransactionInstruction = Readonly<{

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

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

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

@@ -117,4 +115,4 @@ source: string;

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

@@ -141,3 +139,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';

@@ -150,3 +148,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';

@@ -159,3 +157,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';

@@ -168,3 +166,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';

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

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

import { Commitment } from '../commitment';
import { Commitment } from '@solana/rpc-types';
import { Slot, U64UnsafeBeyond2Pow53Minus1 } from './common';

@@ -3,0 +3,0 @@ type GetTransactionCountApiResponse = U64UnsafeBeyond2Pow53Minus1;

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

import { Base58EncodedAddress } from '@solana/addresses';
import { Commitment } from '../commitment';
import { Address } from '@solana/addresses';
import { Commitment } from '@solana/rpc-types';
import { Slot, U64UnsafeBeyond2Pow53Minus1 } from './common';

@@ -8,7 +8,7 @@ type Epoch = 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

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

import { Commitment } from '@solana/rpc-types';
import { Blockhash } from '@solana/transactions';
import { Commitment } from '../commitment';
import { RpcResponse, Slot } from './common';

@@ -4,0 +4,0 @@ type IsBlockhashValidApiResponse = RpcResponse<boolean>;

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

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

@@ -13,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 { Commitment } from '../commitment';
import { Base58EncodedTransactionSignature, Slot } from './common';
import { Slot } from './common';
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,4 +0,4 @@

import { Base58EncodedAddress } from '@solana/addresses';
import { Address } from '@solana/addresses';
import { Commitment } from '@solana/rpc-types';
import { Base64EncodedWireTransaction } from '@solana/transactions';
import { Commitment } from '../commitment';
import { TransactionError } from '../transaction-error';

@@ -34,3 +34,3 @@ import { AccountInfoBase, AccountInfoWithBase64EncodedData, AccountInfoWithBase64EncodedZStdCompressedData, AccountInfoWithJsonData, Base58EncodedBytes, Base64EncodedDataResponse, RpcResponse, Slot, U64UnsafeBeyond2Pow53Minus1 } from './common';

/** 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,3 +0,3 @@

import { Base58EncodedAddress } from '@solana/addresses';
import { Commitment } from '../commitment';
import { Address } from '@solana/addresses';
import { Commitment } from '@solana/rpc-types';
import { AccountInfoBase, AccountInfoWithBase58Bytes, AccountInfoWithBase58EncodedData, AccountInfoWithBase64EncodedData, AccountInfoWithBase64EncodedZStdCompressedData, AccountInfoWithJsonData, RpcResponse } from '../rpc-methods/common';

@@ -15,17 +15,17 @@ type AccountNotificationsApiCommonConfig = Readonly<{

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

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

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

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

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

import { Base58EncodedAddress } from '@solana/addresses';
import { TransactionSignature } from '@solana/transactions';
import { Commitment } from '../commitment';
import { Address } from '@solana/addresses';
import { Signature } from '@solana/keys';
import { Commitment } from '@solana/rpc-types';
import { RpcResponse } from '../rpc-methods/common';

@@ -9,6 +9,6 @@ import { TransactionError } from '../transaction-error';

logs: readonly string[] | null;
signature: TransactionSignature;
signature: Signature;
}>>;
type LogsNotificationsApiFilter = 'all' | 'allWithVotes' | {
mentions: [Base58EncodedAddress];
mentions: [Address];
};

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

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

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

@@ -18,3 +18,3 @@ type ProgramNotificationsMemcmpFilterBase58 = Readonly<{

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,3 +0,3 @@

import { TransactionSignature } from '@solana/transactions';
import { Commitment } from '../commitment';
import { Signature } from '@solana/keys';
import { Commitment } from '@solana/rpc-types';
import { RpcResponse } from '../rpc-methods/common';

@@ -18,6 +18,6 @@ import { TransactionError } from '../transaction-error';

*/
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,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 { UnixTimestamp } from '../unix-timestamp';
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.a9e6db3",
"version": "2.0.0-experimental.aa4a701",
"description": "A library for making calls to the Solana JSON RPC API",

@@ -48,9 +48,6 @@ "exports": {

],
"dependencies": {
"@metaplex-foundation/umi-serializers": "^0.8.9"
},
"devDependencies": {
"@solana/eslint-config-solana": "^1.0.2",
"@swc/jest": "^0.2.28",
"@types/jest": "^29.5.5",
"@swc/jest": "^0.2.29",
"@types/jest": "^29.5.6",
"@typescript-eslint/eslint-plugin": "^6.7.0",

@@ -60,8 +57,8 @@ "@typescript-eslint/parser": "^6.3.0",

"eslint": "^8.45.0",
"eslint-plugin-jest": "^27.2.3",
"eslint-plugin-jest": "^27.4.2",
"eslint-plugin-sort-keys-fix": "^1.1.2",
"jest": "^29.7.0",
"jest-environment-jsdom": "^29.6.4",
"jest-environment-jsdom": "^29.7.0",
"jest-fetch-mock-fork": "^3.0.4",
"jest-runner-eslint": "^2.1.0",
"jest-runner-eslint": "^2.1.2",
"jest-runner-prettier": "^1.0.0",

@@ -72,5 +69,9 @@ "prettier": "^2.8",

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

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

@@ -18,7 +18,1 @@ [![npm][npm-image]][npm-url]

This package defines a specification of the [Solana JSON-RPC](https://docs.solana.com/api/http). The inputs and outputs of each RPC method are described in terms of Typescript interfaces. You generally will not need to depend on this package directly, but rather use it as part of the RPC creation functions of the Solana JavaScript SDK [`@solana/web3.js@experimental`](https://github.com/solana-labs/solana-web3.js/tree/master/packages/library).
## Contributing
As of this moment, this package does not represent a specification of the full set of Solana JSON-RPC methods. If you find that you have need of a method that has not yet been specified, we would be grateful if you submitted a specification for it.
Read the RPC method specification [contribution guide](https://github.com/solana-labs/solana-web3.js/issues/1278) to get started.

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