block-info-sbtc
SP4SZE494VC2YC5JYG7AYFQ44F5Q4PYV7DVMDPBGSource Code
;; @contract Block Info
;; @version 2
;;
;; Contract to get info at given block
;;-------------------------------------
;; User Info
;;-------------------------------------
(define-read-only (get-ststxbtc-balance-at-block (holder principal) (position principal) (block uint))
(let (
(block-hash (unwrap-panic (get-block-info? id-header-hash block)))
)
(at-block block-hash (get amount (contract-call? .ststxbtc-tracking-data get-holder-position holder position)))
)
)
Functions (1)
| Function | Access | Args |
|---|---|---|
| get-ststxbtc-balance-at-block | read-only | holder: principal, position: principal, block: uint |