Created
June 15, 2022 19:23
-
-
Save Kirbyrawr/31c892f7613a3ca81552493959287ea4 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var asset = new AssetTypeNative(); | |
var source = KeyPair.FromSecretSeed("Your source key"); | |
var claimant = new Claimant | |
{ | |
Destination = destination, | |
Predicate = ClaimPredicate.Not(ClaimPredicate.BeforeRelativeTime(new xdrSDK.Duration(new xdrSDK.Uint64((UInt64)TimeSpan.FromHours(7.0).TotalSeconds)))) | |
}; | |
var operation = new CreateClaimableBalanceOperation.Builder(asset, "123.45", new[] { claimant }) | |
.SetSourceAccount(source) | |
.Build(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment