Table of contents

  1. Account - 1
    1. unlink_identity - 0
  2. Balances - 6
    1. transfer_allow_death - 0
    2. transfer_keep_alive - 3
    3. transfer_all - 4
  3. OneshotAccount - 7
    1. create_oneshot_account - 0
    2. consume_oneshot_account - 1
    3. consume_oneshot_account_with_remaining - 2
  4. SmithMembers - 10
    1. invite_smith - 0
    2. accept_invitation - 1
    3. certify_smith - 2
  5. AuthorityMembers - 11
    1. go_offline - 0
    2. go_online - 1
    3. set_session_keys - 2
  6. Preimage - 22
    1. note_preimage - 0
    2. unnote_preimage - 1
    3. request_preimage - 2
    4. unrequest_preimage - 3
    5. ensure_updated - 4
  7. TechnicalCommittee - 23
    1. execute - 1
      1. Complexity:
    2. propose - 2
      1. Complexity
    3. vote - 3
      1. Complexity
    4. close - 6
      1. Complexity
  8. UniversalDividend - 30
    1. claim_uds - 0
    2. transfer_ud - 1
    3. transfer_ud_keep_alive - 2
  9. Identity - 41
    1. create_identity - 0
    2. confirm_identity - 1
    3. change_owner_key - 3
    4. revoke_identity - 4
    5. revoke_identity_legacy - 9
    6. link_account - 8
  10. Certification - 43
    1. add_cert - 0
    2. renew_cert - 3
  11. Distance - 44
    1. request_distance_evaluation - 0
    2. request_distance_evaluation_for - 4
  12. AtomicSwap - 50
    1. create_swap - 0
    2. claim_swap - 1
    3. cancel_swap - 2
  13. Multisig - 51
    1. as_multi_threshold_1 - 0
      1. Complexity
    2. as_multi - 1
      1. Complexity
    3. approve_as_multi - 2
      1. Complexity
    4. cancel_as_multi - 3
      1. Complexity
  14. ProvideRandomness - 52
    1. request - 0
  15. Proxy - 53
    1. proxy - 0
    2. add_proxy - 1
    3. remove_proxy - 2
    4. remove_proxies - 3
    5. create_pure - 4
    6. kill_pure - 5
    7. announce - 6
    8. remove_announcement - 7
    9. reject_announcement - 8
    10. proxy_announced - 9
  16. Utility - 54
    1. batch - 0
      1. Complexity
    2. as_derivative - 1
    3. batch_all - 2
      1. Complexity
    4. force_batch - 4
      1. Complexity
  17. Treasury - 55
    1. spend_local - 3
      1. Dispatch Origin
      2. Details
      3. Parameters
      4. Events
    2. remove_approval - 4
      1. Dispatch Origin
      2. Details
      3. Parameters
      4. Complexity
      5. Errors
    3. spend - 5
      1. Dispatch Origin
      2. Details
      3. Parameters
      4. Events
    4. payout - 6
      1. Dispatch Origin
      2. Details
      3. Parameters
      4. Events
    5. check_status - 7
      1. Dispatch Origin
      2. Details
      3. Parameters
      4. Events
    6. void_spend - 8
      1. Dispatch Origin
      2. Details
      3. Parameters
      4. Events

This page was automatically added from https://git.duniter.org/nodes/rust/duniter-v2s/-/blob/master/docs/api/runtime-calls.md. Please check here if something is broken.

Runtime calls

Calls are categorized according to the dispatch origin they require:

  1. User calls: the dispatch origin for this kind of call must be signed by the transactor. This is the only call category that can be submitted with an extrinsic.
  2. Root calls: This kind of call requires a special origin that can only be invoked through on-chain governance mechanisms.
  3. Inherent calls: This kind of call is invoked by the author of the block itself (usually automatically by the node).
  4. Disabled calls: These calls can not be called directly, they are reserved for internal use by other runtime calls.

We only document user calls below.

There are 63 user calls from 17 pallets.

Account - 1

unlink_identity()

Taking 0.0109 % of a block.

Unlink the identity associated with the account.

Balances - 6

transfer_allow_death - 0

transfer_allow_death(dest, value)

Taking 0.0194 % of a block.

dest: AccountIdLookupOf<T>
value: T::Balance

Transfer some liquid free balance to another account.

