Generate a wallet
Create Ethereum and Bitcoin wallets
The MoonPay Authenticate SDK offers a straightforward way to integrate wallet functionalities directly into your application. By leveraging the wallet options provided, you can streamline the user experience by enabling users to generate wallets and the network they want to operate on.
To incorporate wallet functionalities into your SDK setup, utilize the walletOptions
attribute during initialization. Below are the available configuration options:
By setting up these configurations, you empower users with the ability to seamlessly link or generate wallets, aligning with your application's crypto-related features.
To generate a wallet using the SDK, you can use the createWallet method. Here's an example implementation:
The walletsResponse
object will contain an array of wallets, each with the following format:
This response includes the generated addresses for both Ethereum and Bitcoin chains. Users can use these addresses for their transactions based on the specified chain.
Updated 4 months ago
Table of Contents
Wallet functionality
Configuration
Generating wallets