@keetanetwork/keetanet-client
Preparing search index...
KeetaNetSDK
Referenced
VoteBuilder
Class VoteBuilder
Index
Constructors
C
constructor
Properties
P
is
Instance
Methods
M
add
Block
M
add
Blocks
M
create
Vote
M
generate
Vote
Data
M
seal
Constructors
constructor
new
VoteBuilder
(
account
:
Account
,
blocks
?:
(
BlockHash
|
Block
)
[]
)
:
VoteBuilder
Parameters
account
:
Account
blocks
: (
BlockHash
|
Block
)
[]
= []
Returns
VoteBuilder
Properties
Static
is
Instance
isInstance
:
(
obj
:
any
,
strict
?:
boolean
)
=>
obj
is
VoteBuilder
= ...
Methods
add
Block
addBlock
(
block
:
string
|
BlockHash
|
Block
)
:
void
Parameters
block
:
string
|
BlockHash
|
Block
Returns
void
add
Blocks
addBlocks
(
blocks
:
(
string
|
BlockHash
|
Block
)
[]
)
:
void
Parameters
blocks
: (
string
|
BlockHash
|
Block
)
[]
Returns
void
create
Vote
createVote
(
voteData
:
ArrayBuffer
,
tbsCertificate
:
CertificateSchema
,
signatureInfo
:
CertificateOID
[]
,
signature
:
BufferStorage
,
voteOptions
?:
VoteOptions
,
)
:
Vote
Parameters
voteData
:
ArrayBuffer
tbsCertificate
:
CertificateSchema
signatureInfo
:
CertificateOID
[]
signature
:
BufferStorage
voteOptions
:
VoteOptions
= {}
Returns
Vote
generate
Vote
Data
generateVoteData
(
serial
:
bigint
,
validTo
:
Date
,
validFrom
:
Date
,
)
:
{
signatureInfo
:
CertificateOID
[]
;
tbsCertificate
:
CertificateSchema
;
voteData
:
ArrayBuffer
;
}
Parameters
serial
:
bigint
validTo
:
Date
validFrom
:
Date
Returns
{
signatureInfo
:
CertificateOID
[]
;
tbsCertificate
:
CertificateSchema
;
voteData
:
ArrayBuffer
;
}
seal
seal
(
serial
:
bigint
,
validTo
:
null
|
Date
,
validFrom
?:
Date
,
voteOptions
?:
VoteOptions
,
)
:
Promise
<
Vote
>
Parameters
serial
:
bigint
validTo
:
null
|
Date
Optional
validFrom
:
Date
voteOptions
:
VoteOptions
= {}
Returns
Promise
<
Vote
>
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Constructors
C
constructor
Properties
P
is
Instance
Methods
M
add
Block
M
add
Blocks
M
create
Vote
M
generate
Vote
Data
M
seal
@keetanetwork/keetanet-client
Loading...