user-profile
SP31AT1T96E4CF8C2QZ7FCFC99WJCTV2GTTWB811CSource Code
(define-map profiles principal {handle: (string-ascii 20), bio: (string-utf8 100)})
(define-public (set-profile (handle (string-ascii 20)) (bio (string-utf8 100)))
(begin
(map-set profiles tx-sender {handle: handle, bio: bio})
(ok true)
)
)
(define-read-only (get-profile (user principal))
(ok (map-get? profiles user))
)
Functions (2)
| Function | Access | Args |
|---|---|---|
| set-profile | public | handle: (string-ascii 20 |
| get-profile | read-only | user: principal |