@planetarium/tx
Version:
Creating Libplanet transactions from JavaScript/TypeScript
9 lines (8 loc) • 382 B
TypeScript
import { Account, Signature } from "@planetarium/account";
import { Dictionary } from "@planetarium/bencodex";
import { type UnsignedTx } from "./unsigned.js";
export type SignedTx = UnsignedTx & {
signature: Signature;
};
export declare function signTx(tx: UnsignedTx, signAccount: Account): Promise<SignedTx>;
export declare function encodeSignedTx(tx: SignedTx): Dictionary;