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.

Example

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>
  );
}

Parameters

Prop

Type

React Query Options

Prop

Type

Return Value

Prop

Type