# Practical use and easy to implement

We include the walletudrox object in the HEAD

{% code overflow="wrap" %}

```javascript
<script src="https://wallet.udrox.com/api/wallet_v1.js" type="application/javascript"></script>
```

{% endcode %}

Basic configurations HTML

<pre class="language-html"><code class="lang-html"><strong>&#x3C;script type="text/javascript">
</strong>walletudrox.onConnect = function(){
	alert("connected");
};
walletudrox.onSendError = function(){
	alert("The operation could not be completed");
};
walletudrox.onBeforeSend = function(){};
walletudrox.onSend = function(hash){
        alert("Complete "+hash);
};
walletudrox.acceptNets = ["UDROX"];
function transaction(){
	walletudrox.transaction("0x0B77E2947375318fb0F6395A0C36855628685D0a","0.01","USDU");
	// or replace USDU with any desired active, see full docs
	// walletudrox.transaction("0x0B77E2947375318fb0F6395A0C36855628685D0a","1","UDROX");
}
&#x3C;/script>
&#x3C;button onclick="transaction()">PAY USDU&#x3C;/button>
</code></pre>
