Skip to content

feat: implement useOperations() - fetch operations for an account or tx - #1

Open
omosvico wants to merge 1 commit into
mainfrom
feat/use-operations
Open

feat: implement useOperations() - fetch operations for an account or tx#1
omosvico wants to merge 1 commit into
mainfrom
feat/use-operations

Conversation

@omosvico

Copy link
Copy Markdown
Owner

Closes dark-princezz#125

Implements useOperations() hook that fetches operations from Horizon for a given account or transaction.

// Fetch operations for an account
const { operations, isLoading } = useOperations({
  accountId: "G...",
  limit: 20,
});

// Fetch operations for a transaction
const { operations } = useOperations({
  transactionHash: "abc...",
});

Supports cursor, limit, order, enabled, and refetchInterval options.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat: implement useOperations() - fetch operations for an account or tx

1 participant