Overview
The Wepin RESTful API is designed to seamlessly integrate wallet functionality into Web3 services and applications. Through this API, developers can implement various wallet-related features, including login, authentication, wallet management, token and NFT queries, and transactions. With Wepin's RESTful API, you can easily integrate wallet functionalities across diverse platform environments and deliver a user-friendly application experience.
Unlike widgets, the RESTful API does not provide a front-end UI for the wallet. Therefore, it is necessary to use the Login Library to construct the user registration and login UI and the PIN Pad Library to handle user PIN inputs. Refer to the table below for platform-specific library support.
The RESTful API is currently available for Web, Android, iOS, and Flutter environments.
Through the RESTful API, you can implement the following functionalities:
Login: Provides social login and email login functionalities integrated with Firebase. This enables user authentication and access to the Wepin wallet. To utilize Firebase login functionalities, the Wepin Login Library must be used in conjunction. Authentication is performed using JWT-formatted Access Tokens and Refresh Tokens.
Wallet Creation and Management: Offers functionalities for creating new wallets, setting, and changing PINs. The PIN ensures security during wallet usage, and the PIN Pad Library must be used alongside the API to capture user PIN inputs.
Token and NFT Retrieval: Provides APIs to query information on tokens and NFTs stored in the wallet. This functionality helps users manage and understand their digital asset portfolio.
Transaction: Handles the preparation, signing, and transmission of transactions via the API, enabling functionalities such as coin and token transfers.
Last updated