@bithomp/xrpl-api
Version:
A Bithomp JavaScript/TypeScript library for interacting with the XRP Ledger
22 lines (21 loc) • 837 B
TypeScript
import { BatchFlags } from "xrpl/dist/npm/models/transactions/batch";
import { FormattedBaseSpecification } from "./specification";
import { FormattedTransaction } from "../parse/transaction";
import { TxGlobalFlagsKeysInterface } from "./global";
export declare const BatchFlagsKeys: {
allOrNothing: BatchFlags;
onlyOne: BatchFlags;
untilFailure: BatchFlags;
independent: BatchFlags;
};
export declare function getBatchFlagsKeys(nativeCurrency?: string): Record<string, number>;
export interface BatchFlagsKeysInterface extends TxGlobalFlagsKeysInterface {
allOrNothing?: boolean;
onlyOne?: boolean;
untilFailure?: boolean;
independent?: boolean;
}
export type FormattedBatchSpecification = {
transactions: FormattedTransaction[];
flags?: BatchFlagsKeysInterface;
} & FormattedBaseSpecification;