transfer_allow_death will set the FreeBalance of the sender and receiver. If the sender's account is below the existential deposit as a result of the transfer, the account will be reaped.

The dispatch origin for this call must be Signed by the transactor.

transfer_keep_alive - 3

transfer_keep_alive(dest, value)

Taking 0.0122 % of a block.

dest: AccountIdLookupOf<T>
value: T::Balance

Same as the transfer_allow_death call, but with a check that the transfer will not kill the origin account.

99% of the time you want transfer_allow_death instead.

transfer_all - 4

transfer_all(dest, keep_alive)

Taking 0.0126 % of a block.

dest: AccountIdLookupOf<T>
keep_alive: bool

Transfer the entire transferable balance from the caller account.

NOTE: This function only attempts to transfer transferable balances. This means that any locked, reserved, or existential deposits (when keep_alive is true), will not be transferred by this function. To ensure that this function results in a killed account, you might need to prepare the account by removing any reference counters, storage deposits, etc...

The dispatch origin of this call must be Signed.

OneshotAccount - 7

create_oneshot_account - 0

create_oneshot_account(dest, value)

Taking 0.0117 % of a block.

dest: <T::Lookup as StaticLookup>::Source
value: BalanceOf<T>

Create an account that can only be consumed once

Origin account is kept alive.

consume_oneshot_account - 1

consume_oneshot_account(block_height, dest)

Taking 0.0195 % of a block.

block_height: BlockNumberFor<T>
dest: Account<<T::Lookup as StaticLookup>::Source>

Consume a oneshot account and transfer its balance to an account

consume_oneshot_account_with_remaining - 2

consume_oneshot_account_with_remaining(block_height, dest, remaining_to, balance)

Taking 0.0265 % of a block.

block_height: BlockNumberFor<T>
dest: Account<<T::Lookup as StaticLookup>::Source>
remaining_to: Account<<T::Lookup as StaticLookup>::Source>
balance: BalanceOf<T>

Consume a oneshot account then transfer some amount to an account, and the remaining amount to another account.

SmithMembers - 10

invite_smith - 0

invite_smith(receiver)

Taking 0.024 % of a block.

receiver: T::IdtyIndex

Invite a member of the Web of Trust to attempt becoming a Smith.

accept_invitation - 1

accept_invitation()

Taking 0.0126 % of a block.

Accept an invitation to become a Smith (must have been invited first).

certify_smith - 2

certify_smith(receiver)

Taking 0.0279 % of a block.

receiver: T::IdtyIndex

Certify an invited Smith, which can lead the certified to become a Smith.

AuthorityMembers - 11

go_offline - 0

go_offline()

Taking 0.0172 % of a block.

Request to leave the set of validators two sessions later.

go_online - 1

go_online()

Taking 0.0199 % of a block.

Request to join the set of validators two sessions later.

set_session_keys - 2

set_session_keys(keys)

Taking 0.0256 % of a block.

keys: T::Keys

Declare new session keys to replace current ones.

Preimage - 22

note_preimage - 0

note_preimage(bytes)

Taking 0.2845 % of a block.

bytes: Vec<u8>

Register a preimage on-chain.

If the preimage was previously requested, no fees or deposits are taken for providing the preimage. Otherwise, a deposit is taken proportional to the size of the preimage.

unnote_preimage - 1

unnote_preimage(hash)

Taking 0.0181 % of a block.

hash: T::Hash

Clear an unrequested preimage from the runtime storage.

If len is provided, then it will be a much cheaper operation.

request_preimage - 2

request_preimage(hash)

Taking 0.0128 % of a block.

hash: T::Hash

Request a preimage be uploaded to the chain without paying any fees or deposits.

If the preimage requests has already been provided on-chain, we unreserve any deposit a user may have paid, and take the control of the preimage out of their hands.

unrequest_preimage - 3

unrequest_preimage(hash)

Taking 0.018 % of a block.

hash: T::Hash

Clear a previously made request for a preimage.

NOTE: THIS MUST NOT BE CALLED ON hash MORE TIMES THAN request_preimage.

ensure_updated - 4

ensure_updated(hashes)

Taking 18.8992 % of a block.

hashes: Vec<T::Hash>

Ensure that the a bulk of pre-images is upgraded.

The caller pays no fee if at least 90% of pre-images were successfully updated.

TechnicalCommittee - 23

execute - 1

execute(proposal, length_bound)

Taking 0.0061 % of a block.

