Skip to main content

Function.useKeybanAccountOrders

function useKeybanAccountOrders(account: KeybanAccount, options?: PaginationArgs): ApiResult<PaginatedData<KeybanOrder>, PaginationExtra>;

Returns an ApiResult tuple for the orders history of an account.

Parameters

ParameterTypeDescription
accountKeybanAccountThe KeybanAccount object containing the user's wallet address.
options?PaginationArgsPagination arguments: - first?: number of transfers to fetch initially. - after?: cursor string to fetch the next page.

Returns

ApiResult<PaginatedData<KeybanOrder>, PaginationExtra>

  • 0: PaginatedData<KeybanOrder> — contains nodes, hasNextPage, hasPrevPage, totalCount.
    • 1: Error if an error occurred during load, otherwise null.
    • 2: PaginationExtra{ loading: boolean; fetchMore?: () => void }.