Blockchain Hooks
useCurrentBlock()
useCurrentBlock()const { data, isLoading, error } = useCurrentBlock();function BlockInfo() {
const { data: block } = useCurrentBlock();
return <div>Current Block: {block?.number}</div>;
}useTxReceipt()
useTxReceipt()const { data, isLoading, error } = useTxReceipt(txId, blockTimeout);Utility Functions
useEvents()
useEvents()Last updated
Was this helpful?