Ejemplo n.º 1
0
 internal KristName(KName name)
 {
     Name       = name.name;
     Owner      = new KristAddress(name.owner);
     Registered = name.registered;
     Updated    = name.updated;
     ARecord    = name.a;
 }
Ejemplo n.º 2
0
 internal KristTransaction(KTransaction transaction)
 {
     ID       = transaction.id;
     From     = new KristAddress(transaction.from);
     To       = new KristAddress(transaction.to);
     Value    = transaction.value;
     Time     = transaction.time;
     Name     = transaction.name;
     MetaData = transaction.metadata;
 }
Ejemplo n.º 3
0
 internal KristBlock(KBlock block)
 {
     Height     = block.height;
     Address    = new KristAddress(block.address);
     Hash       = block.hash;
     ShortHash  = block.short_hash;
     Value      = block.value;
     Difficulty = block.difficulty;
     Time       = block.time;
 }
Ejemplo n.º 4
0
        public static async Task <KristAddress[]> GetRichestAddresses(int limit = 50, int offset = 0)
        {
            var result = await KristUtils.GET <KAddressesResult>("addresses/rich?limit=" + limit.ToString() + "&offset=" + offset.ToString());

            var addresses = new KristAddress[result.addresses.Length];

            for (int i = 0; i < result.addresses.Length; i++)
            {
                addresses[i] = new KristAddress(result.addresses[i]);
            }
            return(addresses);
        }