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)); }
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)); }