UNPKG

@ledgerhq/coin-canton

Version:
47 lines 1.12 kB
export type BoilerplateOperation = { meta: { delivered_amount: string; }; tx: { Account: string; Amount: string; Destination: string; Fee: string; Memo: string; Sequence: number; SigningPubKey: string; TransactionType: string; TxnSignature: string; date: number; hash: string; inLedger: number; }; validated: boolean; }; export type ResponseStatus = { status: string; error?: never; } | { status?: never; error: string; }; export declare function isResponseStatus(obj: object): obj is ResponseStatus; export type NewAccount = "NewAccount"; export type AccountInfoResponse = { account_data: { Account: string; Balance: string; }; ledger_hash: string; ledger_index: number; validated: boolean; } & ResponseStatus; export type SubmitResponse = { accepted: boolean; tx_hash: string; }; export type AccountTxResponse = { account: string; transactions: BoilerplateOperation[]; } & ResponseStatus; //# sourceMappingURL=types.d.ts.map