public async Task verify_account_authority() { var args = new VerifyAccountAuthorityArgs { Account = User.Login, Signers = new PublicKeyType[0] }; var resp = await Api.VerifyAccountAuthorityAsync(args, CancellationToken.None).ConfigureAwait(false); TestPropetries(resp); }
public void verify_account_authority() { var args = new VerifyAccountAuthorityArgs() { Account = User.Login, Signers = new PublicKeyType[0] }; var resp = Api.VerifyAccountAuthority(args, CancellationToken.None); WriteLine(resp); Assert.IsFalse(resp.IsError); var obj = Api.CustomGetRequest <JObject>(KnownApiNames.DatabaseApi, "verify_account_authority", args, CancellationToken.None); TestPropetries(resp.Result.GetType(), obj.Result); WriteLine("----------------------------------------------------------------------------"); WriteLine(obj); }
/// <summary> /// API name: verify_account_authority /// /// </summary> /// <param name="args">API type: verify_account_authority_args</param> /// <param name="token">Throws a <see cref="T:System.OperationCanceledException" /> if this token has had cancellation requested.</param> /// <returns>API type: verify_account_authority_return true if the signers have enough authority to authorize an account</returns> /// <exception cref="T:System.OperationCanceledException">The token has had cancellation requested.</exception> public Task <JsonRpcResponse <VerifyAccountAuthorityReturn> > VerifyAccountAuthority(VerifyAccountAuthorityArgs args, CancellationToken token) { return(CustomGetRequest <VerifyAccountAuthorityReturn>(KnownApiNames.DatabaseApi, "verify_account_authority", args, token)); }