proposal: Box<<T as Config<I>>::Proposal>
length_bound: u32

Dispatch a proposal from a member using the Member origin.

Origin must be a member of the collective.

Complexity:

propose - 2

propose(threshold, proposal, length_bound)

No weight available.

threshold: MemberCount
proposal: Box<<T as Config<I>>::Proposal>
length_bound: u32

Add a new proposal to either be voted on or executed directly.

Requires the sender to be member.

threshold determines whether proposal is executed directly (threshold < 2) or put up for voting.

Complexity

vote - 3

vote(proposal, index, approve)

Taking 0.0128 % of a block.

proposal: T::Hash
index: ProposalIndex
approve: bool

Add an aye or nay vote for the sender to the given proposal.

Requires the sender to be a member.

Transaction fees will be waived if the member is voting on any particular proposal for the first time and the call is successful. Subsequent vote changes will charge a fee.

Complexity

close - 6

close(proposal_hash, index, proposal_weight_bound, length_bound)

No weight available.

proposal_hash: T::Hash
index: ProposalIndex
proposal_weight_bound: Weight
length_bound: u32

Close a vote that is either approved, disapproved or whose voting period has ended.

May be called by any signed account in order to finish voting and close the proposal.

If called before the end of the voting period it will only close the vote if it is has enough votes to be approved or disapproved.

If called after the end of the voting period abstentions are counted as rejections unless there is a prime member set and the prime member cast an approval.

If the close operation completes successfully with disapproval, the transaction fee will be waived. Otherwise execution of the approved operation will be charged to the caller.

Complexity

UniversalDividend - 30

claim_uds - 0

claim_uds()

Taking 0.0219 % of a block.

Claim Universal Dividends.

transfer_ud - 1

transfer_ud(dest, value)

Taking 0.0207 % of a block.

dest: <T::Lookup as StaticLookup>::Source
value: BalanceOf<T>

Transfer some liquid free balance to another account, in milliUD.

transfer_ud_keep_alive - 2

transfer_ud_keep_alive(dest, value)

Taking 0.0134 % of a block.

dest: <T::Lookup as StaticLookup>::Source
value: BalanceOf<T>

Transfer some liquid free balance to another account in milliUD and keep the account alive.

Identity - 41

create_identity - 0

create_identity(owner_key)

Taking 0.0843 % of a block.

owner_key: T::AccountId

Create an identity for an existing account

The origin must be allowed to create an identity.

confirm_identity - 1

confirm_identity(idty_name)

Taking 0.0322 % of a block.

idty_name: IdtyName

Confirm the creation of an identity and give it a name

The identity must have been created using create_identity before it can be confirmed.

change_owner_key - 3

change_owner_key(new_key, new_key_sig)

Taking 0.0421 % of a block.

new_key: T::AccountId
new_key_sig: T::Signature

Change identity owner key.

The origin should be the old identity owner key.

revoke_identity - 4

revoke_identity(idty_index, revocation_key, revocation_sig)

Taking 0.0392 % of a block.

idty_index: T::IdtyIndex
revocation_key: T::AccountId
revocation_sig: T::Signature

Revoke an identity using a revocation signature

Any signed origin can execute this call.

revoke_identity_legacy - 9

revoke_identity_legacy(revocation_document)

Taking 0.0392 % of a block.

revocation_document: Vec<u8>

Revoke an identity using a legacy (DUBP) revocation document

Any signed origin can execute this call.

link_account(account_id, payload_sig)

Taking 0.0155 % of a block.

account_id: T::AccountId
payload_sig: T::Signature

Link an account to an identity.

This function links a specified account to an identity, requiring both the account and the identity to sign the operation.

Certification - 43

add_cert - 0

add_cert(receiver)

Taking 0.0357 % of a block.

receiver: T::IdtyIndex

Add a new certification.

renew_cert - 3

renew_cert(receiver)

Taking 0.0295 % of a block.

receiver: T::IdtyIndex

Renew an existing certification.

Distance - 44

request_distance_evaluation - 0

request_distance_evaluation()

Taking 0.0393 % of a block.

Request evaluation of the caller's identity distance.

This function allows the caller to request an evaluation of their distance. A positive evaluation will lead to claiming or renewing membership, while a negative evaluation will result in slashing for the caller.

request_distance_evaluation_for - 4

request_distance_evaluation_for(target)

