@ledgerhq/coin-tezos
Version:
21 lines • 1.25 kB
TypeScript
import { Operation } from "@ledgerhq/coin-framework/api/types";
import { TezosAsset } from "../api/types";
/**
* Returns list of "Transfer", "Delegate" and "Undelegate" Operations associated to an account.
* @param address Account address
* @param limit the maximum number of operations to return. Beware that's a weak limit, as explorers might not respect it.
* @param order whether to return operations starting from the top block or from the oldest block.
* "Descending" returns newest operation first, "Ascending" returns oldest operation first.
* It doesn't control the order of the operations in the result list:
* operations are always returned sorted in descending order (newest first).
* @param minHeight retrieve operations from a specific block height until top most (inclusive).
* @param token a token to be used for pagination
* @returns a list of operations is descending (newest first) order and a token to be used for pagination
*/
export declare function listOperations(address: string, { token, limit, sort, minHeight, }: {
limit?: number;
token?: string;
sort: "Ascending" | "Descending";
minHeight: number;
}): Promise<[Operation<TezosAsset>[], string]>;
//# sourceMappingURL=listOperations.d.ts.map