gill
A modern JavaScript/TypeScript client library for interacting with the Solana blockchain.
Type Aliases
Variables
| Variable | Description |
|---|---|
| GENESIS_HASH | Genesis hash for Solana network clusters |
| GILL_EXTERNAL_MODULE_MAP | Codama dependency map to utilize gill imports |
| LAMPORTS_PER_SOL | 1 billion lamports per SOL |
Functions
| Function | Description |
|---|---|
| assertKeyPairIsExtractable | - |
| base64BytesToAddress | Takes a base64 encoded string of a byte array, parses, then asserts it as an Address |
| base64BytesToSignature | Takes a base64 encoded string of a byte array, parses, then asserts it as an Signature |
| base64BytesToString | Takes a base64 encoded string of a byte array, parses, then returns as a utf8 string |
| checkedAddress | - |
| checkedTransactionSigner | - |
| createCodamaConfig | Create a Codama CLI configuration to generate a program client from an IDL. Normally saved to codama.js. |
| createKeypairFromBase58 | Create a CryptoKeyPair from as base58 encoded secret key |
| createKeypairSignerFromBase58 | Create a KeyPairSigner from as base58 encoded secret key |
| createSolanaClient | Create a Solana rpc and rpcSubscriptions client |
| createTransaction | Simple interface for creating a Solana transaction |
| debug | Log debug messages based on the desired application's logging level. |
| extractBytesFromKeyPair | Extracts the raw key material from an extractable Ed25519 CryptoKeyPair. |
| extractBytesFromKeyPairSigner | Extracts the raw key material from an extractable Ed25519 KeyPairSigner. |
| generateExtractableKeyPair | Generates an extractable Ed25519 CryptoKeyPair capable of signing messages and transactions |
| generateExtractableKeyPairSigner | Generates an extractable signer capable of signing messages and transactions using a Crypto KeyPair. |
| getExplorerLink | Craft a Solana Explorer link on any cluster |
| getMinimumBalanceForRentExemption | Calculate the total rent needed for to create an account, with or without extra data stored in it |
| getMonikerFromGenesisHash | Determine the Solana moniker from its genesis hash |
| getOldestSignatureForAddress | Get the oldest signature for the provided address |
| getPublicSolanaRpcUrl | Get a public Solana RPC endpoint for a cluster based on its moniker |
| getSignatureFromBytes | Converts signature bytes to a Signature string. |
| insertReferenceKeysToTransactionMessage | Insert multiple reference key Address | Addresses into a transaction message |
| insertReferenceKeyToTransactionMessage | Insert a single of reference key Address into a transaction message |
| isDebugEnabled | Check if the gill debug logger is enabled or not |
| lamportsToSol | Convert a lamport number to the human readable string of a SOL value |
| localnet | - |
| prepareTransaction | Prepare 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 | - |
| transactionFromBase64 | Convert a base64 encoded transaction string into compiled transaction |
| transactionToBase64 | Compile a transaction to a base64 string |
| transactionToBase64WithSigners | Compile a transaction to a base64 string and sign it with all attached Signers |
| verifySignatureForAddress | Verifies a Solana Address had signed the given message. |