Taking 0.0404 % of a block.

target: T::IdtyIndex

Request evaluation of a target identity's distance.

This function allows the caller to request an evaluation of a specific target identity's distance. This action is only permitted for unvalidated identities.

AtomicSwap - 50

create_swap - 0

create_swap(target, hashed_proof, action, duration)

No weight available.

target: T::AccountId
hashed_proof: HashedProof
action: T::SwapAction
duration: BlockNumberFor<T>

Register a new atomic swap, declaring an intention to send funds from origin to target on the current blockchain. The target can claim the fund using the revealed proof. If the fund is not claimed after duration blocks, then the sender can cancel the swap.

The dispatch origin for this call must be Signed.

claim_swap - 1

claim_swap(proof, action)

No weight available.

proof: Vec<u8>
action: T::SwapAction

Claim an atomic swap.

The dispatch origin for this call must be Signed.

cancel_swap - 2

cancel_swap(target, hashed_proof)

No weight available.

target: T::AccountId
hashed_proof: HashedProof

Cancel an atomic swap. Only possible after the originally set duration has passed.

The dispatch origin for this call must be Signed.

Multisig - 51

as_multi_threshold_1 - 0

as_multi_threshold_1(other_signatories, call)

Taking 0.0048 % of a block.

other_signatories: Vec<T::AccountId>
call: Box<<T as Config>::RuntimeCall>

Immediately dispatch a multi-signature call using a single approval from the caller.

The dispatch origin for this call must be Signed.

Result is equivalent to the dispatched result.

Complexity

O(Z + C) where Z is the length of the call and C its execution weight.

as_multi - 1

as_multi(threshold, other_signatories, maybe_timepoint, call, max_weight)

No weight available.

threshold: u16
other_signatories: Vec<T::AccountId>
maybe_timepoint: Option<Timepoint<BlockNumberFor<T>>>
call: Box<<T as Config>::RuntimeCall>
max_weight: Weight

Register approval for a dispatch to be made from a deterministic composite account if approved by a total of threshold - 1 of other_signatories.

If there are enough, then dispatch the call.

Payment: DepositBase will be reserved if this is the first approval, plus threshold times DepositFactor. It is returned once this dispatch happens or is cancelled.

The dispatch origin for this call must be Signed.

NOTE: Unless this is the final approval, you will generally want to use approve_as_multi instead, since it only requires a hash of the call.

Result is equivalent to the dispatched result if threshold is exactly 1. Otherwise on success, result is Ok and the result from the interior call, if it was executed, may be found in the deposited MultisigExecuted event.

Complexity

approve_as_multi - 2

approve_as_multi(threshold, other_signatories, maybe_timepoint, call_hash, max_weight)

No weight available.

threshold: u16
other_signatories: Vec<T::AccountId>
maybe_timepoint: Option<Timepoint<BlockNumberFor<T>>>
call_hash: [u8; 32]
max_weight: Weight

Register approval for a dispatch to be made from a deterministic composite account if approved by a total of threshold - 1 of other_signatories.

Payment: DepositBase will be reserved if this is the first approval, plus threshold times DepositFactor. It is returned once this dispatch happens or is cancelled.

The dispatch origin for this call must be Signed.

NOTE: If this is the final approval, you will want to use as_multi instead.

Complexity

cancel_as_multi - 3

cancel_as_multi(threshold, other_signatories, timepoint, call_hash)

Taking 0.0121 % of a block.

threshold: u16
other_signatories: Vec<T::AccountId>
timepoint: Timepoint<BlockNumberFor<T>>
call_hash: [u8; 32]

Cancel a pre-existing, on-going multisig transaction. Any deposit reserved previously for this operation will be unreserved on success.

The dispatch origin for this call must be Signed.

Complexity

ProvideRandomness - 52

request - 0

request(randomness_type, salt)

Taking 0.0401 % of a block.

randomness_type: RandomnessType
salt: H256

Request randomness.

Proxy - 53

proxy - 0

proxy(real, force_proxy_type, call)

Taking 0.0062 % of a block.

real: AccountIdLookupOf<T>
force_proxy_type: Option<T::ProxyType>
call: Box<<T as Config>::RuntimeCall>

Dispatch the given call from an account that the sender is authorised for through add_proxy.

The dispatch origin for this call must be Signed.

Parameters:

add_proxy - 1

add_proxy(delegate, proxy_type, delay)

