useLatestBlockhash
Get the latest blockhash using the Solana RPC method of
getLatestBlockhash
To auto refetch the latest blockhash, provide a options.refetchInterval value
Type Parameters
| Type Parameter | Default type |
|---|---|
TConfig extends | undefined | Readonly<{ }> | | undefined | Readonly<{ }> |
Parameters
| Parameter | Type |
|---|---|
__namedParameters | UseLatestBlockhashInput<TConfig> |
Returns
| {
latestBlockhash: Readonly<{
}>;
}
| {
latestBlockhash: Readonly<{
}>;
}
| {
latestBlockhash: Readonly<{
}>;
}
| {
latestBlockhash: Readonly<{
}>;
}
| {
latestBlockhash: Readonly<{
}>;
}