export type Hex = `0x${string}`; export interface LegacyTx { type: 'legacy'; chainId: number | bigint; nonce: number | bigint; gasPrice: number | bigint; gasLimit: number | bigint; to: Hex | null; value: number | bigint; data: Hex | Buffer; } export interface AccessListItem { address: Hex; storageKeys: Hex[]; } export interface Eip1559Tx { type: 'eip1559'; chainId: number | bigint; nonce: number | bigint; maxPriorityFeePerGas: number | bigint; maxFeePerGas: number | bigint; gasLimit: number | bigint; to: Hex | null; value: number | bigint; data: Hex | Buffer; accessList?: AccessListItem[]; } export type SignableTx = LegacyTx | Eip1559Tx; /** * Returns the 32-byte keccak digest that should be signed for the given tx. * For legacy this is the EIP-155 digest; for EIP-1559 it is the type-prefixed digest. */ export declare function txDigest(tx: SignableTx): Buffer; /** * Sign a transaction and return its 0x-prefixed serialized hex. */ export declare function signTransaction(tx: SignableTx, privateKey: Buffer | Uint8Array): Hex; //# sourceMappingURL=sign-tx.d.ts.map