UNPKG

jcc-ethereum-utils

Version:

Toolkit of crossing chain from Ethereum to SWTC chain

21 lines (20 loc) 455 B
declare interface ILegacyTransaction { nonce: number; gasPrice: string; gas: string; from: string; to: string; value: any; data: string; } declare interface IEIP1559Transaction { from: string; to: string; nonce: number; value: any; gasLimit: string; maxFeePerGas: string; maxPriorityFeePerGas: string; data: string; } declare type EthereumTransaction = ILegacyTransaction | IEIP1559Transaction;