# Deposit of funds

As a dApp or web app that wants to integrate the Public Mint Widget to enable your users to make deposit of funds to a given address (yours or theirs), you can easily embed the widget onto your application with a simple javascript code.

Public Mint's Widget is made available through a SDK that needs to be included on your application.

### Initialisation

Initialise the SDK by creating an instance of the `PmintWidgetSdk` class:

```javascript
import PmintWidgetSdk from '@publicmint/widget-sdk';

const pmint = new PmintWidgetSdk();
```

### Deposit widget

To show the deposit widget, call the `renderAddFunds` method. This method returns a promise that resolves with either `completed` or `canceled`.

```javascript
const status = await pmint.renderAddFunds({
  blockchain: 'publicmint',
  destinationAddress: address,
  locale: 'en'
});
```

The `renderAddFunds` method requires that you pass the information necessary for the widget to know what to show the user:

* **blockchain** - the target blockchain for the funds. At this stage only we only support `publicmint` as the target blockchain.
* **destinationAddress** - the address to where the funds will be deposited. This address can be yours (ex: a liquidity pool) or your customer's address.&#x20;
* **locale** - The localization to be used by the widget.

### Example

![](https://2049132048-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LlveffYY8TD7YiG25FC%2F-M6eTrwm0Fq-mNTcIoHE%2F-M6eVJfsihVFRolRib9i%2FScreenshot%202020-05-06%20at%2015.58.05.png?alt=media\&token=d1f9b40f-b474-4d37-a675-8b5115a3bb09)
