Messages
MultiSwapData
Message MultiSwapData is used to store data about the contract state.
offered_items: map of items that the contract offers to trade. The key isuint8- index of the item, the value isSwapItem- the item itself.requested_items: map of items that the contract wants to obtain. The key isuint8- index of the item, the value isSwapItem- the item itself.query_id:uint32- the query id.state:Int- current state of the contract.expiration_time_seconds:uint32- the time when the contract will expire.is_expired:Bool- whether the contract is expired.is_initiator:Bool- whether the contract is the initiator of the trade.
SwapItem
Struct SwapItem is used to store information about an item that is being traded.
type:uint3- type of the item. Can be0for NFT or1for Jetton.amount:coins- the amount of the item. For NFT always 1.address:Address- the address of the item. For NFT -address of specific NFT. For Jettonaddress of Jetton(not Jetton wallet!)
MultiSwapRouterData
Message MultiSwapRouterData is used to store parameters of the MultiSwapRouter contract.
max_items_per_side:uint8- maximum number of items of any type that can be traded. Defaults to 4.fixed_fee_in_ton:coins- fixed fee in Toncoin that is applied to both seller and buyer.swap_fee_basis_points:uint16- fee in basis points (1/100 of 1%) that is applied to both seller and buyer in swap tokens.swap_ttl_seconds:uint32- time-to-live for the swap in seconds.