@keetanetwork/keetanet-client
Preparing search index...
KeetaNetSDK
Referenced
BlockBuilder
Class BlockBuilder
Implements
BlockJSONIncomplete
Index
Constructors
C
constructor
Properties
P
Adjust
Method
P
is
Instance
P
NO_
PREVIOUS
P
Operation
P
Operation
Type
Accessors
A
$opening
A
account
A
block
A
current
Block
A
current
Block
Sealed
A
current
WIP
A
date
A
hash
A
network
A
operations
A
previous
A
sealed
A
signer
A
subnet
A
version
Methods
M
add
Operation
M
seal
M
to
JSON
M
unseal
Constructors
constructor
new
BlockBuilder
(
block
?:
string
|
ArrayBuffer
|
Block
|
BlockJSON
|
Partial
<
BlockJSON
>
,
)
:
BlockBuilder
Parameters
Optional
block
:
string
|
ArrayBuffer
|
Block
|
BlockJSON
|
Partial
<
BlockJSON
>
Returns
BlockBuilder
Properties
Static
Adjust
Method
AdjustMethod
:
typeof
AdjustMethod
= Block.AdjustMethod
Static
is
Instance
isInstance
:
(
obj
:
any
,
strict
?:
boolean
)
=>
obj
is
BlockBuilder
= ...
Static
NO_
PREVIOUS
NO_PREVIOUS
:
string
= Block.NO_PREVIOUS
Static
Operation
Operation
:
{
CREATE_IDENTIFIER
:
typeof
BlockOperationCREATE_IDENTIFIER
;
MODIFY_PERMISSIONS
:
typeof
BlockOperationMODIFY_PERMISSIONS
;
RECEIVE
:
typeof
BlockOperationRECEIVE
;
SEND
:
typeof
BlockOperationSEND
;
SET_INFO
:
typeof
BlockOperationSET_INFO
;
SET_REP
:
typeof
BlockOperationSET_REP
;
TOKEN_ADMIN_MODIFY_BALANCE
:
typeof
BlockOperationTOKEN_ADMIN_MODIFY_BALANCE
;
TOKEN_ADMIN_SUPPLY
:
typeof
BlockOperationTOKEN_ADMIN_SUPPLY
;
}
= Block.Operation
Static
Operation
Type
OperationType
:
typeof
OperationType
= Block.OperationType
Accessors
$opening
get
$opening
()
:
undefined
|
boolean
Returns
undefined
|
boolean
account
get
account
()
:
undefined
|
GenericAccount
Returns
undefined
|
GenericAccount
set
account
(
account
:
undefined
|
string
|
GenericAccount
)
:
void
Parameters
account
:
undefined
|
string
|
GenericAccount
Returns
void
block
get
block
()
:
undefined
|
Block
Returns
undefined
|
Block
Protected
current
Block
get
currentBlock
()
:
Block
|
Partial
<
BlockJSON
>
Returns
Block
|
Partial
<
BlockJSON
>
Protected
current
Block
Sealed
get
currentBlockSealed
()
:
Block
Returns
Block
Protected
current
WIP
get
currentWIP
()
:
Partial
Returns
Partial
date
get
date
()
:
undefined
|
Date
Returns
undefined
|
Date
set
date
(
date
:
undefined
|
string
|
Date
)
:
void
Parameters
date
:
undefined
|
string
|
Date
Returns
void
hash
get
hash
()
:
undefined
|
BlockHash
Returns
undefined
|
BlockHash
network
get
network
()
:
undefined
|
bigint
Returns
undefined
|
bigint
set
network
(
network
:
undefined
|
string
|
bigint
)
:
void
Parameters
network
:
undefined
|
string
|
bigint
Returns
void
operations
get
operations
()
:
undefined
|
BlockOperations
[]
Returns
undefined
|
BlockOperations
[]
previous
get
previous
()
:
undefined
|
BlockHash
Returns
undefined
|
BlockHash
set
previous
(
blockhash
:
undefined
|
string
|
BlockHash
)
:
void
Parameters
blockhash
:
undefined
|
string
|
BlockHash
Returns
void
sealed
get
sealed
()
:
boolean
Returns
boolean
signer
get
signer
()
:
undefined
|
Account
<
ECDSA_SECP256K1
|
ED25519
|
ECDSA_SECP256R1
>
Returns
undefined
|
Account
<
ECDSA_SECP256K1
|
ED25519
|
ECDSA_SECP256R1
>
set
signer
(
signer
:
|
undefined
|
string
|
Account
<
ECDSA_SECP256K1
|
ED25519
|
ECDSA_SECP256R1
>
,
)
:
void
Parameters
signer
:
undefined
|
string
|
Account
<
ECDSA_SECP256K1
|
ED25519
|
ECDSA_SECP256R1
>
Returns
void
subnet
get
subnet
()
:
undefined
|
bigint
Returns
undefined
|
bigint
set
subnet
(
subnet
:
undefined
|
string
|
bigint
)
:
void
Parameters
subnet
:
undefined
|
string
|
bigint
Returns
void
version
get
version
()
:
undefined
|
number
Returns
undefined
|
number
set
version
(
version
:
undefined
|
number
)
:
void
Parameters
version
:
undefined
|
number
Returns
void
Methods
add
Operation
addOperation
(
operation
:
|
BlockJSONOperationSEND
|
BlockJSONOperationRECEIVE
|
BlockJSONOperationTOKEN_ADMIN_MODIFY_BALANCE
|
BlockJSONOperationSET_REP
|
BlockJSONOperationSET_INFO
|
BlockJSONOperationMODIFY_PERMISSIONS
|
BlockJSONOperationCREATE_IDENTIFIER
|
BlockJSONOperationTOKEN_ADMIN_SUPPLY
,
)
:
void
Parameters
operation
:
|
BlockJSONOperationSEND
|
BlockJSONOperationRECEIVE
|
BlockJSONOperationTOKEN_ADMIN_MODIFY_BALANCE
|
BlockJSONOperationSET_REP
|
BlockJSONOperationSET_INFO
|
BlockJSONOperationMODIFY_PERMISSIONS
|
BlockJSONOperationCREATE_IDENTIFIER
|
BlockJSONOperationTOKEN_ADMIN_SUPPLY
Returns
void
seal
seal
()
:
Promise
<
Block
>
Returns
Promise
<
Block
>
to
JSON
toJSON
()
:
BlockJSONOutput
|
Partial
<
BlockJSONOutput
>
Returns
BlockJSONOutput
|
Partial
<
BlockJSONOutput
>
unseal
unseal
()
:
Partial
Returns
Partial
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Constructors
C
constructor
Properties
P
Adjust
Method
P
is
Instance
P
NO_
PREVIOUS
P
Operation
P
Operation
Type
Accessors
A
$opening
A
account
A
block
A
current
Block
A
current
Block
Sealed
A
current
WIP
A
date
A
hash
A
network
A
operations
A
previous
A
sealed
A
signer
A
subnet
A
version
Methods
M
add
Operation
M
seal
M
to
JSON
M
unseal
@keetanetwork/keetanet-client
Loading...