wooden-maroon-mackerel
SP3EWE151DHDTV7CP5D7N2YYESA3VEH3TBPNTT4EVSource Code
(define-non-fungible-token clarity-nft uint)
(define-public (mint (id uint) (recipient principal))
(ok (nft-mint? clarity-nft id recipient))
)
(define-public (transfer (id uint) (sender principal) (recipient principal))
(begin
(asserts! (is-eq tx-sender sender) (err u403))
(ok (nft-transfer? clarity-nft id sender recipient))
)
)
(define-read-only (get-owner (id uint))
(nft-get-owner? clarity-nft id)
)Functions (3)
| Function | Access | Args |
|---|---|---|
| mint | public | id: uint, recipient: principal |
| transfer | public | id: uint, sender: principal, recipient: principal |
| get-owner | read-only | id: uint |