AnchorTransactionRequest

AnchorTransactionRequest

new AnchorTransactionRequest()

Version:
  • 1.0

The AnchorTransactionRequest model module.

Members

from :String

Klaytn account address sending a transaction

Type:
  • String

input :String

Data attached to a transaction (anchored to the main chain)

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) → {AnchorTransactionRequest}

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

Optional instance to populate.

Returns:

The populated AnchorTransactionRequest instance.

Type
AnchorTransactionRequest

AnchorTransactionRequest

new AnchorTransactionRequest(from, input)

Constructs a new AnchorTransactionRequest. Anchor transaction request schema

Parameters:
Name Type Description
from String

Klaytn account address sending a transaction

input String

Data attached to a transaction (anchored to the main chain)

Members

from :String

Klaytn account address sending a transaction

Type:
  • String

input :String

Data attached to a transaction (anchored to the main chain)

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) → {AnchorTransactionRequest}

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

Optional instance to populate.

Returns:

The populated AnchorTransactionRequest instance.

Type
AnchorTransactionRequest