Register a new atomic swap, declaring an intention to send an item in exchange for
desired_item from origin to target on the current blockchain.
The target can execute the swap during the specified duration of blocks (if set).
Additionally, the price could be set for the desired item.
Origin must be Signed and must be an owner of the item.
collection: The collection of the item.
item: The item an owner wants to give.
desired_collection: The collection of the desired item.
desired_item: The desired item an owner wants to receive.
maybe_price: The price an owner is willing to pay or receive for the desired item.
duration: A deadline for the swap. Specified by providing the number of blocks
after which the swap will expire.
Register a new atomic swap, declaring an intention to send an
item
in exchange fordesired_item
from origin to target on the current blockchain. The target can execute the swap during the specifiedduration
of blocks (if set). Additionally, the price could be set for the desireditem
.Origin must be Signed and must be an owner of the
item
.collection
: The collection of the item.item
: The item an owner wants to give.desired_collection
: The collection of the desired item.desired_item
: The desired item an owner wants to receive.maybe_price
: The price an owner is willing to pay or receive for the desireditem
.duration
: A deadline for the swap. Specified by providing the number of blocks after which the swap will expire.Emits
SwapCreated
on success.