> ## Documentation Index
> Fetch the complete documentation index at: https://docs.chainstack.com/llms.txt
> Use this file to discover all available pages before exploring further.

# wallet/getakfromask | TRON

> TRON API method that derives an authentication key (ak) from an authentication secret key (ask) for shielded TRC20 transactions. On TRON.

TRON API method that derives an authentication key (ak) from an authentication secret key (ask) for shielded TRC20 transactions. This is part of the key derivation process in the shielded transaction protocol.

## Parameters

* `value` — authentication secret key (ask) as a 32‑byte (64‑hex) string, no `0x` prefix.

## Response

* `value` — the derived authentication key (ak) in hexadecimal format

## Use case

The `wallet/getakfromask` method is used for:

* Deriving authentication keys needed for shielded transaction verification
* Converting secret keys to public key components in the shielded protocol
* Supporting cryptographic operations in privacy-preserving transactions
* Enabling wallet implementations of shielded TRC20 functionality

## curl example

```shell Shell theme={"system"}
curl --request POST \
  --url 'https://tron-mainnet.core.chainstack.com/95e61622bf6a8af293978377718e3b77/wallet/getakfromask' \
  --header 'Content-Type: application/json' \
  --data '{
    "value": "0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef"
  }'
```

<Info>
  Ensure `value` is exactly 64 hexadecimal characters without a `0x` prefix. Using the wrong length or including `0x` will cause a validation error.
</Info>


## OpenAPI

````yaml openapi/tron_node_api/shielded_getakfromask.json post /95e61622bf6a8af293978377718e3b77/wallet/getakfromask
openapi: 3.0.0
info:
  title: wallet/getakfromask TRON API
  version: 1.0.0
  description: >-
    Derive authentication key from authentication secret key for shielded
    transactions
servers:
  - url: https://tron-mainnet.core.chainstack.com
security: []
paths:
  /95e61622bf6a8af293978377718e3b77/wallet/getakfromask:
    post:
      tags:
        - Shielded Contract Methods
      summary: wallet/getakfromask
      operationId: getAkFromAsk
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - value
              properties:
                value:
                  type: string
                  description: >-
                    Authentication secret key (ask) as a 32‑byte (64‑hex) string
                    without 0x prefix.
                  pattern: ^[0-9a-fA-F]{64}$
                  example: >-
                    0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef
      responses:
        '200':
          description: Successfully derived authentication key
          content:
            application/json:
              schema:
                type: object
                properties:
                  value:
                    type: string
                    description: >-
                      The derived authentication key (ak) in hexadecimal format
                      (no 0x prefix)
                    example: >-
                      03b2c3d4e5f6789012345678901234567890123456789abcdef0123456789abcd

````