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

# ウォレットIDの取得

> SolanaウォレットのオンチェーンID情報を解決し、ドメイン名やソーシャルプロファイルを含みます。

各リクエストには**100クレジット**がかかります。

有料プランが必要です。無料プランのリクエストでは`403 Forbidden`が返されます。

## リクエストパラメータ

<ParamField body="wallet" type="string" required default="GQUtvPx89ZNCwmvQqFmH59bJcU8fW8siETpaxod7Aydz">
  Solanaウォレットアドレス（base58エンコード）またはSNS/ANSドメイン名（例：`toly.sol`、
  `miester.bonk`）。ドメイン解決はメインネットのみです。非`.sol`ドメインは、ANSカスタムTLDとして扱われます — 固定TLDホワイトリストはありません。
</ParamField>


## OpenAPI

````yaml ja/openapi/wallet-api/openapi.yaml GET /v1/wallet/{wallet}/identity
openapi: 3.0.3
info:
  title: Wallet API
  description: |
    Solanaのウォレットデータ（残高、取引履歴、転送、ID情報）を照会するための高性能なREST APIです。

    ## 認証

    すべてのリクエストには、以下のいずれかとして渡されたAPIキーが必要です:
    - クエリパラメータ: `?api-key=YOUR_API_KEY`
    - ヘッダー: `X-Api-Key: YOUR_API_KEY`
  version: 1.0.0
  contact:
    name: API サポート
    url: https://helius.dev
servers:
  - url: https://api.helius.xyz
    description: プロダクションサーバー
security:
  - ApiKeyQuery: []
  - ApiKeyHeader: []
tags:
  - name: Identity
    description: ウォレットIDと既知のアドレスを検索
  - name: Balances
    description: トークンとNFTの残高を照会
  - name: History
    description: 取引履歴と残高の変動
  - name: Transfers
    description: トークン転送の活動
  - name: Funding
    description: ウォレットの資金に関する情報
paths:
  /v1/wallet/{wallet}/identity:
    get:
      tags:
        - Identity
      summary: ウォレットIDを取得
      description: >
        既知のウォレット（取引所、プロトコルなど）のID情報を取得します。

        SolanaウォレットアドレスまたはSNS (`.sol`) / ANSカスタムTLDドメイン名（例: `toly.sol`,
        `miester.bonk`）が受け付けられます。ドメイン解決はメインネットのみ対応しています。


        レスポンスは**解決されたアドレス**の標準的なIDオブジェクトです。このエンドポイントにはドメインマーカー（`inputDomain`）は付いていません。入力と出力を関連付ける必要がある場合は、`POST
        /v1/wallet/batch-identity` を使用してください。


        ウォレットにIDエントリがない場合、またはドメイン入力が解決できない場合は `404`
        を返します。入力が有効なアドレスでも有効なドメイン名でもない場合、またはドメイン入力が非メインネットデプロイメント上で送信される場合は
        `400` を返します。
      operationId: getWalletIdentity
      parameters:
        - $ref: '#/components/parameters/WalletOrDomain'
      responses:
        '200':
          description: ID情報が見つかりました
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Identity'
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          description: ID情報が利用できない、またはドメインを解決できませんでした
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          $ref: '#/components/responses/RateLimited'
        '500':
          $ref: '#/components/responses/InternalError'
components:
  parameters:
    WalletOrDomain:
      name: wallet
      in: path
      required: true
      description: >
        Solanaウォレットアドレス（base58エンコードされた）またはSNS/ANSドメイン名（例: `toly.sol`,
        `miester.bonk`）。ドメイン解決はメインネットのみです。任意の非`.sol`ドメインはANSカスタムTLDとみなされます —
        固定されたTLDホワイトリストはありません。
      schema:
        type: string
        default: GQUtvPx89ZNCwmvQqFmH59bJcU8fW8siETpaxod7Aydz
      examples:
        address:
          summary: Solana address
          value: GQUtvPx89ZNCwmvQqFmH59bJcU8fW8siETpaxod7Aydz
        snsDomain:
          summary: SNS (.sol) domain
          value: toly.sol
        ansDomain:
          summary: ANS custom TLD
          value: miester.bonk
  schemas:
    Identity:
      type: object
      properties:
        address:
          type: string
          description: Solanaウォレットアドレス
          example: HXsKP7wrBWaQ8T2Vtjry3Nj3oUgwYcqq9vrHDM12G664
        type:
          type: string
          description: エンティティのタイプ
          example: exchange
        name:
          type: string
          description: 表示名
          example: Binance 1
        category:
          type: string
          description: カテゴリ分類
          example: Centralized Exchange
        tags:
          type: array
          items:
            type: string
          description: 追加の分類タグ
          example:
            - Centralized Exchange
        domainNames:
          type: array
          items:
            type: string
          description: >-
            このアドレスが所有するすべてのオンチェーンドメイン名。SNS (.sol) およびANSカスタムTLD (.bonk, .wenなど)
            を含みます。設定されている場合、最初にお気に入りの.solドメインが表示され、残りのドメインはアルファベット順に並びます。ウォレットがドメインを所有していない場合は省略されます。
          example:
            - toly.sol
            - kash.superteam
      required:
        - address
        - type
        - name
        - category
        - tags
    Error:
      type: object
      properties:
        error:
          type: string
          description: エラーメッセージ
          example: Invalid wallet address
        code:
          type: integer
          description: HTTPステータスコード
          example: 400
        details:
          type: string
          description: 追加のエラー詳細
          example: '''invalid-address'' is not a valid Solana address'
      required:
        - error
        - code
  responses:
    BadRequest:
      description: 無効なリクエストパラメータ
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            error: Invalid wallet address
            code: 400
            details: '''invalid-address'' is not a valid Solana address'
    Unauthorized:
      description: APIキーが不足しているか無効です
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            error: API key required. Pass via ?api-key=xxx or X-Api-Key header
            code: 401
    RateLimited:
      description: レート制限が超過しました。
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            error: RATE_LIMIT_EXCEEDED
            code: 429
            details: Too many requests. Retry after 2 seconds.
    InternalError:
      description: 一時的なサーバーエラー。指数バックオフで再試行可能です。
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            error: INTERNAL_ERROR
            code: 500
            details: An unexpected error occurred. Please retry.
  securitySchemes:
    ApiKeyQuery:
      type: apiKey
      in: query
      name: api-key
      description: クエリパラメータとして渡されるAPIキー
    ApiKeyHeader:
      type: apiKey
      in: header
      name: X-Api-Key
      description: リクエストヘッダーで渡されるAPIキー

````