@multiversx/sdk-core - v14.0.1
Preparing search index...
DelegationController
Class DelegationController
Hierarchy (
View Summary
)
BaseController
DelegationController
Index
Constructors
constructor
Methods
add
Extra
Gas
Limit
If
Required
await
Completed
Create
New
Delegation
Contract
create
Transaction
For
Adding
Nodes
create
Transaction
For
Changing
Service
Fee
create
Transaction
For
Claiming
Rewards
create
Transaction
For
Delegating
create
Transaction
For
Modifying
Delegation
Cap
create
Transaction
For
New
Delegation
Contract
create
Transaction
For
Redelegating
Rewards
create
Transaction
For
Removing
Nodes
create
Transaction
For
Setting
Automatic
Activation
create
Transaction
For
Setting
Cap
Check
On
Redelegate
Rewards
create
Transaction
For
Setting
Metadata
create
Transaction
For
Staking
Nodes
create
Transaction
For
Unbonding
Nodes
create
Transaction
For
Undelegating
create
Transaction
For
Unjailing
Nodes
create
Transaction
For
Unsetting
Automatic
Activation
create
Transaction
For
Unsetting
Cap
Check
On
Redelegate
Rewards
create
Transaction
For
Unstaking
Nodes
create
Transaction
For
Withdrawing
parse
Create
New
Delegation
Contract
set
Transaction
Gas
Options
Constructors
constructor
new
DelegationController
(
options
:
{
chainID
:
string
;
networkProvider
:
INetworkProvider
}
,
)
:
DelegationController
Parameters
options
:
{
chainID
:
string
;
networkProvider
:
INetworkProvider
}
Returns
DelegationController
Methods
Protected
add
Extra
Gas
Limit
If
Required
addExtraGasLimitIfRequired
(
transaction
:
Transaction
)
:
void
Parameters
transaction
:
Transaction
Returns
void
await
Completed
Create
New
Delegation
Contract
awaitCompletedCreateNewDelegationContract
(
txHash
:
string
,
)
:
Promise
<
{
contractAddress
:
string
}
[]
>
Parameters
txHash
:
string
Returns
Promise
<
{
contractAddress
:
string
}
[]
>
create
Transaction
For
Adding
Nodes
createTransactionForAddingNodes
(
sender
:
IAccount
,
nonce
:
bigint
,
options
:
ManageNodesInput
&
{
signedMessages
:
Uint8Array
<
ArrayBufferLike
>
[]
;
}
&
BaseControllerInput
,
)
:
Promise
<
Transaction
>
Parameters
sender
:
IAccount
nonce
:
bigint
options
:
ManageNodesInput
&
{
signedMessages
:
Uint8Array
<
ArrayBufferLike
>
[]
}
&
BaseControllerInput
Returns
Promise
<
Transaction
>
create
Transaction
For
Changing
Service
Fee
createTransactionForChangingServiceFee
(
sender
:
IAccount
,
nonce
:
bigint
,
options
:
ChangeServiceFee
&
BaseControllerInput
,
)
:
Promise
<
Transaction
>
Parameters
sender
:
IAccount
nonce
:
bigint
options
:
ChangeServiceFee
&
BaseControllerInput
Returns
Promise
<
Transaction
>
create
Transaction
For
Claiming
Rewards
createTransactionForClaimingRewards
(
sender
:
IAccount
,
nonce
:
bigint
,
options
:
ManageDelegationContractInput
&
BaseControllerInput
,
)
:
Promise
<
Transaction
>
Parameters
sender
:
IAccount
nonce
:
bigint
options
:
ManageDelegationContractInput
&
BaseControllerInput
Returns
Promise
<
Transaction
>
create
Transaction
For
Delegating
createTransactionForDelegating
(
sender
:
IAccount
,
nonce
:
bigint
,
options
:
DelegateActionsInput
&
BaseControllerInput
,
)
:
Promise
<
Transaction
>
Parameters
sender
:
IAccount
nonce
:
bigint
options
:
DelegateActionsInput
&
BaseControllerInput
Returns
Promise
<
Transaction
>
create
Transaction
For
Modifying
Delegation
Cap
createTransactionForModifyingDelegationCap
(
sender
:
IAccount
,
nonce
:
bigint
,
options
:
ModifyDelegationCapInput
&
BaseControllerInput
,
)
:
Promise
<
Transaction
>
Parameters
sender
:
IAccount
nonce
:
bigint
options
:
ModifyDelegationCapInput
&
BaseControllerInput
Returns
Promise
<
Transaction
>
create
Transaction
For
New
Delegation
Contract
createTransactionForNewDelegationContract
(
sender
:
IAccount
,
nonce
:
bigint
,
options
:
NewDelegationContractInput
&
BaseControllerInput
,
)
:
Promise
<
Transaction
>
Parameters
sender
:
IAccount
nonce
:
bigint
options
:
NewDelegationContractInput
&
BaseControllerInput
Returns
Promise
<
Transaction
>
create
Transaction
For
Redelegating
Rewards
createTransactionForRedelegatingRewards
(
sender
:
IAccount
,
nonce
:
bigint
,
options
:
ManageDelegationContractInput
&
BaseControllerInput
,
)
:
Promise
<
Transaction
>
Parameters
sender
:
IAccount
nonce
:
bigint
options
:
ManageDelegationContractInput
&
BaseControllerInput
Returns
Promise
<
Transaction
>
create
Transaction
For
Removing
Nodes
createTransactionForRemovingNodes
(
sender
:
IAccount
,
nonce
:
bigint
,
options
:
ManageNodesInput
&
BaseControllerInput
,
)
:
Promise
<
Transaction
>
Parameters
sender
:
IAccount
nonce
:
bigint
options
:
ManageNodesInput
&
BaseControllerInput
Returns
Promise
<
Transaction
>
create
Transaction
For
Setting
Automatic
Activation
createTransactionForSettingAutomaticActivation
(
sender
:
IAccount
,
nonce
:
bigint
,
options
:
ManageDelegationContractInput
&
BaseControllerInput
,
)
:
Promise
<
Transaction
>
Parameters
sender
:
IAccount
nonce
:
bigint
options
:
ManageDelegationContractInput
&
BaseControllerInput
Returns
Promise
<
Transaction
>
create
Transaction
For
Setting
Cap
Check
On
Redelegate
Rewards
createTransactionForSettingCapCheckOnRedelegateRewards
(
sender
:
IAccount
,
nonce
:
bigint
,
options
:
ManageDelegationContractInput
&
BaseControllerInput
,
)
:
Promise
<
Transaction
>
Parameters
sender
:
IAccount
nonce
:
bigint
options
:
ManageDelegationContractInput
&
BaseControllerInput
Returns
Promise
<
Transaction
>
create
Transaction
For
Setting
Metadata
createTransactionForSettingMetadata
(
sender
:
IAccount
,
nonce
:
bigint
,
options
:
SetContractMetadataInput
&
BaseControllerInput
,
)
:
Promise
<
Transaction
>
Parameters
sender
:
IAccount
nonce
:
bigint
options
:
SetContractMetadataInput
&
BaseControllerInput
Returns
Promise
<
Transaction
>
create
Transaction
For
Staking
Nodes
createTransactionForStakingNodes
(
sender
:
IAccount
,
nonce
:
bigint
,
options
:
ManageNodesInput
&
BaseControllerInput
,
)
:
Promise
<
Transaction
>
Parameters
sender
:
IAccount
nonce
:
bigint
options
:
ManageNodesInput
&
BaseControllerInput
Returns
Promise
<
Transaction
>
create
Transaction
For
Unbonding
Nodes
createTransactionForUnbondingNodes
(
sender
:
IAccount
,
nonce
:
bigint
,
options
:
ManageNodesInput
&
BaseControllerInput
,
)
:
Promise
<
Transaction
>
Parameters
sender
:
IAccount
nonce
:
bigint
options
:
ManageNodesInput
&
BaseControllerInput
Returns
Promise
<
Transaction
>
create
Transaction
For
Undelegating
createTransactionForUndelegating
(
sender
:
IAccount
,
nonce
:
bigint
,
options
:
DelegateActionsInput
&
BaseControllerInput
,
)
:
Promise
<
Transaction
>
Parameters
sender
:
IAccount
nonce
:
bigint
options
:
DelegateActionsInput
&
BaseControllerInput
Returns
Promise
<
Transaction
>
create
Transaction
For
Unjailing
Nodes
createTransactionForUnjailingNodes
(
sender
:
IAccount
,
nonce
:
bigint
,
options
:
ManageNodesInput
&
{
amount
:
bigint
}
&
BaseControllerInput
,
)
:
Promise
<
Transaction
>
Parameters
sender
:
IAccount
nonce
:
bigint
options
:
ManageNodesInput
&
{
amount
:
bigint
}
&
BaseControllerInput
Returns
Promise
<
Transaction
>
create
Transaction
For
Unsetting
Automatic
Activation
createTransactionForUnsettingAutomaticActivation
(
sender
:
IAccount
,
nonce
:
bigint
,
options
:
ManageDelegationContractInput
&
BaseControllerInput
,
)
:
Promise
<
Transaction
>
Parameters
sender
:
IAccount
nonce
:
bigint
options
:
ManageDelegationContractInput
&
BaseControllerInput
Returns
Promise
<
Transaction
>
create
Transaction
For
Unsetting
Cap
Check
On
Redelegate
Rewards
createTransactionForUnsettingCapCheckOnRedelegateRewards
(
sender
:
IAccount
,
nonce
:
bigint
,
options
:
ManageDelegationContractInput
&
BaseControllerInput
,
)
:
Promise
<
Transaction
>
Parameters
sender
:
IAccount
nonce
:
bigint
options
:
ManageDelegationContractInput
&
BaseControllerInput
Returns
Promise
<
Transaction
>
create
Transaction
For
Unstaking
Nodes
createTransactionForUnstakingNodes
(
sender
:
IAccount
,
nonce
:
bigint
,
options
:
ManageNodesInput
&
BaseControllerInput
,
)
:
Promise
<
Transaction
>
Parameters
sender
:
IAccount
nonce
:
bigint
options
:
ManageNodesInput
&
BaseControllerInput
Returns
Promise
<
Transaction
>
create
Transaction
For
Withdrawing
createTransactionForWithdrawing
(
sender
:
IAccount
,
nonce
:
bigint
,
options
:
ManageDelegationContractInput
&
BaseControllerInput
,
)
:
Promise
<
Transaction
>
Parameters
sender
:
IAccount
nonce
:
bigint
options
:
ManageDelegationContractInput
&
BaseControllerInput
Returns
Promise
<
Transaction
>
parse
Create
New
Delegation
Contract
parseCreateNewDelegationContract
(
transactionOnNetwork
:
TransactionOnNetwork
,
)
:
{
contractAddress
:
string
}
[]
Parameters
transactionOnNetwork
:
TransactionOnNetwork
Returns
{
contractAddress
:
string
}
[]
Protected
set
Transaction
Gas
Options
setTransactionGasOptions
(
transaction
:
Transaction
,
options
:
{
gasLimit
?:
bigint
;
gasPrice
?:
bigint
}
,
)
:
void
Parameters
transaction
:
Transaction
options
:
{
gasLimit
?:
bigint
;
gasPrice
?:
bigint
}
Returns
void
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Methods
add
Extra
Gas
Limit
If
Required
await
Completed
Create
New
Delegation
Contract
create
Transaction
For
Adding
Nodes
create
Transaction
For
Changing
Service
Fee
create
Transaction
For
Claiming
Rewards
create
Transaction
For
Delegating
create
Transaction
For
Modifying
Delegation
Cap
create
Transaction
For
New
Delegation
Contract
create
Transaction
For
Redelegating
Rewards
create
Transaction
For
Removing
Nodes
create
Transaction
For
Setting
Automatic
Activation
create
Transaction
For
Setting
Cap
Check
On
Redelegate
Rewards
create
Transaction
For
Setting
Metadata
create
Transaction
For
Staking
Nodes
create
Transaction
For
Unbonding
Nodes
create
Transaction
For
Undelegating
create
Transaction
For
Unjailing
Nodes
create
Transaction
For
Unsetting
Automatic
Activation
create
Transaction
For
Unsetting
Cap
Check
On
Redelegate
Rewards
create
Transaction
For
Unstaking
Nodes
create
Transaction
For
Withdrawing
parse
Create
New
Delegation
Contract
set
Transaction
Gas
Options
@multiversx/sdk-core - v14.0.1
Loading...