Account #14335
| Field | Value | Notes |
|---|---|---|
| Account Key | null | Ed25519 public key (null for actors) |
| Balance | | Convex coin balance |
| Field | Value | Notes |
|---|---|---|
| Account Key | null | Ed25519 public key (null for actors) |
| Balance | | Convex coin balance |
| Field | Value | Description |
|---|---|---|
:sequence | 0 | Number of transactions executed by this account to date. |
:key | nil | Ed25519 public key of this account. If nil, account cannot execute external transactions (e.g. an actor). |
:balance | | CVM balance of account. This is used for transaction fees and may be freely transferred. |
:allowance | 0 | Memory allowance credit on the CVM. If positive, the account may allocated up to this amount of memory before incurring fees for additional memory. |
:holdings | 0 value(s) | Storage for holdings data referenced by other accounts. |
:controller | nil | Account controller. If set, the controller can execute code in this account (e.g. change the key). If you don't trust the controller, don't trust the account! |
:environment | 14 value(s) | Symbols defined in this account. Typically used to store data or executable code. |
:metadata | 10 value(s) | Metadata attached to symbols defined in this account. |
:parent | nil | Parent account. This defines fallback values for symbols not defined in this account. |
The Environment contains symbols defined in this account. These may be referenced like: #45/symbol-name
| Symbol | Value | Description |
|---|---|---|
get-operator | (fn [] #14335/operator) | nil |
update-cert | (fn [id new-metadata-hash new-title] (do (#14335/require-operator) (let [cert (get #14335/registry %0) ] (cond (nil? %3) (fail :NOT-FOUND "Certificate does not exist") nil) (let [updated (assoc %3 :metadata-hash %1 :title %2 :updated-at *timestamp*) ] (cond (lookup-meta *address* registry) (def registry (assoc #14335/registry %0 %4)) (fail :UNDECLARED registry)) %4)))) | nil |
owned-by | (fn [user-id] (cond (get #14335/ownership %0) *result* #{})) | nil |
init-next-id | (fn [start-id] (do (#14335/require-operator) (cond (lookup-meta *address* next-id) (def next-id %0) (fail :UNDECLARED next-id)) %0)) | nil |
next-id | 49 | nil |
ownership | {"cmpd2xqy3000rr21tmnbiw01v" #{43,44,48,47,46,41,42,45}} | nil |
total-issued | (fn [] (dec #14335/next-id)) | nil |
lookup | (fn [id] (get #14335/registry %0)) | nil |
transfer-cert | (fn [id new-user-id] (do (#14335/require-operator) (let [cert (get #14335/registry %0) ] (cond (nil? %2) (fail :NOT-FOUND "Certificate does not exist") nil) (let [old-user (get %2 :user-id) updated (assoc %2 :user-id %1) ] (cond (lookup-meta *address* registry) (def registry (assoc #14335/registry %0 %4)) (fail :UNDECLARED registry)) (cond (lookup-meta *address* ownership) (def ownership (assoc #14335/ownership %3 (disj (get #14335/ownership %3) %0))) (fail :UNDECLARED ownership)) (cond (lookup-meta *address* ownership) (def ownership (assoc #14335/ownership %1 (conj (cond (get #14335/ownership %1) *result* #{}) %0))) (fail :UNDECLARED ownership)) %4)))) | nil |
set-operator | (fn [new-operator] (do (cond (not (= *caller* #14335/operator)) (fail :UNAUTHORIZED "Only governance can change the operator") nil) (cond (lookup-meta *address* operator) (def operator %0) (fail :UNDECLARED operator)) %0)) | nil |
registry | {43 {:timestamp 1779223195860,:user-id "cmpd2xqy3000rr21tmnbiw01v",:registered-by #14305,:metadata-hash "b5cb86549311da80232f45edc39f03e5725b752d1fc6644182acdf176e867813",:title "--Hidden-shame-",:id 43},44 {:timestamp 1779223292644,:user-id "cmpd2xqy3000rr21tmnbiw01v",:registered-by #14305,:metadata-hash "48a2aaea9543b9653048be0e94025eec39f517be8d2b53e3ff1444a210171943",:title "-Never-looked-up-- 1",:id 44},48 {:timestamp 1779223817754,:user-id "cmpd2xqy3000rr21tmnbiw01v",:registered-by #14305,:metadata-hash "5548b30064f874f1354aac0d030f6f9111328b6901c4a84fe02b69dd2d018d14",:title "-There-I-ll-be-",:id 48},47 {:timestamp 1779223741455,:user-id "cmpd2xqy3000rr21tmnbiw01v",:registered-by #14305,:metadata-hash "c81eca6e349c9ee190a75692287ae67e2dcdc431ffd6fff0daabd3735f1be65a",:title "-Deny-myself-",:id 47},46 {:timestamp 1779223651055,:user-id "cmpd2xqy3000rr21tmnbiw01v",:registered-by #14305,:metadata-hash "8b8ceed75bade6daf7261605d3d3c1a4d18da262a75d83c350727282c65969d9",:title "-He-loves-us--",:id 46},41 {:timestamp 1779222702483,:user-id "cmpd2xqy3000rr21tmnbiw01v",:registered-by #14305,:metadata-hash "08716f96ce6cb9504b2a2a79c337fe9e3fdc2fb314203b63ab674fe721199592",:title "Keep my fire lit",:id 41},42 {:timestamp 1779223027594,:user-id "cmpd2xqy3000rr21tmnbiw01v",:registered-by #14305,:metadata-hash "47668abcfbff200b45d7242080f0f971f0c7d2589dfbe81182eca99fb135d51d",:title "I--Make-me-better---Lord-----I-m-such-a-d 1",:id 42},45 {:timestamp 1779223469377,:user-id "cmpd2xqy3000rr21tmnbiw01v",:registered-by #14305,:metadata-hash "0c1cedf1ba8b36554620556f1d8da95c82846960bc23c53821900bc270e012b0",:title "-His-Grace--",:id 45}} | nil |
register | (fn [user-id metadata-hash title-hint] (do (#14335/require-operator) (let [id #14335/next-id cert (hash-map :timestamp *timestamp* :user-id %0 :registered-by *caller* :metadata-hash %1 :title %2 :id %3) ] (cond (lookup-meta *address* next-id) (def next-id (inc %3)) (fail :UNDECLARED next-id)) (cond (lookup-meta *address* registry) (def registry (assoc #14335/registry %3 %4)) (fail :UNDECLARED registry)) (cond (lookup-meta *address* ownership) (def ownership (assoc #14335/ownership %0 (conj (cond (get #14335/ownership %0) *result* #{}) %3))) (fail :UNDECLARED ownership)) %4))) | nil |
require-operator | (fn [] (cond (not (= *caller* #14335/operator)) (fail :UNAUTHORIZED "Only the operator can perform this action") nil)) | nil |
operator | #14305 | nil |
Holdings track token balances and other indexed values by address.
| Address | Value |
|---|