import { LegacyTx } from './tx.ts'; import type { TxOptions } from '../types.ts'; import type { TxData, TxValuesArray } from './tx.ts'; /** * Instantiate a legacy transaction from a plain data object. * * All {@link LegacyTxData} fields are optional; unsigned txs omit `v`/`r`/`s`. * * @throws If fee or value fields overflow or are non-numeric * @throws If gas limit or nonce exceed EIP bounds * @throws If init code size exceeds EIP-3860 on contract-creation txs */ export declare function createLegacyTx(txData: TxData, opts?: TxOptions): LegacyTx; /** * Instantiate a legacy transaction from devp2p byte-array encoding. * * Format: `[nonce, gasPrice, gasLimit, to, value, data, v, r, s]` * * @throws If the values array length is not 6 (unsigned) or 9 (signed) * @throws If numeric fields contain leading zeroes * @throws If constructor validation fails (see {@link createLegacyTx}) */ export declare function createLegacyTxFromBytesArray(values: TxValuesArray, opts?: TxOptions): LegacyTx; /** * Instantiate a legacy transaction from RLP-serialized bytes. * * Format: `rlp([nonce, gasPrice, gasLimit, to, value, data, v, r, s])` * * @throws If RLP decode result is not an array * @throws If decoded values fail {@link createLegacyTxFromBytesArray} checks */ export declare function createLegacyTxFromRLP(serialized: Uint8Array, opts?: TxOptions): LegacyTx; //# sourceMappingURL=constructors.d.ts.map