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
<script src="https://wallet.udrox.com/api/wallet_v1.js" type="application/javascript"></script>
Basic configurations HTML
<script type="text/javascript">
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");
}
</script>
<button onclick="transaction()">PAY USDU</button>
Last updated