Convex

Convex

Transaction 1 / 1
FieldValueNotes
AddressOrigin address of transaction
Account Key
Identicon for 89b5142678bfef7a2245af5ae5b9ab1e10c282b375fa297c5aaeccc48ac97cac
0x89b5142678bfef7a...
Ed25519 public key of the signer
Transaction Hash
Identicon for 518b49d563db150451000f0bcb251498341b8aa607145109ad812a42c9fa8a27
0x518b49d563db1504...
Hash code of the transaction object
TypeInvokeType of transaction. Most common is 'Invoke' for general purpose execution.
Transaction Data{:origin #50,:sequence 3,:command (eval-as #50 (quote (do (import convex.trust :as trust) (def allocator *caller*) (def distributor *caller*) (declare available-coins) (def available-coins 0) (defn ^{:callable true} set-available [amount] (if (not ((lookup trust trusted?) allocator *caller* :set-available amount)) (fail :TRUST "Not authorised as allocator")) (if (< amount 0) (fail :ARGUMENT "Negative amount!")) (set! available-coins (int amount))) (defn ^{:callable true} distribute [receiver amount] (if (not (int? amount)) (fail :ARGUMENT "amount must be an integer")) (if (not ((lookup trust trusted?) distributor *caller* :distribute amount)) (fail :TRUST "Not authorised to distribute")) (if (> amount available-coins) (fail :FUNDS "Insufficient available coins")) (do (set! available-coins (- available-coins amount)) (transfer receiver amount))) (defn ^{:callable true} receive-coin [_ _ _] (accept *offer*)) (defn ^{:callable true} withdraw [amount] (if (not ((lookup trust trusted?) allocator *caller* :withdraw amount)) (fail :TRUST "Not authorised to withdraw")) (transfer *caller* amount)))))}CVX representation of the transaction
Storage Size1694Bytes consumed by transaction data
Transaction Result
FieldValueNotes
StatusSUCCESSTransaction executed successfully
Return Value(fn [amount] (do (cond (not (#50/trust/trusted? #50/allocator *caller* :withdraw %0)) (fail :TRUST "Not authorised to withdraw")) (transfer *caller* %0)))Value returned by transaction
Juice Used49967Computational cost in juice units
Fees Paid
            0.000811270
Transaction fees paid in Convex Coins
Memory Used1344Memory allocated/deallocated (bytes)
Log Entries (0)

No log entries were generated during transaction execution