Skip to content

Instantly share code, notes, and snippets.

@Kirbyrawr
Created June 15, 2022 19:23
Show Gist options
  • Save Kirbyrawr/31c892f7613a3ca81552493959287ea4 to your computer and use it in GitHub Desktop.
Save Kirbyrawr/31c892f7613a3ca81552493959287ea4 to your computer and use it in GitHub Desktop.
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