> ## 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/getincomingviewingkey | TRON

> TRON API method that derives an incoming viewing key (ivk) from authentication key (ak) and nullifier key (nk) for shielded TRC20 transactions.

TRON API method that derives an incoming viewing key (ivk) from authentication key (ak) and nullifier key (nk) for shielded TRC20 transactions. The incoming viewing key is used to scan for incoming shielded payments.

## Parameters

* `ak` — authentication key as a 32‑byte (64‑hex) string, no `0x` prefix.
* `nk` — nullifier key as a 32‑byte (64‑hex) string, no `0x` prefix.

## Response

* `ivk` — the derived incoming viewing key in hexadecimal format

## Use case

The `wallet/getincomingviewingkey` method is used for:

* Generating keys needed to scan for incoming shielded payments
* Creating viewing keys that allow monitoring received transactions without spending authority
* Supporting wallet implementations that need to detect incoming shielded transfers
* Enabling privacy-preserving transaction monitoring

## curl example

```shell Shell theme={"system"}
curl --request POST \
  --url 'https://tron-mainnet.core.chainstack.com/95e61622bf6a8af293978377718e3b77/wallet/getincomingviewingkey' \
  --header 'Content-Type: application/json' \
  --data '{
    "ak": "03b2c3d4e5f67890123456789012345678901234567890123456789012345678",
    "nk": "04c3d4e5f6789012345678901234567890123456789012345678901234567890"
  }'
```

<Info>
  All keys must be exactly 64 hexadecimal characters without a `0x` prefix. Otherwise the node returns an error like: "param length must be 32".
</Info>


## OpenAPI

````yaml openapi/tron_node_api/shielded_getincomingviewingkey.json post /95e61622bf6a8af293978377718e3b77/wallet/getincomingviewingkey
openapi: 3.0.0
info:
  title: wallet/getincomingviewingkey TRON API
  version: 1.0.0
  description: Derive incoming viewing key from authentication and nullifier keys
servers:
  - url: https://tron-mainnet.core.chainstack.com
security: []
paths:
  /95e61622bf6a8af293978377718e3b77/wallet/getincomingviewingkey:
    post:
      tags:
        - Shielded Contract Methods
      summary: wallet/getincomingviewingkey
      operationId: getIncomingViewingKey
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - ak
                - nk
              properties:
                ak:
                  type: string
                  description: >-
                    Authentication key (ak) as a 32‑byte (64‑hex) string without
                    0x prefix.
                  pattern: ^[0-9a-fA-F]{64}$
                  example: >-
                    03b2c3d4e5f67890123456789012345678901234567890123456789012345678
                nk:
                  type: string
                  description: >-
                    Nullifier key (nk) as a 32‑byte (64‑hex) string without 0x
                    prefix.
                  pattern: ^[0-9a-fA-F]{64}$
                  example: >-
                    04c3d4e5f6789012345678901234567890123456789012345678901234567890
      responses:
        '200':
          description: Successfully derived incoming viewing key
          content:
            application/json:
              schema:
                type: object
                properties:
                  ivk:
                    type: string
                    description: >-
                      The derived incoming viewing key (ivk) in hexadecimal
                      format (no 0x prefix)
                    example: >-
                      05d4e5f6789012345678901234567890123456789012345678901234567890abcdef

````