payment-processor
SP3WW7HZBWTXRQ14134RMJ7SH1Q83CVD9PVW5SSPWSource Code
;; Storage Payment Processor
(define-map storage-payments principal uint)
(define-public (pay-for-storage (amount uint))
(begin
(try! (stx-transfer? amount tx-sender (as-contract tx-sender)))
(map-set storage-payments tx-sender (+ (default-to u0 (map-get? storage-payments tx-sender)) amount))
(ok amount)
)
)
Functions (1)
| Function | Access | Args |
|---|---|---|
| pay-for-storage | public | amount: uint |