useSlot
Get the current slot using the Solana RPC method of
getSlot
To auto refetch the slot, provide a options.refetchInterval value
Type Parameters
| Type Parameter | Default type |
|---|---|
TConfig extends | undefined | Readonly<{ }> | | undefined | Readonly<{ }> |
Parameters
| Parameter | Type |
|---|---|
__namedParameters | UseSlotInput<TConfig> |
Returns
| {
slot: bigint;
}
| {
slot: bigint;
}
| {
slot: bigint;
}
| {
slot: bigint;
}
| {
slot: bigint;
}