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

@solana/rpc-api

Package Overview
Dependencies
Maintainers
14
Versions
896
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-canary-20241028085053 to 2.0.0-canary-20241028105940

4

dist/types/getBlock.d.ts

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

import type { Base58EncodedBytes, Blockhash, Commitment, Reward, Slot, TransactionForAccounts, TransactionForFullBase58, TransactionForFullBase64, TransactionForFullJson, TransactionForFullJsonParsed, U64, UnixTimestamp } from '@solana/rpc-types';
import type { Base58EncodedBytes, Blockhash, Commitment, Reward, Slot, TransactionForAccounts, TransactionForFullBase58, TransactionForFullBase64, TransactionForFullJson, TransactionForFullJsonParsed, UnixTimestamp } from '@solana/rpc-types';
import type { TransactionVersion } from '@solana/transaction-messages';
type GetBlockApiResponseBase = Readonly<{
/** The number of blocks beneath this block */
blockHeight: U64;
blockHeight: bigint;
/** Estimated production time, as Unix timestamp */

@@ -7,0 +7,0 @@ blockTime: UnixTimestamp;

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

import type { Commitment, Slot, U64 } from '@solana/rpc-types';
type GetBlockHeightApiResponse = U64;
import type { Commitment, Slot } from '@solana/rpc-types';
type GetBlockHeightApiResponse = bigint;
export type GetBlockHeightApi = {

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

import type { Address } from '@solana/addresses';
import type { Commitment, Slot, SolanaRpcResponse, U64 } from '@solana/rpc-types';
type NumberOfLeaderSlots = U64;
type NumberOfBlocksProduced = U64;
import type { Commitment, Slot, SolanaRpcResponse } from '@solana/rpc-types';
type NumberOfLeaderSlots = bigint;
type NumberOfBlocksProduced = bigint;
type SlotRange = Readonly<{

@@ -6,0 +6,0 @@ firstSlot: Slot;

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

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

@@ -6,11 +6,11 @@ /** the current slot */

/** the current block height */
blockHeight: U64;
blockHeight: bigint;
/** the current epoch */
epoch: U64;
epoch: bigint;
/** the current slot relative to the start of the current epoch */
slotIndex: U64;
slotIndex: bigint;
/** the number of slots in this epoch */
slotsInEpoch: U64;
slotsInEpoch: bigint;
/** total number of transactions processed without error since genesis */
transactionCount: U64 | null;
transactionCount: bigint | null;
}>;

@@ -17,0 +17,0 @@ export type GetEpochInfoApi = {

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

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

@@ -12,0 +11,0 @@ warmup: boolean;

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

import type { F64UnsafeSeeDocumentation, U64 } from '@solana/rpc-types';
import type { F64UnsafeSeeDocumentation } from '@solana/rpc-types';
type GetInflationRateApiResponse = Readonly<{
/** Epoch for which these values are valid */
epoch: U64;
epoch: bigint;
/** Inflation allocated to the foundation */

@@ -6,0 +6,0 @@ foundation: F64UnsafeSeeDocumentation;

import type { Address } from '@solana/addresses';
import type { Commitment, Lamports, Slot, U64 } from '@solana/rpc-types';
import type { Commitment, Lamports, Slot } from '@solana/rpc-types';
type GetInflationRewardApiConfig = Readonly<{
commitment?: Commitment;
epoch?: U64;
epoch?: bigint;
minContextSlot?: Slot;

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

effectiveSlot: Slot;
epoch: U64;
epoch: bigint;
postBalance: Lamports;

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

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

import type { Blockhash, Commitment, Slot, SolanaRpcResponse, U64 } from '@solana/rpc-types';
import type { Blockhash, Commitment, Slot, SolanaRpcResponse } from '@solana/rpc-types';
type GetLatestBlockhashApiResponse = Readonly<{

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

/** last block height at which the blockhash will be valid */
lastValidBlockHeight: U64;
lastValidBlockHeight: bigint;
}>;

@@ -9,0 +9,0 @@ export type GetLatestBlockhashApi = {

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

import type { Commitment, Lamports, U64 } from '@solana/rpc-types';
import type { Commitment, Lamports } from '@solana/rpc-types';
type GetMinimumBalanceForRentExemptionApiResponse = Lamports;

@@ -7,3 +7,3 @@ export type GetMinimumBalanceForRentExemptionApi = {

*/
getMinimumBalanceForRentExemption(size: U64, config?: Readonly<{
getMinimumBalanceForRentExemption(size: bigint, config?: Readonly<{
commitment?: Commitment;

@@ -10,0 +10,0 @@ }>): GetMinimumBalanceForRentExemptionApiResponse;

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

import type { Slot, U64 } from '@solana/rpc-types';
import type { Slot } from '@solana/rpc-types';
type PerformanceSample = Readonly<{
/** Number of non-vote transactions in sample. */
numNonVoteTransactions: U64;
numNonVoteTransactions: bigint;
/** Number of slots in sample */
numSlots: U64;
numSlots: bigint;
/** Number of transactions in sample */
numTransactions: U64;
numTransactions: bigint;
/** Number of seconds in a sample window */

@@ -10,0 +10,0 @@ samplePeriodSecs: number;

import type { Signature } from '@solana/keys';
import type { Commitment, Slot, SolanaRpcResponse, TransactionError, U64 } from '@solana/rpc-types';
import type { Commitment, Slot, SolanaRpcResponse, TransactionError } from '@solana/rpc-types';
/** @deprecated */

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

*/
confirmations: U64 | null;
confirmations: bigint | null;
/** Error if transaction failed, null if transaction succeeded */

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

import type { Address } from '@solana/addresses';
import type { JsonParsedTokenAccount } from '@solana/rpc-parsed-types';
import type { AccountInfoBase, AccountInfoWithBase58Bytes, AccountInfoWithBase58EncodedData, AccountInfoWithBase64EncodedData, AccountInfoWithBase64EncodedZStdCompressedData, AccountInfoWithPubkey, Commitment, DataSlice, Slot, SolanaRpcResponse, U64 } from '@solana/rpc-types';
import type { AccountInfoBase, AccountInfoWithBase58Bytes, AccountInfoWithBase58EncodedData, AccountInfoWithBase64EncodedData, AccountInfoWithBase64EncodedZStdCompressedData, AccountInfoWithPubkey, Commitment, DataSlice, Slot, SolanaRpcResponse } from '@solana/rpc-types';
type TokenAccountInfoWithJsonData = Readonly<{

@@ -12,3 +12,3 @@ data: Readonly<{

program: Address;
space: U64;
space: bigint;
}>;

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

import type { Address } from '@solana/addresses';
import type { JsonParsedTokenAccount } from '@solana/rpc-parsed-types';
import type { AccountInfoBase, AccountInfoWithBase58Bytes, AccountInfoWithBase58EncodedData, AccountInfoWithBase64EncodedData, AccountInfoWithBase64EncodedZStdCompressedData, AccountInfoWithPubkey, Commitment, DataSlice, Slot, SolanaRpcResponse, U64 } from '@solana/rpc-types';
import type { AccountInfoBase, AccountInfoWithBase58Bytes, AccountInfoWithBase58EncodedData, AccountInfoWithBase64EncodedData, AccountInfoWithBase64EncodedZStdCompressedData, AccountInfoWithPubkey, Commitment, DataSlice, Slot, SolanaRpcResponse } from '@solana/rpc-types';
type TokenAccountInfoWithJsonData = Readonly<{

@@ -12,3 +12,3 @@ data: Readonly<{

program: Address;
space: U64;
space: bigint;
}>;

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

import type { Address } from '@solana/addresses';
import type { Signature } from '@solana/keys';
import type { Base58EncodedBytes, Base58EncodedDataResponse, Base64EncodedDataResponse, Blockhash, Commitment, Lamports, Reward, Slot, TokenBalance, TransactionError, TransactionStatus, U64, UnixTimestamp } from '@solana/rpc-types';
import type { Base58EncodedBytes, Base58EncodedDataResponse, Base64EncodedDataResponse, Blockhash, Commitment, Lamports, Reward, Slot, TokenBalance, TransactionError, TransactionStatus, UnixTimestamp } from '@solana/rpc-types';
import type { TransactionVersion } from '@solana/transaction-messages';

@@ -13,3 +13,3 @@ type ReturnData = {

/** number of compute units consumed by the transaction */
computeUnitsConsumed?: U64;
computeUnitsConsumed?: bigint;
/** Error if transaction failed, null if transaction succeeded. */

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

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

import type { Commitment, Slot, U64 } from '@solana/rpc-types';
type GetTransactionCountApiResponse = U64;
import type { Commitment, Slot } from '@solana/rpc-types';
type GetTransactionCountApiResponse = bigint;
export type GetTransactionCountApi = {

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

import type { Address } from '@solana/addresses';
import type { Commitment, Slot, U64 } from '@solana/rpc-types';
type Epoch = U64;
type Credits = U64;
type PreviousCredits = U64;
import type { Commitment, Epoch, Slot } from '@solana/rpc-types';
type Credits = bigint;
type PreviousCredits = bigint;
type EpochCredit = [Epoch, Credits, PreviousCredits];
type VoteAccount<TVotePubkey extends Address> = Readonly<{
/** the stake, in lamports, delegated to this vote account and active in this epoch */
activatedStake: U64;
activatedStake: bigint;
/** percentage (0-100) of rewards payout owed to the vote account */

@@ -17,3 +16,3 @@ commission: number;

/** Most recent slot voted on by this vote account */
lastVote: U64;
lastVote: bigint;
/** Validator identity */

@@ -33,3 +32,3 @@ nodePubkey: Address;

/** 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?: U64;
delinquentSlotDistance?: bigint;
/** Do not filter out delinquent validators with no stake */

@@ -36,0 +35,0 @@ keepUnstakedDelinquents?: boolean;

import type { Address } from '@solana/addresses';
import type { AccountInfoBase, AccountInfoWithBase64EncodedData, AccountInfoWithBase64EncodedZStdCompressedData, AccountInfoWithJsonData, Base58EncodedBytes, Base64EncodedDataResponse, Blockhash, Commitment, Slot, SolanaRpcResponse, TransactionError, TransactionForFullMetaInnerInstructionsParsed, TransactionForFullMetaInnerInstructionsUnparsed, U64 } from '@solana/rpc-types';
import type { AccountInfoBase, AccountInfoWithBase64EncodedData, AccountInfoWithBase64EncodedZStdCompressedData, AccountInfoWithJsonData, Base58EncodedBytes, Base64EncodedDataResponse, Blockhash, Commitment, Slot, SolanaRpcResponse, TransactionError, TransactionForFullMetaInnerInstructionsParsed, TransactionForFullMetaInnerInstructionsUnparsed } from '@solana/rpc-types';
import type { Base64EncodedWireTransaction } from '@solana/transactions';

@@ -77,3 +77,3 @@ type SimulateTransactionConfigBase = Readonly<{

/** The number of compute budget units consumed during the processing of this transaction */
unitsConsumed?: U64;
unitsConsumed?: bigint;
}>;

@@ -80,0 +80,0 @@ type SimulateTransactionApiResponseWithAccounts<T extends AccountInfoBase> = Readonly<{

{
"name": "@solana/rpc-api",
"version": "2.0.0-canary-20241028085053",
"version": "2.0.0-canary-20241028105940",
"description": "Defines all default Solana RPC methods as types",

@@ -57,13 +57,13 @@ "exports": {

"dependencies": {
"@solana/codecs-core": "2.0.0-canary-20241028085053",
"@solana/codecs-strings": "2.0.0-canary-20241028085053",
"@solana/addresses": "2.0.0-canary-20241028085053",
"@solana/errors": "2.0.0-canary-20241028085053",
"@solana/keys": "2.0.0-canary-20241028085053",
"@solana/rpc-parsed-types": "2.0.0-canary-20241028085053",
"@solana/rpc-spec": "2.0.0-canary-20241028085053",
"@solana/rpc-transformers": "2.0.0-canary-20241028085053",
"@solana/rpc-types": "2.0.0-canary-20241028085053",
"@solana/transactions": "2.0.0-canary-20241028085053",
"@solana/transaction-messages": "2.0.0-canary-20241028085053"
"@solana/addresses": "2.0.0-canary-20241028105940",
"@solana/codecs-core": "2.0.0-canary-20241028105940",
"@solana/codecs-strings": "2.0.0-canary-20241028105940",
"@solana/errors": "2.0.0-canary-20241028105940",
"@solana/rpc-parsed-types": "2.0.0-canary-20241028105940",
"@solana/keys": "2.0.0-canary-20241028105940",
"@solana/rpc-spec": "2.0.0-canary-20241028105940",
"@solana/rpc-transformers": "2.0.0-canary-20241028105940",
"@solana/rpc-types": "2.0.0-canary-20241028105940",
"@solana/transactions": "2.0.0-canary-20241028105940",
"@solana/transaction-messages": "2.0.0-canary-20241028105940"
},

@@ -70,0 +70,0 @@ "peerDependencies": {

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