December 8, 2023
Does THOR Wallet have an API?
THOR Wallet does not explicitly mention a public API in their documentation. However, an alternative to using THOR Wallet's API is to use Mesh, which offers seamless integration with various digital asset exchanges and wallets, including THOR Wallet. Mesh provides a comprehensive solution for developers to build products that allow customers to access their digital assets from multiple cryptocurrencies within the platform.
How to access THOR Wallet’s public API
THOR Wallet is a digital asset wallet that allows users to buy and sell digital assets. Unfortunately, the THORChain Dev Docs page does not provide a clear description of THOR Wallet or access to its public API documentation.
Instead of using THOR Wallet's public API, you can consider using Mesh, which offers a seamless way to connect users to their accounts across various platforms. The Mesh Quickstart Guide provides an overview of the integration process with Mesh and step-by-step instructions on how to integrate with Mesh using Link SDKs for authentication and server-side calls.
What does THOR Wallet’s API documentation look like?
THOR Wallet's API documentation provides an overview of THORChain, a decentralized cross-chain liquidity protocol that enables users to add liquidity or swap over that liquidity without pegging or wrapping assets. Swaps are processed as easily as making a single on-chain transaction. The documentation offers frontend development guides for interacting with THORChain, including the Native Swaps Guide, Native Savings Guide, Aggregators, Concepts, Libraries, and Analytics. Wallets and interfaces need to connect to THORChain to obtain information, construct transactions with the correct memos, and send the transactions to THORChain Inbound Vaults. The documentation also covers the Midgard API, THORNode API, and Cosmos RPC. For more information, visit the Introduction - Dev Docs page.
How to use Mesh to integrate with THOR Wallet
Integrating Mesh with THOR Wallet and other exchanges is a straightforward process, as outlined in the Mesh Documentation. To get started with THOR Wallet integration, follow these steps:
- Sign up for a Mesh account on the Mesh Signup Page.
- Generate API keys and add allowed callback URLs for your environments.
- Call /api/v1/cataloglink to create a link URL for the user to connect their THOR Wallet account.
- Pass the iFrameURL to the appropriate Link SDK (Web, iOS, Android, or React Native).
- Mesh handles the authentication flow and MFAs, and the user receives an auth_token upon successful authentication.
With Mesh, you can easily enable embedded crypto deposits and buying and selling of digital assets within your application.
Why use Mesh instead of directly accessing the THOR Wallet API?
Mesh offers a valuable alternative to directly integrating with THOR Wallet's API by providing a seamless and user-friendly experience. Here are some reasons why using Mesh's integrations is a better option:
- Ease of use: Mesh simplifies the process of funding wallets with external assets and offers an embedded, guided asset deposit experience. See Embedded Crypto Deposits for more details.
- Multiple exchange integrations: Mesh connects users to 300+ major brokerages, centralized exchanges, and self-custody wallets through secure APIs. Learn more about Account Aggregation.
- Global payments: Mesh supports secure global payments and instant settlement in stablecoin. Check out Pay with Crypto for more information.
- No KYC or one-off wallets: Mesh eliminates the need for KYC or one-off wallets, allowing customers to pay from their existing accounts on various exchanges and wallets with a single integration.
Popular use cases for Mesh’s integration with THOR Wallet
Mesh's integration with THOR Wallet opens up a world of possibilities for developers to create innovative solutions. Here are a few example use cases:
- Seamless account aggregation: With Mesh's Account Aggregation feature, developers can build applications that provide users with real-time access to their digital assets and balances across multiple wallets and exchanges.
- Embedded crypto deposits: By leveraging Mesh's Embedded Crypto Deposits feature, developers can create a frictionless deposit experience for users, allowing them to deposit assets from other exchanges or wallets directly within the app.
- Pay with crypto: Integrating Mesh's Pay with Crypto feature enables developers to build applications that allow users to make secure, global payments using their existing accounts on platforms like Coinbase, Binance, and Metamask.
For more information on how to get started with Mesh's integration, check out their Quickstart Guide with Link SDKs.
THOR Wallet API errors and troubleshooting
API errors can be frustrating and may cause unexpected issues when interacting with the THOR Wallet API. Understanding common errors and their solutions can help developers quickly resolve these issues.
Unfortunately, the THORChain Dev Docs do not provide specific information about common THOR Wallet API errors, troubleshooting methods, or error codes. To troubleshoot any issues, it is recommended to consult the documentation, seek support from the THORChain community, or explore other resources related to Embedded Crypto Deposits.
Other integrations available from Mesh
In addition to an integration with THOR Wallet, Mesh also supports other exchanges, wallets, and trading platforms, such as:
- Binance (US) - Binance.US is the crypto trading platform for US residents where you can buy, sell, and trade cryptocurrencies and alt coins with some of the lowest fees in the U.S.
- Metamask - MetaMask is the leading self-custodial wallet. The safe and simple way to access blockchain applications and web3. Trusted by millions of users worldwide.
- Coinbase - Coinbase is a secure platform that makes it easy to buy, sell, and store cryptocurrency like Bitcoin, Ethereum, and more.
- Kraken - Kraken is a top European-based exchange and offers a variety of fiat to bitcoin pairs such as JPY, EUR, GBP, and USD.
If you want to use Mesh, you can sign up for Mesh today.