MyCrypto/common/libs/transaction.js

32 lines
524 B
JavaScript
Raw Normal View History

// @flow
export type TransactionWithoutGas = {|
from: string,
to: string,
gasLimit?: string | number,
value: string | number,
data?: string,
chainId?: number
|};
export type Transaction = {|
...TransactionWithoutGas,
gasPrice: string | number
|};
export type RawTransaction = {|
nonce: string,
gasPrice: string,
gasLimit: string,
to: string,
value: string,
data: string,
chainId: number
|};
export type BroadcastTransaction = {|
...RawTransaction,
rawTx: string,
signedTx: string
|};