Search
Preparing search index...
The search index is not available
Stacks.js 1.0.0 Library Reference
Options
All
Public
Public/Protected
All
Inherited
Only exported
Menu
Globals
Authorization
Class Authorization
Hierarchy
Deserializable
Authorization
StandardAuthorization
SponsoredAuthorization
Index
Constructors
constructor
Properties
auth
Type
spending
Condition
sponsor
Spending
Condition
Methods
deserialize
get
Fee
into
Initial
Sighash
Auth
serialize
set
Fee
set
Nonce
set
Sponsor
set
Sponsor
Nonce
verify
Origin
deserialize
Constructors
constructor
new
Authorization
(
authType
?:
AuthType
, spendingConditions
?:
SpendingCondition
, sponsorSpendingCondition
?:
SpendingCondition
)
:
Authorization
Parameters
Optional
authType:
AuthType
Optional
spendingConditions:
SpendingCondition
Optional
sponsorSpendingCondition:
SpendingCondition
Returns
Authorization
Properties
Optional
auth
Type
auth
Type
:
AuthType
Optional
spending
Condition
spending
Condition
:
SpendingCondition
Optional
sponsor
Spending
Condition
sponsor
Spending
Condition
:
SpendingCondition
Methods
deserialize
deserialize
(
bufferReader
:
BufferReader
)
:
void
Parameters
bufferReader:
BufferReader
Returns
void
get
Fee
get
Fee
(
)
:
0
|
BN
Returns
0
|
BN
into
Initial
Sighash
Auth
into
Initial
Sighash
Auth
(
)
:
Authorization
Returns
Authorization
serialize
serialize
(
)
:
Buffer
Returns
Buffer
set
Fee
set
Fee
(
amount
:
BigNum
)
:
void
Parameters
amount:
BigNum
Returns
void
set
Nonce
set
Nonce
(
nonce
:
BigNum
)
:
void
Parameters
nonce:
BigNum
Returns
void
set
Sponsor
set
Sponsor
(
sponsorSpendingCondition
:
SpendingCondition
)
:
void
Parameters
sponsorSpendingCondition:
SpendingCondition
Returns
void
set
Sponsor
Nonce
set
Sponsor
Nonce
(
nonce
:
BigNum
)
:
void
Parameters
nonce:
BigNum
Returns
void
verify
Origin
verify
Origin
(
initialSigHash
:
string
)
:
string
Parameters
initialSigHash:
string
Returns
string
Static
deserialize
deserialize<T>
(
this
:
{}
, bufferReader
:
BufferReader
)
:
T
Type parameters
T
:
Deserializable
Parameters
this:
{}
bufferReader:
BufferReader
Returns
T
Globals
Authorization
constructor
auth
Type
spending
Condition
sponsor
Spending
Condition
deserialize
get
Fee
into
Initial
Sighash
Auth
serialize
set
Fee
set
Nonce
set
Sponsor
set
Sponsor
Nonce
verify
Origin
deserialize
Generated using
TypeDoc