Taking 0.0118 % of a block.

delegate: AccountIdLookupOf<T>
proxy_type: T::ProxyType
delay: BlockNumberFor<T>

Register a proxy account for the sender that is able to make calls on its behalf.

The dispatch origin for this call must be Signed.

Parameters:

remove_proxy - 2

remove_proxy(delegate, proxy_type, delay)

Taking 0.0118 % of a block.

delegate: AccountIdLookupOf<T>
proxy_type: T::ProxyType
delay: BlockNumberFor<T>

Unregister a proxy account for the sender.

The dispatch origin for this call must be Signed.

Parameters:

remove_proxies - 3

remove_proxies()

Taking 0.0117 % of a block.

Unregister all proxy accounts for the sender.

The dispatch origin for this call must be Signed.

WARNING: This may be called on accounts created by pure, however if done, then the unreserved fees will be inaccessible. All access to this account will be lost.

create_pure - 4

create_pure(proxy_type, delay, index)

Taking 0.0118 % of a block.

proxy_type: T::ProxyType
delay: BlockNumberFor<T>
index: u16

Spawn a fresh new account that is guaranteed to be otherwise inaccessible, and initialize it with a proxy of proxy_type for origin sender.

Requires a Signed origin.

Fails with Duplicate if this has already been called in this transaction, from the same sender, with the same parameters.

Fails if there are insufficient funds to pay for deposit.

kill_pure - 5

kill_pure(spawner, proxy_type, index, height, ext_index)

Taking 0.0117 % of a block.

spawner: AccountIdLookupOf<T>
proxy_type: T::ProxyType
index: u16
height: BlockNumberFor<T>
ext_index: u32

Removes a previously spawned pure proxy.

WARNING: All access to this account will be lost. Any funds held in it will be inaccessible.

Requires a Signed origin, and the sender account must have been created by a call to pure with corresponding parameters.

Fails with NoPermission in case the caller is not a previously created pure account whose pure call has corresponding parameters.

announce - 6

announce(real, call_hash)

Taking 0.0197 % of a block.

real: AccountIdLookupOf<T>
call_hash: CallHashOf<T>

Publish the hash of a proxy-call that will be made in the future.

This must be called some number of blocks before the corresponding proxy is attempted if the delay associated with the proxy relationship is greater than zero.

No more than MaxPending announcements may be made at any one time.

This will take a deposit of AnnouncementDepositFactor as well as AnnouncementDepositBase if there are no other pending announcements.

The dispatch origin for this call must be Signed and a proxy of real.

Parameters:

remove_announcement - 7

remove_announcement(real, call_hash)

Taking 0.0182 % of a block.

real: AccountIdLookupOf<T>
call_hash: CallHashOf<T>

Remove a given announcement.

May be called by a proxy account to remove a call they previously announced and return the deposit.

The dispatch origin for this call must be Signed.

Parameters:

reject_announcement - 8

reject_announcement(delegate, call_hash)

Taking 0.0182 % of a block.

delegate: AccountIdLookupOf<T>
call_hash: CallHashOf<T>

Remove the given announcement of a delegate.

May be called by a target (proxied) account to remove a call that one of their delegates (delegate) has announced they want to execute. The deposit is returned.

The dispatch origin for this call must be Signed.

Parameters:

proxy_announced - 9

proxy_announced(delegate, real, force_proxy_type, call)

Taking 0.0198 % of a block.

delegate: AccountIdLookupOf<T>
real: AccountIdLookupOf<T>
force_proxy_type: Option<T::ProxyType>
call: Box<<T as Config>::RuntimeCall>

Dispatch the given call from an account that the sender is authorized for through add_proxy.

Removes any corresponding announcement(s).

The dispatch origin for this call must be Signed.

Parameters:

Utility - 54

batch - 0

batch(calls)

Taking 0.1076 % of a block.

calls: Vec<<T as Config>::RuntimeCall>

Send a batch of dispatch calls.

May be called from any origin except None.

If origin is root then the calls are dispatched without checking origin filter. (This includes bypassing frame_system::Config::BaseCallFilter).

Complexity

This will return Ok in all circumstances. To determine the success of the batch, an event is deposited. If a call failed and the batch was interrupted, then the BatchInterrupted event is deposited, along with the number of successful calls made and the error of the failed call. If all were successful, then the BatchCompleted event is deposited.

