React SDK
useAccountBlobs
Query blobs associated with an account
This query fetches blob metadata for a specific account with support for pagination, filtering, and ordering.
import { useAccountBlobs } from "@shelby-protocol/react";
function BlobList({ account }: { account: string }) {
const { data: blobs, isLoading, error } = useAccountBlobs({
account,
});
if (isLoading) return <div>Loading...</div>;
if (error) return <div>Error: {error.message}</div>;
return (
<ul>
{blobs?.map((blob) => (
<li key={blob.name}>{blob.name}</li>
))}
</ul>
);
}