createWallet
Creates a wallet object that provides a handler to process asssets deposits and an in-memory wallet management data structure.
Usage
The example below creates a new wallet management object, and attaches a handler to automatically process assets deposits.
import { createApp } from "@deroll/app";
import { createWallet } from "@deroll/wallet";
// create app
const app = createApp({ url: "http://127.0.0.1:5004" });
// create wallet
const wallet = createWallet();
app.addAdvanceHandler(wallet.handler);
Returns
Type: WalletApp
Parameters
None