basePath: /
definitions:
  model.Asset:
    properties:
      asset_id:
        description: asset id of the token, unique in the ON1ON Custody
        type: integer
      chain:
        description: chain name, e.g. "CHAIN_ETHEREUM"
        type: string
      contract:
        description: contract address, e.g. "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2"
        type: string
      contract_standard:
        description: contract_standard, NATIVE, ERC-20
        type: string
      icon:
        description: icon URL of the token
        type: string
      name:
        description: name of the token
        type: string
      properties:
        additionalProperties:
          type: string
        description: |-
          for NFT: PropertyNameTokenId
          for Asset: PropertyNamePriceUsd
        type: object
      symbol:
        description: symbol of the token
        type: string
    type: object
  rpc.AssetRequest:
    properties:
      asset_id:
        description: number id. Can be got from nft_list or token_list api
        type: integer
      chain:
        description: CHAIN_BITCOIN, CHAIN_BITCOIN_TESTNET, CHAIN_ETHEREUM, CHAIN_ETHEREUM_GOERLI,
          CHAIN_BSC, CHAIN_BSC_TESTNET, CHAIN_POLYGON, CHAIN_SOLANA, CHAIN_AVALANCHE_C,
          CHAIN_TRON, CHAIN_LITECOIN, CHAIN_DOGECOIN
        type: string
      contract:
        description: CheCKeD Contract address
        type: string
      token_id:
        description: Only applied to NFT. NFT TokenId
        type: string
    type: object
  rpc.BasicUser:
    properties:
      email:
        type: string
      id:
        type: string
      name:
        type: string
      reference_id:
        type: string
    type: object
  rpc.ClientAssetBalanceVo:
    properties:
      asset:
        allOf:
        - $ref: '#/definitions/model.Asset'
        description: Asset info
      estimate_value_usd:
        description: Estimate value in USD
        type: string
      frozen_balance:
        description: Frozen balance, not available for use
        type: string
      total_balance:
        description: Total balance of this wallet
        type: string
      update_time:
        description: Last update time
        type: integer
      usable_balance:
        description: Usable balance, available for use
        type: string
    type: object
  rpc.ClientChannelGroupSimpleVo:
    properties:
      group_id:
        description: Group unique id (key)
        type: string
      is_default:
        description: Is this group default group
        type: boolean
      name:
        description: Group name
        type: string
      note:
        description: Note for this group
        type: string
    type: object
  rpc.ClientCreateTransferRequest:
    properties:
      amount:
        description: Amount to transfer. To transfer 1.3 ETH, amount should be 1.3
        type: string
      asset_id:
        description: number id. Can be got from nft_list or token_list api
        type: integer
      chain:
        description: CHAIN_BITCOIN, CHAIN_BITCOIN_TESTNET, CHAIN_ETHEREUM, CHAIN_ETHEREUM_GOERLI,
          CHAIN_BSC, CHAIN_BSC_TESTNET, CHAIN_POLYGON, CHAIN_SOLANA, CHAIN_AVALANCHE_C,
          CHAIN_TRON, CHAIN_LITECOIN, CHAIN_DOGECOIN
        type: string
      contract:
        description: CheCKeD Contract address
        type: string
      from_wallet_id:
        description: Wallet to transfer from
        type: string
      reference_id:
        description: Reference id for this request in tenant's system. Max length
          is 255
        type: string
      remark:
        description: Remark for this request. Max length is 255
        type: string
      to_wallet_id:
        description: Wallet to transfer to
        type: string
      token_id:
        description: Only applied to NFT. NFT TokenId
        type: string
    type: object
  rpc.ClientCreateTransferResponse:
    properties:
      reference_id:
        type: string
      request_id:
        type: string
      transaction_id:
        type: string
    type: object
  rpc.ClientCreateWithdrawRequest:
    properties:
      amount:
        description: Amount to withdraw. To withdraw 1.3 ETH, amount should be 1.3
        type: string
      asset_id:
        description: number id. Can be got from nft_list or token_list api
        type: integer
      chain:
        description: CHAIN_BITCOIN, CHAIN_BITCOIN_TESTNET, CHAIN_ETHEREUM, CHAIN_ETHEREUM_GOERLI,
          CHAIN_BSC, CHAIN_BSC_TESTNET, CHAIN_POLYGON, CHAIN_SOLANA, CHAIN_AVALANCHE_C,
          CHAIN_TRON, CHAIN_LITECOIN, CHAIN_DOGECOIN
        type: string
      contract:
        description: CheCKeD Contract address
        type: string
      from_wallet_id:
        description: Wallet to withdraw from
        type: string
      reference_id:
        description: Reference id for this transaction in tenant's system. Max length
          is 255
        type: string
      remark:
        description: Remark for this transaction. Max length is 255
        type: string
      to_address:
        description: Address to withdraw to.
        type: string
      token_id:
        description: Only applied to NFT. NFT TokenId
        type: string
    type: object
  rpc.ClientCreateWithdrawResponse:
    properties:
      reference_id:
        type: string
      request_id:
        type: string
      transaction_id:
        type: string
    type: object
  rpc.ClientManageUserRequest:
    properties:
      action:
        description: create, update
        type: string
      user:
        $ref: '#/definitions/rpc.BasicUser'
    type: object
  rpc.ClientQueryChannelRequestListRequest:
    properties:
      asset_list:
        description: must provide either asset_id or [chain,contract,token_id]
        items:
          $ref: '#/definitions/rpc.AssetRequest'
        type: array
      limit:
        description: Default to 10
        type: integer
      need_total:
        description: Default to false
        type: boolean
      offset:
        description: Default to 0
        type: integer
      order_by:
        description: DB column name. Empty string means no sorting. e.g. "id, created_at"
        type: string
      order_direction:
        description: ASC or DESC
        type: string
      request_types:
        description: '"WITHDRAW", "DEPOSIT", “TRANSFER”, blank for all'
        items:
          type: string
        type: array
      status:
        description: '"PENDING", "APPROVED", "REJECTED"'
        type: string
    type: object
  rpc.ClientQueryNftBalanceListRequest:
    properties:
      asset_list:
        description: must provide either asset_id or [chain,contract,token_id]
        items:
          $ref: '#/definitions/rpc.AssetRequest'
        type: array
    type: object
  rpc.ClientQueryTokenBalanceListRequest:
    properties:
      asset_list:
        description: must provide either asset_id or [chain,contract,token_id]
        items:
          $ref: '#/definitions/rpc.AssetRequest'
        type: array
      include_zero:
        description: 'true: include zero balance, false: exclude zero balance'
        type: boolean
    type: object
  rpc.ClientQueryTransactionListRequest:
    properties:
      asset_list:
        description: must provide either asset_id or [chain,contract,token_id]
        items:
          $ref: '#/definitions/rpc.AssetRequest'
        type: array
      end_timestamp:
        description: second
        type: integer
      is_nft:
        description: only works if asset_list is empty
        type: boolean
      limit:
        description: Default to 10
        type: integer
      need_total:
        description: Default to false
        type: boolean
      offset:
        description: Default to 0
        type: integer
      order_by:
        description: DB column name. Empty string means no sorting. e.g. "id, created_at"
        type: string
      order_direction:
        description: ASC or DESC
        type: string
      start_timestamp:
        description: second
        type: integer
      tx_status:
        description: TX_STATUS_* strings, empty means all.
        items:
          type: string
        type: array
      tx_types:
        description: TX_TYPES_* strings, empty means all.
        items:
          type: string
        type: array
    type: object
  rpc.ClientQueryTransactionRequest:
    properties:
      reference_id:
        description: at least one id should be provided
        type: string
      request_id:
        description: at least one id should be provided
        type: string
      transaction_id:
        description: at least one id should be provided. For deposit, mandatory
        type: string
    type: object
  rpc.ClientQueryUserRequest:
    properties:
      user_id:
        type: string
    type: object
  rpc.ClientQueryWalletAssetRequest:
    properties:
      asset_id:
        description: number id. Can be got from nft_list or token_list api
        type: integer
      chain:
        description: CHAIN_BITCOIN, CHAIN_BITCOIN_TESTNET, CHAIN_ETHEREUM, CHAIN_ETHEREUM_GOERLI,
          CHAIN_BSC, CHAIN_BSC_TESTNET, CHAIN_POLYGON, CHAIN_SOLANA, CHAIN_AVALANCHE_C,
          CHAIN_TRON, CHAIN_LITECOIN, CHAIN_DOGECOIN
        type: string
      contract:
        description: CheCKeD Contract address
        type: string
      token_id:
        description: Only applied to NFT. NFT TokenId
        type: string
      wallet_id:
        type: string
    type: object
  rpc.ClientQueryWalletBalanceRequest:
    properties:
      include_zero:
        description: 'true: include zero balance, false: exclude zero balance'
        type: boolean
      wallet_id:
        description: wallet id
        type: string
    type: object
  rpc.ClientQueryWalletRequest:
    properties:
      wallet_id:
        description: wallet id
        type: string
    type: object
  rpc.ClientQueryWalletTransactionListRequest:
    properties:
      limit:
        description: Default to 10
        type: integer
      need_total:
        description: Default to false
        type: boolean
      offset:
        description: Default to 0
        type: integer
      order_by:
        description: DB column name. Empty string means no sorting. e.g. "id, created_at"
        type: string
      order_direction:
        description: ASC or DESC
        type: string
      tx_types:
        description: TX_TYPE_DEPOSIT, TX_TYPE_WITHDRAW, TX_TYPE_TRANSFER. Empty means
          all.
        items:
          type: string
        type: array
      wallet_id:
        type: string
    type: object
  rpc.ClientRequestVo:
    properties:
      amount:
        type: string
      amount_usd:
        type: string
      approval_received:
        type: integer
      approvals_needed:
        type: integer
      approved_status:
        description: '"PENDING", "APPROVED", "REJECTED"'
        type: string
      asset:
        $ref: '#/definitions/model.Asset'
      finalized_at:
        description: finalized time if the tx is done.
        type: integer
      from_address:
        description: no usage
        type: string
      from_wallet:
        allOf:
        - $ref: '#/definitions/rpc.ClientWalletUserVo'
        description: for withdraw and transfer
      reference_id:
        description: customer system
        type: string
      remark:
        type: string
      request_id:
        type: string
      source:
        description: '"CUSTODY", "CLIENT"'
        type: string
      time:
        description: request time
        type: integer
      to_address:
        description: for withdraw
        type: string
      to_wallet:
        allOf:
        - $ref: '#/definitions/rpc.ClientWalletUserVo'
        description: for deposit and transfer
      transaction:
        $ref: '#/definitions/rpc.ClientTransactionVo'
      type:
        description: '"WITHDRAW", "DEPOSIT", "TRANSFER"'
        type: string
    type: object
  rpc.ClientTransactionVo:
    properties:
      amount:
        description: Amount of tokens of this transaction. Digits divided. For example,
          the amount of 1.2 ETH is "1.2"
        type: string
      approve_remark:
        description: Approval remark of this transaction given by ON1ON Custody Ops
          team.
        type: string
      asset:
        allOf:
        - $ref: '#/definitions/model.Asset'
        description: Asset info
      bill_type:
        description: BILL_TYPE_VALUE_TRANSFER or BILL_TYPE_NOT_VALUE_TRANSFER
        type: string
      chain:
        description: Chain Id of the transaction. e.g., CHAIN_ETHEREUM
        type: string
      chain_status:
        description: The status of the transaction on the chain. CHAIN_STATUS_PENDING,
          CHAIN_STATUS_SUCCEEDED, CHAIN_STATUS_FAILED, CHAIN_STATUS_PROCESSING or
          others.
        type: string
      chain_tx_id:
        description: Chain transaction id, only for reference.
        type: string
      direction:
        description: TX_DIRECTION_OUTGOING, TX_DIRECTION_INCOMING
        type: string
      fee:
        description: Fee collected by the system. Digits divided. For example, the
          amount of 1.2 ETH is "1.2"
        type: string
      from_user_id:
        description: From user id, starts with OCUR. Only available for outgoing transaction.
        type: string
      from_wallet_address:
        description: From wallet address
        type: string
      from_wallet_id:
        description: From wallet id, starts with WLT. Only available for outgoing
          transaction.
        type: string
      id:
        description: Transaction id, store in string format. Not necessarily be a
          number.
        type: string
      name:
        description: User's name
        type: string
      remark:
        description: Remark of this transaction
        type: string
      score:
        allOf:
        - $ref: '#/definitions/rpc.ScoreVo'
        description: KYA/AML score
      status:
        description: Transaction status,TX_STATUS_PENDING, TX_STATUS_SUCCEEDED, TX_STATUS_FAILED,
          TX_STATUS_PROCESSING or others
        type: string
      to_user_id:
        description: To user id, starts with OCUR. Only available for incoming transaction.
        type: string
      to_wallet_address:
        description: To wallet address
        type: string
      to_wallet_id:
        description: To wallet id, starts with WLT. Only available for incoming transaction.
        type: string
      tx_bill_time:
        description: Time when the transaction is settle down.
        type: integer
      tx_hash:
        description: Hash of the transaction on the chain.
        type: string
      tx_time:
        description: Transaction time. For deposit, it is the time when the transaction
          is received by ON1ON. For withdraw, it is the time when the withdrawal request
          is created by tenant.
        type: integer
      tx_type:
        description: Transaction type, TX_TYPE_DEPOSIT, TX_TYPE_WITHDRAW, TX_TYPE_TRANSFER
        type: string
    type: object
  rpc.ClientUserDetailVo:
    properties:
      created_at:
        description: Created time
        type: integer
      email:
        type: string
      group:
        allOf:
        - $ref: '#/definitions/rpc.ClientChannelGroupSimpleVo'
        description: The current group of this user
      id:
        type: string
      name:
        description: Name of the user
        type: string
      reference_id:
        type: string
      updated_at:
        description: Updated time
        type: integer
      wallets:
        description: All wallets owned by this user. One user usually has one wallet.
        items:
          $ref: '#/definitions/rpc.ClientWalletVo'
        type: array
    type: object
  rpc.ClientUserVo:
    properties:
      email:
        type: string
      id:
        type: string
      reference_id:
        type: string
    type: object
  rpc.ClientWalletDetailVo:
    properties:
      created_at:
        type: integer
      id:
        type: string
      updated_at:
        type: integer
    type: object
  rpc.ClientWalletUserVo:
    properties:
      id:
        description: Wallet id
        type: string
      user:
        $ref: '#/definitions/rpc.ClientUserVo'
    type: object
  rpc.ClientWalletVo:
    properties:
      id:
        description: Wallet id
        type: string
    type: object
  rpc.GeneralResponse:
    properties:
      code:
        description: Code is OK for normal cases and ErrXXXX for errors.
        example: OK
        type: string
      data:
        description: Optional
      msg:
        description: Msg is "" for normal cases and message for errors.
        type: string
    type: object
  rpc.PagingOrderRequest:
    properties:
      limit:
        description: Default to 10
        type: integer
      need_total:
        description: Default to false
        type: boolean
      offset:
        description: Default to 0
        type: integer
      order_by:
        description: DB column name. Empty string means no sorting. e.g. "id, created_at"
        type: string
      order_direction:
        description: ASC or DESC
        type: string
    type: object
  rpc.PagingResponse:
    properties:
      code:
        description: Code is OK for normal cases and ErrXXXX for errors.
        example: OK
        type: string
      data:
        description: Optional
      list:
        description: List is always the result list
      msg:
        description: Msg is "" for normal cases and message for errors.
        type: string
      page:
        description: Page is the given params in the request starts from 1
        type: integer
      size:
        description: Size is the result count in this response1
        type: integer
      total:
        description: Total is the total result in database
        type: integer
    type: object
  rpc.ScoreVo:
    properties:
      aml_grading:
        description: Anti Money Laundering Grading
        type: integer
      aml_score:
        description: Anti Money Laundering Score
        type: integer
      kya_score:
        description: Know Your Address Score
        type: integer
    type: object
