> For the complete documentation index, see [llms.txt](https://docswallet.udrox.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docswallet.udrox.com/practical-use-and-easy-to-implement.md).

# Practical use and easy to implement

Showing how to make a transaction to receive any default cryptocurrency from a client user through a button

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>
