Search
Preparing search index...
The search index is not available
CodeChain JavaScript SDK
Options
All
Public
Public/Protected
All
Inherited
Externals
Only exported
Menu
Globals
CreateWorldTransaction
Class CreateWorldTransaction
Creates a world
Transaction hash can be changed by changing nonce.
If an identical transaction hash already exists, then the change fails. In this situation, a transaction can be created again by arbitrarily changing the nonce.
Hierarchy
CreateWorldTransaction
Index
Constructors
constructor
Properties
network
Id
nonce
owners
shard
Id
type
Methods
hash
rlp
Bytes
to
Encode
Object
toJSON
fromJSON
Constructors
constructor
new
Create
World
Transaction
(
data
:
CreateWorldData
)
:
CreateWorldTransaction
Parameters
data:
CreateWorldData
Returns
CreateWorldTransaction
Properties
network
Id
network
Id
:
NetworkId
nonce
nonce
:
number
owners
owners
:
PlatformAddress
[]
shard
Id
shard
Id
:
number
type
type
:
"createWorld"
= "createWorld"
Methods
hash
hash
(
)
:
H256
Returns
H256
rlp
Bytes
rlp
Bytes
(
)
:
Buffer
Returns
Buffer
to
Encode
Object
to
Encode
Object
(
)
:
(
string
|
number
|
string
[]
)
[]
Returns
(
string
|
number
|
string
[]
)
[]
toJSON
toJSON
(
)
:
object
Returns
object
type
:
string
data
:
object
network
Id
:
string
nonce
:
number
owners
:
PlatformAddress
[]
shard
Id
:
number
Static
fromJSON
fromJSON
(
obj
:
any
)
:
CreateWorldTransaction
Parameters
obj:
any
Returns
CreateWorldTransaction
Globals
Create
World
Transaction
constructor
network
Id
nonce
owners
shard
Id
type
hash
rlp
Bytes
to
Encode
Object
toJSON
fromJSON
Generated using
TypeDoc
Creates a world