Convex

Convex

Transaction 1 / 1
FieldValueNotes
AddressOrigin address of transaction
Account Key
Identicon for dc673b25fef8733133ab4bb09982c271e744e1eedda1576da31ea73486d17667
0xdc673b25fef87331...
Ed25519 public key of the signer
Transaction Hash
Identicon for 0a3b561fd4d42722925d40adce1dd2218faa00d2f9ff641530eea588a4b3fc1f
0x0a3b561fd4d42722...
Hash code of the transaction object
TypeInvokeType of transaction. Most common is 'Invoke' for general purpose execution.
Transaction Data{:origin #133,:sequence 1,:command (deploy (quote (do (def receipts {}) (def actor-version 2) (defn ^{:callable true} pay [payment-id merchant amount] (cond (not (blob? payment-id)) (fail :CAST "payment-id must be a blob") (not (= 32 (count payment-id))) (fail :ARGUMENT "payment-id must be 32 bytes") (not (address? merchant)) (fail :CAST "merchant must be an address") (nil? (account merchant)) (fail :NOBODY "merchant account does not exist") (= merchant *caller*) (fail :ARGUMENT "buyer and merchant must differ") (= merchant *address*) (fail :ARGUMENT "merchant cannot be the payment actor") (not (long? amount)) (fail :CAST "amount must be a long") (<= amount 0) (fail :ARGUMENT "amount must be positive") (get receipts payment-id) (fail :STATE "payment-id already accepted") (not (= *offer* amount)) (fail :ARGUMENT "offer must exactly equal amount") :else (let [receipt {:actor *address*,:payment-id payment-id,:version actor-version,:recorded-at *timestamp*,:buyer *caller*,:merchant merchant,:amount amount}] (accept amount) (transfer merchant amount) (set! receipts (assoc receipts payment-id receipt)) receipt))) (defn ^{:callable true} get-receipt [payment-id] (cond (not (blob? payment-id)) (fail :CAST "payment-id must be a blob") (not (= 32 (count payment-id))) (fail :ARGUMENT "payment-id must be 32 bytes") :else (get receipts payment-id))))))}CVX representation of the transaction
Storage Size2146Bytes consumed by transaction data
Transaction Result
FieldValueNotes
StatusSUCCESSTransaction executed successfully
Return Value#134Value returned by transaction
Juice Used34055Computational cost in juice units
Fees Paid
            0.003618960
Transaction fees paid in Convex Coins
Memory Used1724Memory allocated/deallocated (bytes)
Log Entries (0)

No log entries were generated during transaction execution