DeployKip7ContractRequest

DeployKip7ContractRequest

new DeployKip7ContractRequest()

Version:
  • 1.0

The DeployKip7ContractRequest model module.

Members

alias :String

The alias of the contract. When using KIP-7 API, you can use the contract alias in place of the address. The alias must only consist of lowercase letters, numbers and hyphens, and the first letter is restricted to a lowercase letter.

Type:
  • String

name :String

Contract name

Type:
  • String

symbol :String

Token symbol

Type:
  • String

decimals :Number

The number of digits that come after the decimal place when displaying token values on-screen. The default value is 0.

Type:
  • Number

initialSupply :String

Initial supply (in hex.)

Type:
  • String

options :Kip7FeePayerOptions

Type:

Methods

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

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

Optional instance to populate.

Returns:

The populated DeployKip7ContractRequest instance.

Type
DeployKip7ContractRequest

DeployKip7ContractRequest

new DeployKip7ContractRequest(alias, name, symbol, initialSupply)

Constructs a new DeployKip7ContractRequest.

Parameters:
Name Type Description
alias String

The alias of the contract. When using KIP-7 API, you can use the contract alias in place of the address. The alias must only consist of lowercase letters, numbers and hyphens, and the first letter is restricted to a lowercase letter.

name String

Contract name

symbol String

Token symbol

initialSupply String

Initial supply (in hex.)

Members

alias :String

The alias of the contract. When using KIP-7 API, you can use the contract alias in place of the address. The alias must only consist of lowercase letters, numbers and hyphens, and the first letter is restricted to a lowercase letter.

Type:
  • String

name :String

Contract name

Type:
  • String

symbol :String

Token symbol

Type:
  • String

decimals :Number

The number of digits that come after the decimal place when displaying token values on-screen. The default value is 0.

Type:
  • Number

initialSupply :String

Initial supply (in hex.)

Type:
  • String

options :Kip7FeePayerOptions

Type:

Methods

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

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

Optional instance to populate.

Returns:

The populated DeployKip7ContractRequest instance.

Type
DeployKip7ContractRequest