info:
  contact: {}
  description: Custody API
  title: Custody API
  version: "1.0"
paths:
  /api/operation/transfer:
    post:
      description: Transfer requests are processed synchronously. No approval needed.
      parameters:
      - description: body
        in: body
        name: data
        required: true
        schema:
          $ref: '#/definitions/rpc.ClientCreateTransferRequest'
      - description: X-OW-APIKEY and X-OW-SIGNATURE
        in: header
        name: Authorization
        required: true
        type: string
      responses:
        "200":
          description: Success
          schema:
            allOf:
            - $ref: '#/definitions/rpc.GeneralResponse'
            - properties:
                data:
                  $ref: '#/definitions/rpc.ClientCreateTransferResponse'
              type: object
      summary: Create a atomic transfer request.
      tags:
      - Api
  /api/operation/user:
    post:
      description: Support creating and updating users.
      parameters:
      - description: body
        in: body
        name: data
        required: true
        schema:
          $ref: '#/definitions/rpc.ClientManageUserRequest'
      - description: X-OW-APIKEY and X-OW-SIGNATURE
        in: header
        name: Authorization
        required: true
        type: string
      responses:
        "200":
          description: Success
          schema:
            allOf:
            - $ref: '#/definitions/rpc.GeneralResponse'
            - properties:
                data:
                  type: string
              type: object
      summary: Manage users.
      tags:
      - Api
  /api/operation/withdraw:
    post:
      description: Withdrawal requests are processed asynchronously and may need approvals
        according to corresponding policy.
      parameters:
      - description: body
        in: body
        name: data
        required: true
        schema:
          $ref: '#/definitions/rpc.ClientCreateWithdrawRequest'
      - description: X-OW-APIKEY and X-OW-SIGNATURE
        in: header
        name: Authorization
        required: true
        type: string
      responses:
        "200":
          description: Success
          schema:
            allOf:
            - $ref: '#/definitions/rpc.GeneralResponse'
            - properties:
                data:
                  $ref: '#/definitions/rpc.ClientCreateWithdrawResponse'
              type: object
      summary: Create a withdrawal request.
      tags:
      - Api
  /api/query/balance:
    post:
      parameters:
      - description: body
        in: body
        name: data
        required: true
        schema:
          $ref: '#/definitions/rpc.ClientQueryWalletAssetRequest'
      - description: X-OW-APIKEY
        in: header
        name: Authorization
        required: true
        type: string
      responses:
        "200":
          description: Success
          schema:
            allOf:
            - $ref: '#/definitions/rpc.GeneralResponse'
            - properties:
                data:
                  $ref: '#/definitions/rpc.ClientAssetBalanceVo'
              type: object
      summary: Query the balance of one token of a wallet
      tags:
      - Api
  /api/query/balance_list:
    post:
      description: Callers may specify if zero balance should be included.
      parameters:
      - description: body
        in: body
        name: data
        required: true
        schema:
          $ref: '#/definitions/rpc.ClientQueryTokenBalanceListRequest'
      - description: X-OW-APIKEY
        in: header
        name: Authorization
        required: true
        type: string
      responses:
        "200":
          description: Success
          schema:
            allOf:
            - $ref: '#/definitions/rpc.PagingResponse'
            - properties:
                list:
                  items:
                    $ref: '#/definitions/rpc.ClientAssetBalanceVo'
                  type: array
              type: object
      summary: Query the balance of all tokens of a tenant.
      tags:
      - Api
  /api/query/nft:
    post:
      parameters:
      - description: body
        in: body
        name: data
        required: true
        schema:
          $ref: '#/definitions/rpc.ClientQueryWalletAssetRequest'
      - description: X-OW-APIKEY
        in: header
        name: Authorization
        required: true
        type: string
      responses:
        "200":
          description: Success
          schema:
            allOf:
            - $ref: '#/definitions/rpc.GeneralResponse'
            - properties:
                data:
                  $ref: '#/definitions/rpc.ClientAssetBalanceVo'
              type: object
      summary: Query the balance of one NFT of a wallet
      tags:
      - Api
  /api/query/nft_list:
    post:
      description: Callers may specify if zero balance should be included.
      parameters:
      - description: body
        in: body
        name: data
        required: true
        schema:
          $ref: '#/definitions/rpc.ClientQueryNftBalanceListRequest'
      - description: X-OW-APIKEY
        in: header
        name: Authorization
        required: true
        type: string
      responses:
        "200":
          description: Success
          schema:
            allOf:
            - $ref: '#/definitions/rpc.PagingResponse'
            - properties:
                list:
                  items:
                    $ref: '#/definitions/rpc.ClientAssetBalanceVo'
                  type: array
              type: object
      summary: Query the balance of all NFTs of a tenant.
      tags:
      - Api
  /api/query/request:
    post:
      parameters:
      - description: body
        in: body
        name: data
        required: true
        schema:
          $ref: '#/definitions/rpc.ClientQueryTransactionRequest'
      - description: X-OW-APIKEY
        in: header
        name: Authorization
        required: true
        type: string
      responses:
        "200":
          description: Success
          schema:
            allOf:
            - $ref: '#/definitions/rpc.GeneralResponse'
            - properties:
                data:
                  $ref: '#/definitions/rpc.ClientRequestVo'
              type: object
      summary: Get request details by transaction id.
      tags:
      - Api
  /api/query/request_list:
    post:
      description: Support paging.
      parameters:
      - description: body
        in: body
        name: data
        required: true
        schema:
          $ref: '#/definitions/rpc.ClientQueryChannelRequestListRequest'
      - description: X-OW-APIKEY
        in: header
        name: Authorization
        required: true
        type: string
      responses:
        "200":
          description: Success
          schema:
            allOf:
            - $ref: '#/definitions/rpc.GeneralResponse'
            - properties:
                list:
                  items:
                    $ref: '#/definitions/rpc.ClientRequestVo'
                  type: array
              type: object
      summary: Query one request of a tenant.
      tags:
      - Api
  /api/query/transaction:
    post:
      parameters:
      - description: body
        in: body
        name: data
        required: true
        schema:
          $ref: '#/definitions/rpc.ClientQueryTransactionRequest'
      - description: X-OW-APIKEY
        in: header
        name: Authorization
        required: true
        type: string
      responses:
        "200":
          description: Success
          schema:
            allOf:
            - $ref: '#/definitions/rpc.GeneralResponse'
            - properties:
                data:
                  $ref: '#/definitions/rpc.ClientTransactionVo'
              type: object
      summary: Get transaction details by transaction id.
      tags:
      - Api
  /api/query/transaction_list:
    post:
      parameters:
      - description: body
        in: body
        name: data
        required: true
        schema:
          $ref: '#/definitions/rpc.ClientQueryTransactionListRequest'
      - description: X-OW-APIKEY
        in: header
        name: Authorization
        required: true
        type: string
      responses:
        "200":
          description: Success
          schema:
            allOf:
            - $ref: '#/definitions/rpc.PagingResponse'
            - properties:
                list:
                  items:
                    $ref: '#/definitions/rpc.ClientTransactionVo'
                  type: array
              type: object
      summary: Query all transactions of a tenant.
      tags:
      - Api
  /api/query/user:
    post:
      description: Support paging.
      parameters:
      - description: body
        in: body
        name: data
        required: true
        schema:
          $ref: '#/definitions/rpc.ClientQueryUserRequest'
      - description: X-OW-APIKEY
        in: header
        name: Authorization
        required: true
        type: string
      responses:
        "200":
          description: Success
          schema:
            allOf:
            - $ref: '#/definitions/rpc.GeneralResponse'
            - properties:
                data:
                  $ref: '#/definitions/rpc.ClientUserDetailVo'
              type: object
      summary: Get user details by user id
      tags:
      - Api
  /api/query/user_list:
    post:
      description: Support paging.
      parameters:
      - description: body
        in: body
        name: data
        required: true
        schema:
          $ref: '#/definitions/rpc.PagingOrderRequest'
      - description: X-OW-APIKEY
        in: header
        name: Authorization
        required: true
        type: string
      responses:
        "200":
          description: Success
          schema:
            allOf:
            - $ref: '#/definitions/rpc.PagingResponse'
            - properties:
                list:
                  items:
                    $ref: '#/definitions/rpc.ClientUserDetailVo'
                  type: array
              type: object
      summary: List all users.
      tags:
      - Api
  /api/query/wallet:
    post:
      parameters:
      - description: body
        in: body
        name: data
        required: true
        schema:
          $ref: '#/definitions/rpc.ClientQueryWalletRequest'
      - description: X-OW-APIKEY
        in: header
        name: Authorization
        required: true
        type: string
      responses:
        "200":
          description: Success
          schema:
            allOf:
            - $ref: '#/definitions/rpc.GeneralResponse'
            - properties:
                data:
                  $ref: '#/definitions/rpc.ClientWalletDetailVo'
              type: object
      summary: Get wallet details by wallet id.
      tags:
      - Api
  /api/query/wallet/deposit_address:
    post:
      description: Anyone can then use this address to deposit supported tokens to
        this wallet. Address may vary in the future.
      parameters:
      - description: body
        in: body
        name: data
        required: true
        schema:
          $ref: '#/definitions/rpc.ClientQueryWalletAssetRequest'
      - description: X-OW-APIKEY
        in: header
        name: Authorization
        required: true
        type: string
      responses:
        "200":
          description: Returned address
          schema:
            allOf:
            - $ref: '#/definitions/rpc.GeneralResponse'
            - properties:
                data:
                  type: string
              type: object
      summary: Get a deposit address of one wallet for one asset.
      tags:
      - Api
  /api/query/wallet/nft_balance_list:
    post:
      description: Callers may specify if zero balance should be included.
      parameters:
      - description: body
        in: body
        name: data
        required: true
        schema:
          $ref: '#/definitions/rpc.ClientQueryWalletBalanceRequest'
      - description: X-OW-APIKEY
        in: header
        name: Authorization
        required: true
        type: string
      responses:
        "200":
          description: Success
          schema:
            allOf:
            - $ref: '#/definitions/rpc.PagingResponse'
            - properties:
                list:
                  items:
                    $ref: '#/definitions/rpc.ClientAssetBalanceVo'
                  type: array
              type: object
      summary: Query the balance of all NFTs of a wallet.
      tags:
      - Api
  /api/query/wallet/token_balance_list:
    post:
      description: Callers may specify if zero balance should be included.
      parameters:
      - description: body
        in: body
        name: data
        required: true
        schema:
          $ref: '#/definitions/rpc.ClientQueryWalletBalanceRequest'
      - description: X-OW-APIKEY
        in: header
        name: Authorization
        required: true
        type: string
      responses:
        "200":
          description: Success
          schema:
            allOf:
            - $ref: '#/definitions/rpc.PagingResponse'
            - properties:
                list:
                  items:
                    $ref: '#/definitions/rpc.ClientAssetBalanceVo'
                  type: array
              type: object
      summary: Query the balance of all tokens of a wallet.
      tags:
      - Api
  /api/query/wallet/transaction_list:
    post:
      description: Support paging.
      parameters:
      - description: body
        in: body
        name: data
        required: true
        schema:
          $ref: '#/definitions/rpc.ClientQueryWalletTransactionListRequest'
      - description: X-OW-APIKEY
        in: header
        name: Authorization
        required: true
        type: string
      responses:
        "200":
          description: Success
          schema:
            allOf:
            - $ref: '#/definitions/rpc.PagingResponse'
            - properties:
                list:
                  items:
                    $ref: '#/definitions/rpc.ClientTransactionVo'
                  type: array
              type: object
      summary: Get all transactions of a wallet.
      tags:
      - Api
  /api/query/wallet_list:
    post:
      description: Support paging.
      parameters:
      - description: body
        in: body
        name: data
        required: true
        schema:
          $ref: '#/definitions/rpc.PagingOrderRequest'
      - description: X-OW-APIKEY
        in: header
        name: Authorization
        required: true
        type: string
      responses:
        "200":
          description: Success
          schema:
            allOf:
            - $ref: '#/definitions/rpc.PagingResponse'
            - properties:
                list:
                  items:
                    $ref: '#/definitions/rpc.ClientUserDetailVo'
                  type: array
              type: object
      summary: List all wallets under the current tenant.
      tags:
      - Api
swagger: "2.0"
