new Transaction()
- Version:
- 1.0
The Transaction model module.
Members
feePayer :String
Fee delegation account address (20-byte)
Type:
- String
feeRatio :Number
Fee delegation ratio
Type:
- Number
fee :String
Gas fee
Type:
- String
from :String
EOA of transaction sender (20-byte)
Type:
- String
timestamp :Number
Transaction time (timestamp)
Type:
- Number
transactionHash :String
Transaction hash (32-byte)
Type:
- String
typeInt :Number
Transaction type
Type:
- Number
value :String
The amount of tranferring KLAY (in hexadecimal)
Type:
- String
Methods
(static) constructFromObject(data, obj) → {Transaction}
Constructs a Transaction
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 |
Transaction | Optional instance to populate. |
Returns:
The populated Transaction
instance.
- Type
- Transaction