1.4.1 • Published 5 months ago

@stellar-expert/claimable-balance-utils v1.4.1

Weekly downloads
-
License
MIT
Repository
github
Last release
5 months ago

@stellar-expert/claimable-balance-utils

Utilities for Stellar claimable balances

Usage


getClaimableBalanceClaimStatus(claimant, pointInTime)

Detects the status of a claimable balance at any given point in time based on claim conditions.

  • claimant {Claimant} - Claimant condition with destination and predicate
  • pointInTime {String|Date} - Specific point in time (now by default)

Returns of 'available'|'pending'|'expired'|'unfeasible'


xdrParseClaimant(claimant)

Parses claimable balance condition and return formatted human-friendly predicate.

  • claimant {Claimant} - Claimant condition with destination and predicate

Returns {{predicate: String, destination: String}}

1.4.1

5 months ago

1.4.0

5 months ago