Introducing iWan — The Gateway to Wanchain

iWan is the “interface to Wanchain”, similar to Infura, which provides users with secure, dependable access to an array of full node services

What is iWan?

iWan is the “interface to Wanchain”, which provides users with secure, dependable access to a comprehensive array of Wanchain full node services, including the Wanchain main network and test network. The main benefit of iWan is to be able to get info about the network, which WanX cannot do. You can use iWan to send transactions on any if the registered chains, as well as make SC calls. Most of the other functions are get info functions. For example, you can use iWan to get the list of registered storemen nodes (aka bridge nodes), the list of registered cross-chain tokens, and the cross-chain fees. Also, you can use it as a replacement for a full node, allowing you to get your WAN balance, the next nonce (needed to make txs), as well as token balances. One of the best features is that you can use it to subscribe to smart contract events, like when you need to wait and listen for storeman events when doing a cross-chain tx. You can do all of that not just for Wanchain, but also Ethereum and Bitcoin. That is, you can do all that without talking to any blockchain node. iWan takes care of low level interaction with Wanchain for developers so that they can focus on building their business layer instead of the details of interacting with the blockchain. This allows iWan users to easily build decentralized applications that meet their engineering needs.

Why use iWAN?

With iWan, there is no need for developers to maintain nodes themselves. Users do not have to install, configure, or maintain expensive blockchain infrastructure, allowing for the speedy and reliable deployment of applications. Our RPC servers deliver industry-leading reliability to help users deploy applications quickly.

Cross-chain capabilities: iWAN provides the ability to seamlessly call cross-chain functions without the need to manage the infrastructure of multiple blockchains.

How to apply for an iWan account?

Applying for an iWAN account is easy. Users need only visit the iWAN registration page and fill in the relevant information according to the page prompts. Currently, the iWan API is open to the public. Once successfully registered, users will have access to the full range of services on iWan.

Note: Users of the Beta version do not need to register again and can log in directly with their original account details.

How to use iWan?

iWan provides a rich and comprehensive interface to Wanchain. The API, SDK, and comprehensive documentation enable developers to quickly build dApps based on their business needs. The provided tools are versatile, easy to use, and easily extended.

A complete list of API methods and detailed information about the properties, methods, and events of each object can be found through “Documents -> API” on the home page. Through the online documentation, users have a complete index of all the API information and can easily search the documentation to find the information they need.

iWan Public APIs

Users can get the complete iWan SDK through “Documents -> SDK” on the homepage. The SDK library can be easily installed via NPM or Yarn. After the local installation is successful, the developer can communicate with iWan’s PRC server through the iWan SDK to retrieve related services.

iWan Javascript SDK

The Wanchain team uses the JSON RPC standard and WebSocket. Users can choose the library and development framework they are familiar with. Calling the API is currently the most cost-effective way to develop applications on the Wanchain platform. Users can access the request service provided by iWan, as well as cross-chain transaction services. Wanchain currently supports cross-chain trading capabilities between BTC, ETH and various ERC20 certificates (MKR, Dai, LINK, LRC, GUSD, USDC, etc.).

Currently, iWan supports a JavaScript SDK, and we will provide more SDKs in different languages thru the WanDevs community.

How to use the account management page

After logging in, a user will have access to the account management page. On this page are three sections: Project Management, My Account, and Statistics.

Project Management Section

In the Project Management section, a single account can create multiple projects in iWan. When you create a new project, a pair of API Keys and Secret Keys are generated at the same time. This pair of keys is used to verify the user’s future access to iWan.

Users can generate iWan service access point URLs via their API Key, such as wss://api.wanchain.org:8443/ws/v3/YOUR-API-KEY. Even if the API Key is leaked or stolen, the user still encrypts the service request through the Secret Key, thus ensuring security. The user obtains access to the iWan API service through the API Key and uses the Secret Key for message signing. Each request initiated by the user is associated with an incremental ID value that is never repeated, and is used to prevent a hacker from intercepting the previous request URL and stealing the content. In addition to the uniqueness of the ID value, the request URL can also be associated with timestamp information, so we recommend that the user obtain a millisecond-level or higher-precision timestamp service through the interface and associate it with the URL, thus doubly securing the URL.

iWan provides both the mainnet an testnet service endpoints, and the user is free to choose according to their needs.

Network selection

In the My Account section, users can update their account information management, password or email address.

Account Management

In the Statistics section, we provide visual charting capabilities. The historical interaction data between the user and iWan will be presented in a graphical manner. iWan provides corresponding statistics for both the mainnet and the testnet, and automatically generates a statistical graph of historical traffic. The user can count all the items, or select a specific item for statistics. The statistical data includes the total number of calls, the number of single project calls, the method call ranking, and a heat map.

Statistics

In the future, we will provide more statistics about iWan, such as cross-chain transactions, Storeman Group, endpoint feedback and others.

We welcome you to try out iWan at the homepage here. Currently, Chinese and English language are supported.

If you have any questions about using iWan, please feel free to contact our technical support at techsupport@wanchain.org

About Wanchain

Wanchain is the infrastructure connecting the decentralized financial world. Wanchain’s live cross-blockchain solution is EVM-based, includes optional private transactions, and provides a decentralized, permissionless, and secure approach for interoperability. Wanchain has employees globally with teams in Beijing (China), Austin (USA), London (UK), Kuala Lumpur (Malaysia), Paris (France), and Madrid (Spain).

You can find more information about Wanchain on our website. Additionally, you can reach us through Telegram, Discord, Medium, Twitter, and Reddit. You can also sign up for our monthly email newsletter here.