All chains
    Preparing search index...

    Type Alias approve_transfer

    approve_transfer: TxDescriptor<
        { amount: bigint; delegate: MultiAddress; id: number },
    >

    Approve an amount of asset for transfer by a delegated third-party account.

    Origin must be Signed.

    Ensures that ApprovalDeposit worth of Currency is reserved from signing account for the purpose of holding the approval. If some non-zero amount of assets is already approved from signing account to delegate, then it is topped up or unreserved to meet the right value.

    NOTE: The signing account does not need to own amount of assets at the point of making this call.

    • id: The identifier of the asset.
    • delegate: The account to delegate permission to transfer asset.
    • amount: The amount of asset that may be transferred by delegate. If there is already an approval in place, then this acts additively.

    Emits ApprovedTransfer on success.

    Weight: O(1)