@ledgerhq/coin-hedera
Version:
Ledger Hedera Coin integration
23 lines • 912 B
TypeScript
import { AccountId } from "@hashgraph/sdk";
import { Operation } from "@ledgerhq/types-live";
import BigNumber from "bignumber.js";
interface HederaMirrorAccount {
accountId: AccountId;
balance: BigNumber;
}
export declare function getAccountsForPublicKey(publicKey: string): Promise<HederaMirrorAccount[]>;
interface HederaMirrorTransfer {
account: string;
amount: number;
}
interface HederaMirrorTransaction {
transfers: HederaMirrorTransfer[];
charged_tx_fee: string;
transaction_hash: string;
consensus_timestamp: string;
transaction_id: string;
}
export declare function getAccountTransactions(address: string, since: string | null): Promise<HederaMirrorTransaction[]>;
export declare function getOperationsForAccount(ledgerAccountId: string, address: string, latestOperationTimestamp: string | null): Promise<Operation[]>;
export {};
//# sourceMappingURL=mirror.d.ts.map