Пример #1
0
        public async Task <KristName> RegisterName(string name)
        {
            if (PrivateKey == null)
            {
                throw new KristPrivateKeyMissingException();
            }
            var table = new Dictionary <string, string>();

            table["privatekey"] = PrivateKey;
            await KristUtils.POST <KResult>("names/" + name, table);

            return(await Krist.GetName(name));
        }
Пример #2
0
        public async Task <KristName> UpdateNameARecord(string name, string arecord)
        {
            if (PrivateKey == null)
            {
                throw new KristPrivateKeyMissingException();
            }
            var table = new Dictionary <string, string>();

            table["privatekey"] = PrivateKey;
            table["a"]          = arecord;
            await KristUtils.POST <KResult>("names/" + name + "/transfer", table);

            return(await Krist.GetName(name));
        }