Configurable Attributes

walletudrox.acceptNets (Object)

With this attribute we indicate which networks my application uses, SEE DEFAULT NETWORKS

walletudrox.acceptNets = ["UDROX","CRO"];

Although the main networks are default in udrox, we can also indicate that we want to work with a custom network that is not default within the udrox wallet, using the CHAIN ID

walletudrox.acceptNets = ["UDROX","25","1101"];

If the network is personalized we must add its configuration walletudrox.addNet

walletudrox.preferNet (String)

We can establish any of the networks integrated in walletudrox.acceptNets that is the predefined network in case the user does not have any of the established networks, he will take this network first as a suggestion

walletudrox.preferNet = "UDROX";

walletudrox.needConfirmations (Int)

Sets the number of confirmations needed to notify the user that their transaction was processed

walletudrox.needConfirmations = 0;

walletudrox.notifyServer

Server to Server: here we place the url where we are going to receive the confirmation hash to process it and take some action, we sends the hash, this hash can be verified with the Udrox SafeHash system that allows us to treat the hash with total security

// example
walletudrox.notifyServer = "https://my_server.com/process_hash"; 

The correct security measures are provided through the SafeHash system

Last updated