gill

@gillsdk/react

A React hooks library for easily interacting with the Solana blockchain. Built on top of gill and TanStack Query.

Variables

VariableDescription
GILL_HOOK_CLIENT_KEY-

Functions

FunctionDescription
SolanaProviderProvider to utilize gill hooks for Solana
useAccountGet the account info for an address using the Solana RPC method of getAccountInfo
useBalanceGet an account's balance (in lamports) using the Solana RPC method of getBalance
useLatestBlockhashGet the latest blockhash using the Solana RPC method of getLatestBlockhash
useMultipleAccountsFetch multiple accounts using the Solana RPC method of getMultipleAccounts
useProgramAccountsGet all the accounts owned by a program using the Solana RPC method of getProgramAccounts
useRecentPrioritizationFeesGet the recent prioritization fees for a list of addresses using the Solana RPC method of getRecentPrioritizationFees
useSignaturesForAddressReturns signatures for confirmed transactions that include the given address in their accountKeys list. Returns signatures backwards in time from the provided signature or most recent confirmed block using the Solana RPC method of getSignaturesForAddress
useSignatureStatusesGet the statuses of signatures using the Solana RPC method of getSignatureStatuses
useSimulateTransactionSimulate a transaction using the Solana RPC method of simulateTransaction
useSlotGet the current slot using the Solana RPC method of getSlot
useSolanaClientGet the current Solana client (including rpc and rpcSubscriptions)
useTokenAccountGet and parse an owner's Token account for a Mint and Token Program
useTokenAccountBalance-
useTokenMintGet and parse a token's Mint account
useTransactionGet transaction details for a confirmed transaction using the Solana RPC method of getTransaction
useUpdateSolanaClientUpdate your Solana client (including rpc and rpcSubscriptions)

On this page