property-registry
SP3WW7HZBWTXRQ14134RMJ7SH1Q83CVD9PVW5SSPWSource Code
;; Property Registry
(define-data-var next-property-id uint u1)
(define-map properties uint { owner: principal, value: uint, location: (string-ascii 64) })
(define-public (register-property (value uint) (location (string-ascii 64)))
(let ((property-id (var-get next-property-id)))
(map-set properties property-id { owner: tx-sender, value: value, location: location })
(var-set next-property-id (+ property-id u1))
(ok property-id)
)
)
Functions (1)
| Function | Access | Args |
|---|---|---|
| register-property | public | value: uint, location: (string-ascii 64 |