@ledgerhq/coin-tezos
Version:
27 lines • 790 B
TypeScript
import { type OperationContents } from "@taquito/rpc";
export type TransactionFee = {
fees?: string;
gasLimit?: string;
storageLimit?: string;
};
export type TransactionType = "OUT" | "DELEGATE" | "UNDELEGATE";
export declare function craftTransaction(account: {
address: string;
counter?: number;
}, transaction: {
type: "send" | "delegate" | "undelegate";
recipient: string;
amount: bigint;
fee: TransactionFee;
}, publicKey?: {
publicKey: string;
publicKeyHash: string;
}): Promise<{
type: TransactionType;
contents: OperationContents[];
}>;
/**
* Return transaction in raw encoded format (i.e. hexa)
*/
export declare function rawEncode(contents: OperationContents[]): Promise<string>;
//# sourceMappingURL=craftTransaction.d.ts.map