claim_swap: TxDescriptor<{
    receive_collection: number;
    receive_item: number;
    send_collection: number;
    send_item: number;
    witness_price?: {
        amount: bigint;
        direction: Enum<{
            Receive: undefined;
            Send: undefined;
        }>;
    };
}>

Claim an atomic swap. This method executes a pending swap, that was created by a counterpart before.

Origin must be Signed and must be an owner of the item.

  • send_collection: The collection of the item to be sent.
  • send_item: The item to be sent.
  • receive_collection: The collection of the item to be received.
  • receive_item: The item to be received.
  • witness_price: A price that was previously agreed on.

Emits SwapClaimed on success.