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
getEvents()
getEvents()getAllEvents()
getAllEvents()Was this helpful?