new TxData()
- Version:
- 1.0
The TxData model module.
Members
from :String
Multisig account address
Type:
- String
gas :Number
Transaction gas limit
Type:
- Number
gasPrice :String
Transaction gas price
Type:
- String
input :String
Transaction input data
Type:
- String
nonce :Number
Transaction nonce
Type:
- Number
to :String
KLAY receiver's Klaytn account or contract address
Type:
- String
typeInt :Number
Type of the transaction
Type:
- Number
value :String
Amount of balance to be sent in the transaction
Type:
- String
Methods
(static) constructFromObject(data, obj) → {TxData}
Constructs a TxData from a plain JavaScript object, optionally creating a new instance.
Copies all relevant properties from data to obj if supplied or a new instance if not.
Parameters:
| Name | Type | Description |
|---|---|---|
data |
Object | The plain JavaScript object bearing properties of interest. |
obj |
TxData | Optional instance to populate. |
Returns:
The populated TxData instance.
- Type
- TxData