LogoLogo
  • Loopring DeFi
  • Getting Started
    • Overview
    • Connecting Your Wallet
    • Depositing Assets
  • Withdrawing Assets
  • Products
    • Dual Investment
      • Covered Gain
      • Auto Reinvest
      • Risks & Considerations
      • Dual Investment FAQ
    • Portal
      • Opening a Position
      • Managing Your Position
      • Collateral Management
      • Margin & Liquidation
      • Advanced Strategies
      • Risks & Considerations
      • Portal FAQ
  • Block Trade
    • How Block Trade Works
    • Trading Options
    • Supported Tokens & Pairs
    • Risks & Considerations
    • Block Trade FAQ
  • Resources
    • API Documentation
      • Base URLs
      • Account Owner Lookup
      • Wallet Type Lookup
      • Token Balances
      • Transaction History
      • Block Trade Orders
      • Portal Operations
      • Postman Collection
  • Change Logs
    • 2025
      • May 22
      • May 19
      • May 15
      • Apr 3
      • Apr 2
      • Mar 3
      • Feb 25
      • Jan 15
    • 2024
      • 25 Dec
Powered by GitBook
On this page
  • Description
  • Endpoint
  • Request
  • Response
Export as PDF
  1. Resources
  2. API Documentation

Wallet Type Lookup

Description

Retrieves metadata about a wallet address on a specific network. This includes whether the address is a smart contract, whether it is in counterfactual status, and its Loopring wallet contract version (if applicable).

Use this endpoint to determine:

  • Whether a wallet is a contract or EOAs (externally owned account)

  • Whether a wallet uses counterfactual deployment (common for Loopring Smart Wallets)

  • Which version of the Loopring wallet contract is associated (if any)


Endpoint

GET /api/wallet/v3/wallet/type

Request

Field
Type
Description
Example

address

string

(Optional) The wallet's public address. address or wallet is required.

0xbefa...b491

wallet

string

(Optional) The wallet address. wallet or address is required.

0xbefa...b491

network

string

(Required) The blockchain network to query to check the wallet's data.

ethereum

⚠️ Either address or wallet must be provided — at least one is required to query wallet type details.


Response

Field
Type
Description
Example

resultInfo.code

number

Status code indicating success or failure. 0 typically means success.

0

resultInfo.message

string

Text message describing the result of the request.

"SUCCESS"

data.isInCounterFactualStatus

boolean

Indicates whether the wallet is in a counterfactual state (i.e., it hasn't completed full account creation yet).

false

data.isContract

boolean

Indicates if the wallet address is a smart contract.

false

data.loopringWalletContractVersion

string

The version of the Loopring smart wallet contract, if applicable. Empty if not a Loopring contract wallet.

""

💡 This endpoint is only available on the Ethereum base URL: https://api3.loopring.io.

PreviousAccount Owner LookupNextToken Balances

Last updated 1 month ago