mirror of
https://github.com/Xahau/xahau.js.git
synced 2026-06-02 16:26:41 +00:00
* resolve src/models/methods * PaymentTransaction => Payment, remove empty returns * fix common, method signatures * fix checkCash * handle complexity complaints * fix jsdocs * handle magic numbers * finish models/transactions * fix models/utils * fix models/ledger * fix ts issues * fix tests * fix modifiedoffercreatetransaction * remove comments, fix additional TODO
22 lines
575 B
TypeScript
22 lines
575 B
TypeScript
import { LedgerIndex } from "../common";
|
|
import { Transaction } from "../transactions";
|
|
import TransactionMetadata from "../transactions/metadata";
|
|
|
|
import { BaseRequest, BaseResponse } from "./baseMethod";
|
|
|
|
export interface TransactionEntryRequest extends BaseRequest {
|
|
command: "transaction_entry";
|
|
ledger_hash?: string;
|
|
ledger_index?: LedgerIndex;
|
|
tx_hash: string;
|
|
}
|
|
|
|
export interface TransactionEntryResponse extends BaseResponse {
|
|
result: {
|
|
ledger_hash: string;
|
|
ledger_index: number;
|
|
metadata: TransactionMetadata;
|
|
tx_json: Transaction;
|
|
};
|
|
}
|