Postman Collection

Loopring DeFi Postman Collection

Get started quickly with the official Postman collection for Loopring DeFi.

Download the Postman collection here.

How to Use This Collection

  1. Download the Postman collection file using the link above.

  2. Open Postman on your desktop or browser.

  3. Click Import in the top-left corner.

  4. Drag and drop the .json file or use Upload Files.

  5. The full collection will appear in your sidebar — ready to explore!


What's Included

The Loopring DeFi Postman collection includes pre-configured requests to interact with core API endpoints:

  • Token Info – Retrieve a list of supported tokens and their metadata.

  • Account Owner – Query account details using wallet address or account ID.

  • Wallet Type – Determine whether a wallet is a smart wallet or EOA, and the associated network.

  • Token Balances – View Loopring DeFi token balances for a given address.

  • Transactions – Fetch transaction history including deposits, withdrawals, transfers, and staking actions.

  • Dual Investment – Review Dual Investment positions by wallet.

  • Block Trade – Query historical block trade orders.

  • Portal – View leveraged position operations, such as vault opens, borrows, repays, and settlements.

This collection is ideal for exploring both read-only data and authenticated queries across the Loopring DeFi ecosystem.


Environment Variables

The collection uses several environment variables to make testing easier and reusable. Below is a list of variables and their purpose:

Variable
Description

baseUrl

The root API URL. Refer to the Base URLs page.

X-API-KEY

Your Loopring API key. Required for authenticated endpoints.

address

The wallet’s public address (e.g., 0xabc123...).

accountId

The Loopring account ID. Can be used in place of address in many calls.

wallet

Alias for address, used in some endpoints.

network

Blockchain network to query (e.g., ethereum, base, taiko).

owner

Alias for account ID in some balance/transaction queries.


Setting Up Environment in Postman

  1. In Postman, go to the Environments tab.

  2. Click + Add to create a new environment (e.g., "Loopring DeFi").

  3. Add the variables listed above, with your personal values.

  4. Click Save, and select the environment from the top-right dropdown in Postman.

This allows all requests to dynamically reference your data using {{variable}} syntax.


Pro Tips

Last updated