Convex

Convex

Transaction 1 / 1
FieldValueNotes
AddressOrigin address of transaction
Account Key
Identicon for 5abb7143b3a48328300f99c5e0e711f829ce4bba8be328a40de2e410b2496d38
0x5abb7143b3a48328...
Ed25519 public key of the signer
Transaction Hash
Identicon for cd8e198a168573a8088d3c972fc64cd6ed0916ca4d436305f49dd350933b37a4
0xcd8e198a168573a8...
Hash code of the transaction object
TypeInvokeType of transaction. Most common is 'Invoke' for general purpose execution.
Transaction Data{:origin #135,:sequence 18,:command (call tipper 0 (upgrade (quote (defn ^{:callable true} tip! [tip] (let [recipient (:recipient tip) artifact (:artifact tip) finalized? (get-in tips [artifact :finalized?])] (cond (not artifact) (fail :ARGUMENT "Arg map must contain :artifact") finalized? (fail :STATE "This tip has been finalized") (= *caller* owner) (fail :TRUST (str *caller* " not authorised to tip on behalf of " owner " (*address*: " *address* ")")) :else (let [amount (or (get-in tips [artifact :amount]) *offer*) recipient (or recipient (:recipient (tips artifact))) tip (assoc tip :amount amount)] (when recipient (def tips (assoc-in tips [artifact :recipient] recipient))) (if (not (> amount 0)) (fail :FUNDS "No tip offered!") (do (accept amount) (def tips (assoc-in tips [artifact :amount] amount)) (return "Thanks for the tip!") (when (and recipient artifact) (finalize! tip)))))))))))}CVX representation of the transaction
Storage Size1580Bytes consumed by transaction data
Transaction Result
FieldValueNotes
StatusSUCCESSTransaction executed successfully
Return Value(fn [tip] (let [recipient (:recipient %0) artifact (:artifact %0) finalized? (get-in #140/tips (vector %2 :finalized?)) ] (cond (not %2) (fail :ARGUMENT "Arg map must contain :artifact") %3 (fail :STATE "This tip has been finalized") (= *caller* #140/owner) (fail :TRUST (str *caller* " not authorised to tip on behalf of " #140/owner " (*address*: " *address* ")")) :else (let [amount (cond (get-in #140/tips (vector %2 :amount)) *result* *offer*) recipient (cond %1 *result* (:recipient (#140/tips %2))) tip (assoc %0 :amount %4) ] (cond %5 (def tips (assoc-in #140/tips (vector %2 :recipient) %5)) nil) (cond (not (> %4 0)) (fail :FUNDS "No tip offered!") (do (accept %4) (def tips (assoc-in #140/tips (vector %2 :amount) %4)) (return "Thanks for the tip!") (cond (cond %5 %2 *result*) (#140/finalize! %6) nil)))))))Value returned by transaction
Juice Used46995Computational cost in juice units
Fees Paid
            0.004299365
Transaction fees paid in Convex Coins
Memory Used27Memory allocated/deallocated (bytes)
Log Entries (0)

No log entries were generated during transaction execution