gill

gill

A modern JavaScript/TypeScript client library for interacting with the Solana blockchain.

Type Aliases

Variables

VariableDescription
GENESIS_HASHGenesis hash for Solana network clusters
LAMPORTS_PER_SOL1 billion lamports per SOL

Functions

FunctionDescription
assertKeyPairIsExtractable-
checkedAddress-
checkedTransactionSigner-
createKeypairFromBase58Create a CryptoKeyPair from as base58 encoded secret key
createKeypairSignerFromBase58Create a KeyPairSigner from as base58 encoded secret key
createSolanaClientCreate a Solana rpc and rpcSubscriptions client
createTransactionSimple interface for creating a Solana transaction
debugLog debug messages based on the desired application's logging level.
extractBytesFromKeyPairExtracts the raw key material from an extractable Ed25519 CryptoKeyPair.
extractBytesFromKeyPairSignerExtracts the raw key material from an extractable Ed25519 KeyPairSigner.
generateExtractableKeyPairGenerates an extractable Ed25519 CryptoKeyPair capable of signing messages and transactions
generateExtractableKeyPairSignerGenerates an extractable signer capable of signing messages and transactions using a Crypto KeyPair.
getExplorerLinkCraft a Solana Explorer link on any cluster
getMinimumBalanceForRentExemptionCalculate the total rent needed for to create an account, with or without extra data stored in it
getMonikerFromGenesisHashDetermine the Solana moniker from its genesis hash
getOldestSignatureForAddressGet the oldest signature for the provided address
getPublicSolanaRpcUrlGet a public Solana RPC endpoint for a cluster based on its moniker
insertReferenceKeysToTransactionMessageInsert multiple reference key Address | Addresses into a transaction message
insertReferenceKeyToTransactionMessageInsert a single of reference key Address into a transaction message
isDebugEnabledCheck if the gill debug logger is enabled or not
lamportsToSolConvert a lamport number to the human readable string of a SOL value
localnet-
prepareTransactionPrepare a Transaction to be signed and sent to the network. Including: - setting a compute unit limit (if not already set) - fetching the latest blockhash (if not already set) - (optional) simulating and resetting the compute unit limit - (optional) resetting latest blockhash to the most recent
sendAndConfirmTransactionWithSignersFactory-
simulateTransactionFactory-
transactionFromBase64Convert a base64 encoded transaction string into compiled transaction
transactionToBase64Compile a transaction to a base64 string
transactionToBase64WithSignersCompile a transaction to a base64 string and sign it with all attached Signers

On this page