getPrivateKey method

Future<TGetPrivateKeyResponse> getPrivateKey({
  1. required TGetPrivateKeyBody input,
})

Get details about a private key.

Sign the provided TGetPrivateKeyBody with the client's stamp function and submit the request (POST /public/v1/query/get_private_key).

See also: stampGetPrivateKey.

Implementation

Future<TGetPrivateKeyResponse> getPrivateKey({
  required TGetPrivateKeyBody input,
}) async {
  return await request<TGetPrivateKeyBody, TGetPrivateKeyResponse>(
      "/public/v1/query/get_private_key",
      input,
      (json) => TGetPrivateKeyResponse.fromJson(json));
}