@gillsdk/react
A React hooks library for easily interacting with the Solana blockchain. Built on top of gill and TanStack Query.
Variables
| Variable | Description |
|---|---|
| GILL_HOOK_CLIENT_KEY | - |
Functions
| Function | Description |
|---|---|
| SolanaProvider | Provider to utilize gill hooks for Solana |
| useAccount | Get the account info for an address using the Solana RPC method of getAccountInfo |
| useBalance | Get an account's balance (in lamports) using the Solana RPC method of getBalance |
| useLatestBlockhash | Get the latest blockhash using the Solana RPC method of getLatestBlockhash |
| useMultipleAccounts | Fetch multiple accounts using the Solana RPC method of getMultipleAccounts |
| useProgramAccounts | Get all the accounts owned by a program using the Solana RPC method of getProgramAccounts |
| useRecentPrioritizationFees | Get the recent prioritization fees for a list of addresses using the Solana RPC method of getRecentPrioritizationFees |
| useSignaturesForAddress | Returns 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 |
| useSignatureStatuses | Get the statuses of signatures using the Solana RPC method of getSignatureStatuses |
| useSimulateTransaction | Simulate a transaction using the Solana RPC method of simulateTransaction |
| useSlot | Get the current slot using the Solana RPC method of getSlot |
| useSolanaClient | Get the current Solana client (including rpc and rpcSubscriptions) |
| useTokenAccount | Get and parse an owner's Token account for a Mint and Token Program |
| useTokenAccountBalance | - |
| useTokenMint | Get and parse a token's Mint account |
| useTransaction | Get transaction details for a confirmed transaction using the Solana RPC method of getTransaction |
| useUpdateSolanaClient | Update your Solana client (including rpc and rpcSubscriptions) |