as_derivative - 1

as_derivative(index, call)

Taking 0.0046 % of a block.

index: u16
call: Box<<T as Config>::RuntimeCall>

Send a call through an indexed pseudonym of the sender.

Filter from origin are passed along. The call will be dispatched with an origin which use the same filter as the origin of this call.

NOTE: If you need to ensure that any account-based filtering is not honored (i.e. because you expect proxy to have been used prior in the call stack and you do not want the call restrictions to apply to any sub-accounts), then use as_multi_threshold_1 in the Multisig pallet instead.

NOTE: Prior to version *12, this was called as_limited_sub.

The dispatch origin for this call must be Signed.

batch_all - 2

batch_all(calls)

Taking 0.1148 % of a block.

calls: Vec<<T as Config>::RuntimeCall>

Send a batch of dispatch calls and atomically execute them. The whole transaction will rollback and fail if any of the calls failed.

May be called from any origin except None.

If origin is root then the calls are dispatched without checking origin filter. (This includes bypassing frame_system::Config::BaseCallFilter).

Complexity

force_batch - 4

force_batch(calls)

Taking 0.1074 % of a block.

calls: Vec<<T as Config>::RuntimeCall>

Send a batch of dispatch calls. Unlike batch, it allows errors and won't interrupt.

May be called from any origin except None.

If origin is root then the calls are dispatch without checking origin filter. (This includes bypassing frame_system::Config::BaseCallFilter).

Complexity

Treasury - 55

spend_local - 3

spend_local(amount, beneficiary)

Taking 0.0044 % of a block.

amount: BalanceOf<T, I>
beneficiary: AccountIdLookupOf<T>

Propose and approve a spend of treasury funds.

Dispatch Origin

Must be [Config::SpendOrigin] with the Success value being at least amount.

Details

NOTE: For record-keeping purposes, the proposer is deemed to be equivalent to the beneficiary.

Parameters
Events

Emits [Event::SpendApproved] if successful.

remove_approval - 4

remove_approval(proposal_id)

Taking 0.0056 % of a block.

proposal_id: ProposalIndex

Force a previously approved proposal to be removed from the approval queue.

Dispatch Origin

Must be [Config::RejectOrigin].

Details

The original deposit will no longer be returned.

Parameters
Complexity
Errors

spend - 5

spend(asset_kind, amount, beneficiary, valid_from)

Taking 0.0044 % of a block.

asset_kind: Box<T::AssetKind>
amount: AssetBalanceOf<T, I>
beneficiary: Box<BeneficiaryLookupOf<T, I>>
valid_from: Option<BlockNumberFor<T>>

Propose and approve a spend of treasury funds.

Dispatch Origin

Must be [Config::SpendOrigin] with the Success value being at least amount of asset_kind in the native asset. The amount of asset_kind is converted for assertion using the [Config::BalanceConverter].

Details

Create an approved spend for transferring a specific amount of asset_kind to a designated beneficiary. The spend must be claimed using the payout dispatchable within the [Config::PayoutPeriod].

Parameters
Events

Emits [Event::AssetSpendApproved] if successful.

payout - 6

payout(index)

Taking 0.0057 % of a block.

index: SpendIndex

Claim a spend.

Dispatch Origin

Must be signed

Details

Spends must be claimed within some temporal bounds. A spend may be claimed within one [Config::PayoutPeriod] from the valid_from block. In case of a payout failure, the spend status must be updated with the check_status dispatchable before retrying with the current function.

Parameters
Events

Emits [Event::Paid] if successful.

check_status - 7

check_status(index)

Taking 0.0057 % of a block.

index: SpendIndex

Check the status of the spend and remove it from the storage if processed.

Dispatch Origin

Must be signed.

Details

The status check is a prerequisite for retrying a failed payout. If a spend has either succeeded or expired, it is removed from the storage by this function. In such instances, transaction fees are refunded.

Parameters
Events

Emits [Event::PaymentFailed] if the spend payout has failed. Emits [Event::SpendProcessed] if the spend payout has succeed.

void_spend - 8

void_spend(index)

Taking 0.0056 % of a block.

index: SpendIndex

Void previously approved spend.

Dispatch Origin

Must be [Config::RejectOrigin].

Details

A spend void is only possible if the payout has not been attempted yet.

Parameters
Events

Emits [Event::AssetSpendVoided] if successful.