# References

summary
public | C Account An account key pair (public and secret keys). |
public | C AgentManager |
public | C BpfLoader Factory class for transactions to interact with a program loader |
public | C Connection A connection to a fullnode JSON RPC endpoint |
public | C Loader Program loader interface |
public | C Message List of instructions to be processed atomically |
public | C NonceAccount NonceAccount class |
public | C PublicKey A public key |
public | C Secp256k1Program |
public | C Authorized |
public | C Lockup |
public | C StakeInstruction Stake Instruction class |
public | C StakeProgram Factory class for transactions to interact with the Stake program |
public | C SystemInstruction System Instruction class |
public | C SystemProgram Factory class for transactions to interact with the System program |
public | C Transaction Transaction class |
public | C TransactionInstruction Transaction Instruction class |
public | C ValidatorInfo ValidatorInfo class |
public | C VoteAccount VoteAccount class |
public | F decodeData(type: *, buffer: *): * Decode instruction data buffer using an InstructionType |
public | F encodeData(type: *, fields: *): * Populate a buffer of instruction data using an InstructionType |
public | F authorized(property: string): * Layout for an Authorized object |
public | F getAlloc(type: Object, fields: Object): number |
public | F lockup(property: string): * Layout for a Lockup object |
public | F publicKey(property: string): * Layout for a public key |
public | F rustString(property: string): * Layout for a Rust String type |
public | F uint64(property: string): * Layout for a 64bit unsigned value |
public | F constructEthPubkey(publicKey: Buffer | Uint8Array | Array<number>): Buffer |
public | V DESTROY_TIMEOUT_MS: number |
public | V BPF_LOADER_DEPRECATED_PROGRAM_ID: PublicKey |
public | V BPF_LOADER_PROGRAM_ID: PublicKey |
public | V BLOCKHASH_CACHE_TIMEOUT_MS: * |
public | V GetConfirmedBlockRpcResult: * Expected JSON RPC response for the "getConfirmedBlock" message |
public | V LAMPORTS_PER_SOL: number There are 1-billion lamports in one SOL |
public | V NONCE_ACCOUNT_LENGTH: * |
public | V MAX_SEED_LENGTH: number Maximum length of derived pubkey seed |
public | V STAKE_CONFIG_ID: PublicKey |
public | V STAKE_INSTRUCTION_LAYOUTS: * An enumeration of valid stake InstructionType's |
public | V StakeAuthorizationLayout: * An enumeration of valid StakeAuthorizationLayout's |
public | V SYSTEM_INSTRUCTION_LAYOUTS: * An enumeration of valid system InstructionType's |
public | V SYSVAR_CLOCK_PUBKEY: PublicKey |
public | V SYSVAR_INSTRUCTIONS_PUBKEY: PublicKey |
public | V SYSVAR_RECENT_BLOCKHASHES_PUBKEY: PublicKey |
public | V SYSVAR_RENT_PUBKEY: PublicKey |
public | V SYSVAR_REWARDS_PUBKEY: PublicKey |
public | V SYSVAR_STAKE_HISTORY_PUBKEY: PublicKey |
public | V PACKET_DATA_SIZE: * Maximum over-the-wire size of a Transaction |
public | V VALIDATOR_INFO_KEY: PublicKey |
public | V VOTE_PROGRAM_ID: PublicKey |
public | T Blockhash: string |
public | T AccountBalancePair: Object Pair of an account address and its balance |
public | T AccountInfo: Object Information describing an account |

public

T Commitment: 'max' | 'recent' | 'root' | 'single' | 'singleGossip'

The level of commitment desired when querying state

      'max':    Query the most recent block which has been finalized by the cluster
      'recent': Query the most recent block which has reached 1 confirmation by the connected node
      'root':   Query the most recent block which has been rooted by the connected node
      'single': Query the most recent block which has reached 1 confirmation by the cluster
      'singleGossip': Query the most recent block which has reached 1 confirmation according to votes seen in gossip

