Source Code
;; Simple Wallet Transfer Contract
;; Transfer STX to another wallet
(define-public (transfer-stx (amount uint) (recipient principal))
(stx-transfer? amount tx-sender recipient)
)
;; Get wallet balance
(define-read-only (get-balance (wallet principal))
(stx-get-balance wallet)
)Functions (2)
| Function | Access | Args |
|---|---|---|
| transfer-stx | public | amount: uint, recipient: principal |
| get-balance | read-only | wallet: principal |