All chains
    Preparing search index...
    close_bounty: TxDescriptor<
        { child_bounty_id?: number; parent_bounty_id: number },
    >

    Cancel an active child-/bounty. A payment to send all the funds to the funding source is initialized.

    This function can only be called by the RejectOrigin or the parent bounty curator.

    • If the child-/bounty is in the Funded state, a refund payment is initiated.
    • If the child-/bounty is in the Active state, a refund payment is initiated and the child-/bounty status is updated with the curator account/location.
    • If the child-/bounty is in the funding or payout phase, it cannot be canceled.
    • In case of a refund failure, the child-/bounty status must be updated with the check_status call before retrying with retry_payment call.
    • parent_bounty_id: Index of parent bounty.
    • child_bounty_id: Index of child-bounty.

    Emits [Event::BountyCanceled] and [Event::Paid] if successful.