Configurable Methods

All editing methods

walletudrox.onConnect

With the following method we define what to do after the user successfully connects his udrox wallet

walletudrox.onConnect = function(){
	
};

Functions for handling transactions

walletudrox.onSendError

When a client performs a transaction but it fails, it is canceled or it was not processed

walletudrox.onSendError = function(){
    // code to execute
}

walletudrox.onBeforeSend

Before the client starts any transaction

walletudrox.onBeforeSend = function(){
    // code to execute
}

walletudrox.onSend

When the transaction was successful, we sends the hash to show the client that their transaction was processed correctly or any useful functionality

walletudrox.onSend = function(hash){
    // code to execute
}

Consider:

walletudrox.onSend: we process or store the hash; Please note, it is recommended not to release rewards directly here, send the hash to server language and verify it through our SAFEHASH system so you can be sure that the hash has not been corrupted.

walletudrox.notifyServer = "https://www.miapp.com/process_hash"; use notifyserver to give rewards or complete operations safely

Last updated