Skip to content

Instantly share code, notes, and snippets.

View Kirbyrawr's full-sized avatar
🐾
(◕ᴥ◕ʋ)

Kirbyrawr Kirbyrawr

🐾
(◕ᴥ◕ʋ)
View GitHub Profile
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 })
@Kirbyrawr
Kirbyrawr / Demo.cs
Created April 30, 2022 13:16
Get All Assets using Stellar .NET SDK
private static async Task GetAllAssets()
{
Server server = new Server("https://horizon.stellar.org");
Page<AssetResponse> page = await server.Assets.Limit(200).Execute();
while (page != null)
{
Console.WriteLine("-- Listing all Assets on the Network --");
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEditor;
public class EditorStyleViewer : EditorWindow
{
Vector2 scrollPosition = new Vector2(0, 0);
string search = "";

Keybase proof

I hereby claim:

  • I am kirbyrawr on github.
  • I am kirbyrawr (https://keybase.io/kirbyrawr) on keybase.
  • I have a public key ASAEaYz8ttp6-V1Dpp10yF_CLL10CbGXaDwImuTBspdNLQo

To claim this, I am signing this object: