new TxData()
- Version:
- 1.0
The TxData model module.
Members
from :String
Multisig account address
Type:
- String
gas :Number
Max. transaction fee (gas) for sending the transaction
Type:
- Number
gasPrice :String
Transaction fee (gas) for sending the transaction
Type:
- String
input :String
Data attached to and used for executing the outgoing transaction
Type:
- String
to :String
Klaytn account address to receive KLAY or contract address
Type:
- String
typeInt :Number
Numeric value of transaction type
Type:
- Number
value :String
Amount of balance to transfer of this 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