Unit ID
VYGq/6iYoTDMLX9swmTi+4sBiHccR4KVVgXRFg87yww=
Received
28.03.2021 03:37:40
Confirmation delay (full node)
5 minutes 13 seconds
Confirmation delay (light node)
8 minutes 12 seconds
Messages
Payments
Data
method: BUY
NFT: CAtPxiw0j+K5rdr9wUkzVIgMYa3URN3mK6dnnUDHeWE=
AA responses
From PPRMD4VTAGO3FPSO3ESOLRLGRK57ZWP5
  • Bounced
  • Response: { "error": "formula if (NOT exists(trigger.data["NFT"])) bounce("NFT field is mandatory"); $NFT = $tokenInfo(trigger.data["NFT"]); //[we need $NFT.cap here] This already checks wether NFT exists $isAuction = $NFT.bid ? true : false; //It can only NOT be an auction if it is first sold and thus $NFT.bid does not exist response["NFT"] = json_stringify($NFT); response["isAuction"] = $isAuction; if ($isAuction) $hasBidders = $NFT.soldBy != $NFT.by;//Booleans cannot be compared response["hasBidders"] = $hasBidders; if (timestamp > $NFT.soldAt){ if ($isAuction){ if ($hasBidders) //You can still buy it if there were no bidders bounce("The auction is over"); } else bounce("The auction is already over"); } failed: booleans cannot be compared with other types" }
Technical information
Fees:
911 bytes
(452 headers, 459 payload)
Level:1939695
Witnessed level:1939688
Main chain index:1931730
Latest included mc index:1931729
Status:stable/confirmed/final