public | T ConfirmOptions: Object Options for confirming transactions |
public | T ConfirmedBlock: Object A ConfirmedBlock on the ledger |
public | T ConfirmedSignatureInfo: Object A confirmed signature with its status |
public | T ConfirmedSignaturesForAddress2Options: Object Options for getConfirmedSignaturesForAddress2 |
public | T ConfirmedTransaction: Object A confirmed transaction on the ledger |
public | T ConfirmedTransactionMeta: Object Metadata for a confirmed transaction on the ledger |
public | T ContactInfo: Object Information describing a cluster node |
public | T Context: Object Extra contextual information for RPC responses |
public | T EpochInfo: Object Information about the current epoch |
public | T EpochSchedule: Object Epoch schedule (see https://docs.solana.com/terminology#epoch) |
public | T GetLargestAccountsConfig: Object Configuration object for changing `getLargestAccounts` query behavior |
public | T InflationGovernor: Object Network Inflation (see https://docs.solana.com/implemented-proposals/ed_overview) |
public | T KeyedAccountInfo: Object Account information identified by pubkey |

public

T LargestAccountsFilter: 'circulating' | 'nonCirculating'

Filter for largest accounts query

      'circulating':    Return the largest accounts that are part of the circulating supply
      'nonCirculating': Return the largest accounts that are not part of the circulating supply

public | T LeaderSchedule: Object Leader schedule (see https://docs.solana.com/terminology#leader-schedule) |
public | T ParsedAccountData: Object Parsed account data |
public | T ParsedConfirmedTransaction: Object A parsed and confirmed transaction on the ledger |
public | T ParsedConfirmedTransactionMeta: Object Metadata for a parsed confirmed transaction on the ledger |
public | T ParsedInstruction: Object A parsed transaction instruction |
public | T ParsedMessage: Object A parsed transaction message |
public | T ParsedMessageAccount: Object A parsed transaction message account |
public | T ParsedMessageAccount: Object A partially decoded transaction instruction |
public | T ParsedTransaction: Object A parsed transaction |
public | T PerfSample: Object A performance sample |
public | T RpcResponseAndContext: Object RPC Response with extra contextual information |
public | T SendOptions: Object Options for sending transactions |
public | T SignatureResult: Object Signature result |
public | T SignatureStatus: Object Signature status |
public | T SignatureStatusConfig: Object Configuration object for changing query behavior |
public | T SlotInfo: Object Information about the latest slot being processed by a node |
public | T StakeActivationData: Object Stake Activation data |
public | T Supply: Object Supply |
public | T TokenAccountBalancePair: Object Token address and balance. |
public | T TokenAmount: Object Token amount object which returns a token amount in different formats for various client use cases. |
public | T TransactionError: Object Transaction error |
public | T Version: Object Version info for a node |
public | T VoteAccountInfo: Object Information describing a vote account |
public | T VoteAccountStatus: Object A collection of cluster vote accounts |
public | T FeeCalculator: Object |
public | T InstructionType: Object |
public | T CompiledInstruction: Object An instruction to execute by a program |
public | T MessageArgs: Object Message constructor arguments |
public | T MessageHeader: Object The message header, identifying signed and read-only account |
public | T CreateSecp256k1InstructionWithPrivateKeyParams: Object Create a Secp256k1 instruction using a private key params |
public | T CreateSecp256k1InstructionWithPublicKeyParams: Object Create a Secp256k1 instruction using a public key params |
public | T AuthorizeStakeParams: Object Authorize stake instruction params |
public | T AuthorizeWithSeedStakeParams: Object Authorize stake instruction params using a derived key |
public | T CreateStakeAccountParams: Object Create stake account transaction params |
public | T CreateStakeAccountWithSeedParams: Object Create stake account with seed transaction params |
public | T DeactivateStakeParams: Object Deactivate stake instruction params |
public | T DelegateStakeParams: Object Delegate stake instruction params |
public | T InitializeStakeParams: Object Initialize stake instruction params |
public | T SplitStakeParams: Object Split stake instruction params |
public | T StakeAuthorizationType: Object |
public | T StakeInstructionType: 'Initialize' | 'Authorize' | 'AuthorizeWithSeed' | 'Delegate' | 'Split' | 'Withdraw' | 'Deactivate' An enumeration of valid StakeInstructionType's |
public | T WithdrawStakeParams: Object Withdraw stake instruction params |
public | T AdvanceNonceParams: Object Advance nonce account system instruction params |
public | T AllocateParams: Object Allocate account system transaction params |
public | T AllocateWithSeedParams: Object Allocate account with seed system transaction params |
public | T AssignParams: Object Assign system transaction params |
public | T AssignWithSeedParams: Object Assign account with seed system transaction params |
public | T AuthorizeNonceParams: Object Authorize nonce account system transaction params |
public | T CreateAccountParams: Object Create account system transaction params |
public | T CreateAccountWithSeedParams: Object Create account with seed system transaction params |
public | T CreateNonceAccountParams: Object Create nonce account system transaction params |
public | T CreateNonceAccountWithSeedParams: Object Create nonce account with seed system transaction params |
public | T InitializeNonceParams: Object Initialize nonce account system instruction params |
public | T SystemInstructionType: 'Create' | 'Assign' | 'Transfer' | 'CreateWithSeed' | 'AdvanceNonceAccount' | 'WithdrawNonceAccount' | 'InitializeNonceAccount' | 'AuthorizeNonceAccount' An enumeration of valid SystemInstructionType's |
public | T TransferParams: Object Transfer system transaction params |
public | T TransferWithSeedParams: Object Transfer with seed system transaction params |
public | T WithdrawNonceParams: Object Withdraw nonce account system transaction params |
public | T AccountMeta: Object Account metadata used to define instructions |
public | T NonceInformation: Object NonceInformation to be used to build a Transaction. |
public | T SerializeConfig: Object Configuration object for Transaction.serialize() |
public | T TransactionCtorFields: Object List of Transaction object fields that may be initialized at construction |
public | T TransactionInstructionCtorFields: Object List of TransactionInstruction object fields that may be initialized at construction |
public | T TransactionSignature: string |
public | T Info: Object Info used to identity validators. |

## util

summary
public | F clusterApiUrl(cluster: *, tls: *): * Retrieves the RPC API URL for the specified cluster |
public | F promiseTimeout(promise: Promise<T>, timeoutMs: number): Promise<T|nullliteral> |
public | F async sendAndConfirmRawTransaction(connection: Connection, rawTransaction: Buffer, options: ConfirmOptions): Promise<TransactionSignature> Send and confirm a raw transaction |
public | F async sendAndConfirmTransaction(connection: Connection, transaction: Transaction, signers: Array<Account>, options: ConfirmOptions): Promise<TransactionSignature> Sign, send and confirm a transaction. |
public | F decodeLength(bytes: Array<number>): number |
public | F encodeLength(bytes: Array<number>, len: number) |
public | F sleep(ms: number): Promise<void> |
public | F toBuffer(arr: *): * |

Directories
util