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

@solana/rpc-api

Package Overview
Dependencies
Maintainers
15
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-experimental.12ae1c6 to 2.0.0-experimental.26a177e

./dist/index.node.cjs

3

dist/types/getAccountInfo.d.ts
import type { Address } from '@solana/addresses';
import type { RpcApiMethods } from '@solana/rpc-spec';
import type { Commitment, Slot, SolanaRpcResponse } from '@solana/rpc-types';
import { AccountInfoBase, AccountInfoWithBase58Bytes, AccountInfoWithBase58EncodedData, AccountInfoWithBase64EncodedData, AccountInfoWithBase64EncodedZStdCompressedData, AccountInfoWithJsonData, DataSlice } from './common.js';
import type { AccountInfoBase, AccountInfoWithBase58Bytes, AccountInfoWithBase58EncodedData, AccountInfoWithBase64EncodedData, AccountInfoWithBase64EncodedZStdCompressedData, AccountInfoWithJsonData, Commitment, DataSlice, Slot, SolanaRpcResponse } from '@solana/rpc-types';
type GetAccountInfoApiResponseBase = SolanaRpcResponse<AccountInfoBase | null>;

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

import type { RpcApiMethods } from '@solana/rpc-spec';
import type { Base58EncodedBytes, Blockhash, Commitment, Slot, U64UnsafeBeyond2Pow53Minus1, UnixTimestamp } from '@solana/rpc-types';
import type { Base58EncodedBytes, Blockhash, Commitment, Reward, Slot, TransactionForAccounts, TransactionForFullBase58, TransactionForFullBase64, TransactionForFullJson, TransactionForFullJsonParsed, U64UnsafeBeyond2Pow53Minus1, UnixTimestamp } from '@solana/rpc-types';
import type { TransactionVersion } from '@solana/transactions';
import { Reward, TransactionForAccounts, TransactionForFullBase58, TransactionForFullBase64, TransactionForFullJson, TransactionForFullJsonParsed } from './common-transactions.js';
type GetBlockApiResponseBase = Readonly<{

@@ -6,0 +5,0 @@ /** the blockhash of this block */

import type { RpcApiMethods } from '@solana/rpc-spec';
import type { Commitment } from '@solana/rpc-types';
import type { F64UnsafeSeeDocumentation } from './common.js';
import type { Commitment, F64UnsafeSeeDocumentation } from '@solana/rpc-types';
type GetInflationGovernorApiResponse = Readonly<{

@@ -5,0 +4,0 @@ /** The initial inflation percentage from time 0 */

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

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

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

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

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

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

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

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

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

@@ -7,0 +6,0 @@ data: Readonly<{

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

@@ -7,0 +6,0 @@ data: Readonly<{

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

import { Address } from '@solana/addresses';
import type { Address } from '@solana/addresses';
import type { RpcApiMethods } from '@solana/rpc-spec';

@@ -3,0 +3,0 @@ import type { Commitment, SolanaRpcResponse, TokenAmount } from '@solana/rpc-types';

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

@@ -9,0 +7,0 @@ /** the program that generated the return data */

@@ -56,10 +56,11 @@ import { RpcApi } from '@solana/rpc-spec';

import { SimulateTransactionApi } from './simulateTransaction.js';
export type SolanaRpcApi = GetAccountInfoApi & GetBalanceApi & GetBlockApi & GetBlockCommitmentApi & GetBlockHeightApi & GetBlockProductionApi & GetBlocksApi & GetBlocksWithLimitApi & GetBlockTimeApi & GetClusterNodesApi & GetEpochInfoApi & GetEpochScheduleApi & GetFeeForMessageApi & GetFirstAvailableBlockApi & GetGenesisHashApi & GetHealthApi & GetHighestSnapshotSlotApi & GetIdentityApi & GetInflationGovernorApi & GetInflationRateApi & GetInflationRewardApi & GetLargestAccountsApi & GetLatestBlockhashApi & GetLeaderScheduleApi & GetMaxRetransmitSlotApi & GetMaxShredInsertSlotApi & GetMinimumBalanceForRentExemptionApi & GetMultipleAccountsApi & GetProgramAccountsApi & GetRecentPerformanceSamplesApi & GetRecentPrioritizationFeesApi & GetSignaturesForAddressApi & GetSignatureStatusesApi & GetSlotApi & GetSlotLeaderApi & GetSlotLeadersApi & GetStakeActivationApi & GetStakeMinimumDelegationApi & GetSupplyApi & GetTokenAccountBalanceApi & GetTokenAccountsByDelegateApi & GetTokenAccountsByOwnerApi & GetTokenLargestAccountsApi & GetTokenSupplyApi & GetTransactionApi & GetTransactionCountApi & GetVersionApi & GetVoteAccountsApi & IsBlockhashValidApi & MinimumLedgerSlotApi & RequestAirdropApi & SendTransactionApi & SimulateTransactionApi;
export type SolanaRpcApiDevnet = SolanaRpcApi;
export type SolanaRpcApiTestnet = SolanaRpcApi;
export type SolanaRpcApiMainnet = Omit<SolanaRpcApi, 'requestAirdrop'>;
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;
export type SolanaRpcApi = SolanaRpcApiForTestClusters;
export type SolanaRpcApiDevnet = SolanaRpcApiForTestClusters;
export type SolanaRpcApiTestnet = SolanaRpcApiForTestClusters;
export type SolanaRpcApiMainnet = SolanaRpcApiForAllClusters;
export type { GetAccountInfoApi, GetBalanceApi, GetBlockApi, GetBlockCommitmentApi, GetBlockHeightApi, GetBlockProductionApi, GetBlocksApi, GetBlocksWithLimitApi, GetBlockTimeApi, GetClusterNodesApi, GetEpochInfoApi, GetEpochScheduleApi, GetFeeForMessageApi, GetFirstAvailableBlockApi, GetGenesisHashApi, GetHealthApi, GetHighestSnapshotSlotApi, GetIdentityApi, GetInflationGovernorApi, GetInflationRateApi, GetInflationRewardApi, GetLargestAccountsApi, GetLatestBlockhashApi, GetLeaderScheduleApi, GetMaxRetransmitSlotApi, GetMaxShredInsertSlotApi, GetMinimumBalanceForRentExemptionApi, GetMultipleAccountsApi, GetProgramAccountsApi, GetRecentPerformanceSamplesApi, GetRecentPrioritizationFeesApi, GetSignaturesForAddressApi, GetSignatureStatusesApi, GetSlotApi, GetSlotLeaderApi, GetSlotLeadersApi, GetStakeActivationApi, GetStakeMinimumDelegationApi, GetSupplyApi, GetTokenAccountBalanceApi, GetTokenAccountsByDelegateApi, GetTokenAccountsByOwnerApi, GetTokenLargestAccountsApi, GetTokenSupplyApi, GetTransactionApi, GetTransactionCountApi, GetVersionApi, GetVoteAccountsApi, IsBlockhashValidApi, MinimumLedgerSlotApi, RequestAirdropApi, SendTransactionApi, SimulateTransactionApi, };
export type { DataSlice, GetProgramAccountsDatasizeFilter, GetProgramAccountsMemcmpFilter } from './common.js';
type Config = ParamsTransformerConfig;
export declare function createSolanaRpcApi<TRpcMethods extends SolanaRpcApi | SolanaRpcApiDevnet | SolanaRpcApiTestnet | SolanaRpcApiMainnet = SolanaRpcApi>(config?: Config): RpcApi<TRpcMethods>;
//# sourceMappingURL=index.d.ts.map
import type { Address } from '@solana/addresses';
import type { RpcApiMethods } from '@solana/rpc-spec';
import type { Base58EncodedBytes, Base64EncodedDataResponse, Commitment, Slot, SolanaRpcResponse, TransactionError, U64UnsafeBeyond2Pow53Minus1 } from '@solana/rpc-types';
import type { AccountInfoBase, AccountInfoWithBase64EncodedData, AccountInfoWithBase64EncodedZStdCompressedData, AccountInfoWithJsonData, Base58EncodedBytes, Base64EncodedDataResponse, Commitment, Slot, SolanaRpcResponse, TransactionError, U64UnsafeBeyond2Pow53Minus1 } from '@solana/rpc-types';
import type { Base64EncodedWireTransaction } from '@solana/transactions';
import { AccountInfoBase, AccountInfoWithBase64EncodedData, AccountInfoWithBase64EncodedZStdCompressedData, AccountInfoWithJsonData } from './common.js';
type SimulateTransactionConfigBase = Readonly<{

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

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

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

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

@@ -60,0 +60,0 @@ "bundlewatch": {

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