dYdX Chain Technical Docs
  • 👋dYdX Chain Technical Documentation
  • Getting Started
    • 💡Developer Tools
      • dYdX Chain Client for Javascript
        • Example #1: Accessing Subaccount Data
        • Example #2: Faucet Endpoints
        • Additional Javascript Client Examples
      • dYdX Chain Client for Python
        • Example #1: Placing, Replacing, and Canceling Orders
        • Exmaple #2: Trading with HRN
        • Additional Python Client Examples
      • dYdX CLI
        • Setup the dYdX CLI
        • EOA Wallets
        • Multisig wallet
        • Submit a governance proposal
    • ✨Developer Guides
    • 🦊User Guides
      • How to use Squid UI for cross-chain deposits to dYdX V4
      • How to use CCTP UI for cross-chain deposits to dYdX V4
      • How to withdraw and transfer funds from a subaccount using Command Line
    • ❓FAQ & Resources
    • 🖥️Open Source Repositories
  • Validators
    • 🛠️Getting set up
      • Hardware Requirements
      • Required Node Configs
      • Running a Validator
      • Running a Full Node
      • Snapshots
      • Validator Upgrades
    • ❓FAQ & Resources
    • 🧑Active Validator Slack
  • Front End & Wallets
    • 📚Architecture Overview
    • 🌎Web Front End
    • ❓FAQ & Resources
  • Data Dashboards & Open APIs
    • 📊Public Dashboards
    • ❓FAQ & Resources
  • Disclaimers
    • 📄Disclaimer
    • 🔓Privacy Policy
Powered by GitBook
On this page
  • Ecosystem Tools FAQ
  • Front End FAQ
  • Websocket FAQ
  1. Front End & Wallets

FAQ & Resources

PreviousWeb Front EndNextPublic Dashboards

Last updated 1 year ago

Ecosystem Tools FAQ

Please provide links to officially recognized wallets.

, are popular Cosmos wallets.

Are there any multi-sig and/or MPCs that support the dYdX chain?

Yes, there are a few options ,

Please provide a transaction to exchange the USDC from the Noble chain to the USDC of the Ethereum chain for reference?

From Noble -

On Ethereum -

Front End FAQ

Is there a way to get user's BuyingPower from API? Or from SDK?

You can get equity and freeCollateral from the /v4/addresses/<address> endpoint

it won't make sense to get BuyingPower from API since each market has different maximum leverage

I cant find a GoodTilBlock param in the placeOrder function
Sometimes I get "FillOrKill order could not be fully filled" error after I place a market order in ETH-USD market on a testnet, but in fact I'm sending the timeInForce: "GTT" (and provide "goodTilTimeInSeconds"), not "FOK", do you have any hints what am I doing wrong? I'm using placeOrder function from your js sdk
Do you have an example on how to hexidecimal -> accAddress.

You still need to own the metamask address (have the private key) to run the derivation to determine dydxaddress

If you don't own the metamask address, it's not possible to derive

Essentially : metamask address —> sign a message —> dydx address

If you can't sign the message, then you can't get the dydx address

I want to create an alternative UI for dydx and user will sign a message with metamask to login

Websocket FAQ

In the Indexer Websocket service, do we need to maintain a heartbeat stream to keep connected?
Is it possible to subscribe to a new block event via ws?
  • That's not available on websocket, however, it is available via REST https://v4- teacher.vercel.app/integration_docs/indexer_api#getheightor If you run a full node that can keep up with the chain, you would always know the block height (second way is recommended so you don't hit the rate limit on the REST endpoint)

How can we know the block number of an orderbook snapshot we get on websocket or on indexer rest api request?
Can we assume one orderbook update will be published per block? Per Pair
  • No because the order book is off chain

Is it possible to subscribe to trade confirmation events via ws?
  • You can get fills via ws, v4_subaccount channel

We want to inspect order info from GET /orders/{orderId}, How do I get this orderID without using GET /orders, because there may be too many orders in the queue. Could i get orderID through clientID or txs_hash?
  • If you run a websocket client, you could just monitor the v4_subaccounts feedthat'll have orders so you can see the orderId and match that up with the clientId

Market orders need to be short-term order (with GoodTilBlock set). Please take a look at the file here

The user can connect their metamask wallet to your alternative UI. Then you just ask the user to sign the message like in my example. The frontend code is open-source, it can be used for reference

It doesn't need a heartbeat. We have a V4 orderbook example at

❓
Keplr
Leap
Keplr Multisig
Fordefi
https://www.mintscan.io/noble/tx/51C848560634B18E4D0F69D9D9064E78C1FB4CD1BF6DB75098360FFB7D656DAD?height=4428705*
https://etherscan.io/tx/0x03d2614f3b3d866ce5d8eef1d7e1b2f525af67c616c7f6531e1c32877b930a8c*
*
https://docs.dydx.trade/developers/indexer/indexer_api#getaddress*
https://github.com/dydxprotocol/v4-clients/blob/main/v4-client-js/examples/short_term_order_composite_example.ts
v4dydxcli.py
https://github.com/chiwalfrm/dydxexamples/tree/main/dydxcli
*
https://twitter.com/LawrenceChiu14/status/1716491077673275876*
https://github.com/dydxprotocol/v4-web
https://github.com/chiwalfrm/dydxexamples/tree/main/v4orderbook
https://docs.dydx.trade/developers/indexer/indexer_api#getheight