Convex

Convex

Transaction 1 / 1
FieldValueNotes
AddressOrigin address of transaction
Account Key
Identicon for a2b6992de5fd0f92c176054932c3340591c6f7e380fb70797fca06f540efa4de
0xa2b6992de5fd0f92...
Ed25519 public key of the signer
Transaction Hash
Identicon for 31e954b9667a42cb0175c4fe762360ab8f1cdcad9cfd77c0162796feac6c477d
0x31e954b9667a42cb...
Hash code of the transaction object
TypeInvokeType of transaction. Most common is 'Invoke' for general purpose execution.
Transaction Data{:origin #132,:sequence 1,:command (deploy (quote (do (def receipts {}) (def actor-version 1) (defn ^{:callable true} pay [payment-id merchant amount binding-hash] (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") (not (blob? binding-hash)) (fail :CAST "binding-hash must be a blob") (not (= 32 (count binding-hash))) (fail :ARGUMENT "binding-hash must be 32 bytes") (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*,:binding-hash binding-hash,: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 Size2347Bytes consumed by transaction data
Transaction Result
FieldValueNotes
StatusSUCCESSTransaction executed successfully
Return Value#133Value returned by transaction
Juice Used37595Computational cost in juice units
Fees Paid
            0.004181025
Transaction fees paid in Convex Coins
Memory Used1898Memory allocated/deallocated (bytes)
Log Entries (0)

No log entries were generated during transaction execution