LegacyTransactionRequest

LegacyTransactionRequest

new LegacyTransactionRequest()

Version:
  • 1.0

The LegacyTransactionRequest model module.

Members

from :String

Klaytn account address sending a transaction

Type:
  • String

value :String

KLAY converted into PEB unit

Type:
  • String

to :String

Klaytn account address to receive KLAY

Type:
  • String

input :String

Data attached to and used for executing the outgoing transaction

Type:
  • String

nonce :Number

Unique value of the outgoing transaction

Type:
  • Number

gas :Number

Default Value:
  • 100000

Max. transaction fee (gas) for sending the transaction

Type:
  • Number

submit :Boolean

Whether to send the transaction to Klaytn

Type:
  • Boolean

Methods

(static) constructFromObject(data, obj) → {LegacyTransactionRequest}

Constructs a LegacyTransactionRequest 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 LegacyTransactionRequest

Optional instance to populate.

Returns:

The populated LegacyTransactionRequest instance.

Type
LegacyTransactionRequest

LegacyTransactionRequest

new LegacyTransactionRequest(from)

Constructs a new LegacyTransactionRequest. Legacy Transaction Request Scheme

Parameters:
Name Type Description
from String

Klaytn account address sending a transaction

Members

from :String

Klaytn account address sending a transaction

Type:
  • String

value :String

KLAY converted into PEB unit

Type:
  • String

to :String

Klaytn account address to receive KLAY

Type:
  • String

input :String

Data attached to and used for executing the outgoing transaction

Type:
  • String

nonce :Number

Unique value of the outgoing transaction

Type:
  • Number

gas :Number

Default Value:
  • 100000

Max. transaction fee (gas) for sending the transaction

Type:
  • Number

submit :Boolean

Whether to send the transaction to Klaytn

Type:
  • Boolean

Methods

(static) constructFromObject(data, obj) → {LegacyTransactionRequest}

Constructs a LegacyTransactionRequest 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 LegacyTransactionRequest

Optional instance to populate.

Returns:

The populated LegacyTransactionRequest instance.

Type
LegacyTransactionRequest