> 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/reference/api-reference-medium-level/default-methods.md).

# Default Methods

### walletudrox.oauth and walletudrox.connect (methods)

These two methods must be used to connect the client's udrox wallet with their app

```
// best way to use onclick button, see the examples
walletudrox.oauth();
walletudrox.connect();
```

### walletudrox.transaction (method)

("wallet address 0x...","amounth","token")

Parameters:

1. (String) Address where the funds will arrive
2. (String) Transaction value, examples "5" "5.4444534" or "81767.6776666"
3. (String) Token, You can use the [DEFAULT CONTRACTS TOKENS](/reference/default-crypto-assets.md) or you can also customize your own token adapting it to the walletudrox.useContract method, It is also possible to use the contract address for custom contracts.

With this function we can carry out a transaction authorized by the client user to any wallet address

Using [DEFAULT CONTRACTS](/reference/default-crypto-assets.md):

{% code overflow="wrap" %}

```javascript
walletudrox.transaction("0xd1f02F69B9CA9fD4AC52fED6c55db92C8F81ce90","5","UDROX");
```

{% endcode %}

or custom contract

{% code overflow="wrap" %}

```javascript
walletudrox.transaction("0x0B77E2947375318fb0F6395A0C36855628685D0a","5","0xa8ce8aee21bc2a48a5ef670afcc9274c7bbbc035");
```

{% endcode %}

### walletudrox.changeNet (method)

Allows the client user to change the network they work with in their app

```javascript
// best way to use onclick
walletudrox.changeNet();
```

### walletudrox.changeAccount (method)

Allows the client user to change the udrox wallet account with which they work in their app

```javascript
// best way to use onclick
walletudrox.changeAccount();
```

### walletudrox.useContract (Method)

The implementation of the useContract method is not necessary if the [DEFAULT CONTRACTS AND NETS](/reference/default-crypto-assets.md) are used

If we want a client to add a contract before making a transaction, we can use this method

```javascript
// best way to use onclick
walletudrox.useContract("USDC");
```

If we want to work with our custom contracts we must make the client agree to add to the Wallet Udrox

{% code overflow="wrap" %}

```javascript
// best way to use onclick
walletudrox.useContract("0xdC33B264de35cF207c661FE37Cb16447F09b74B4","https://wallet.udrox.com/wallet/img/criptos/copc-ico.png");
```

{% endcode %}

Parameters

1. (String) Contract Address
2. (String) Url image for Wallet Udrox

So we can add a personalized contact with whom I want to operate

### walletudrox.useNet (Method)

With this function we make the client user integrate into an udrox wallet some [DEFAULT NETWORKS](/reference/default-networks.md) or a network added from walletudrox.addNet

```javascript
// best way to use onclick
walletudrox.useNet("MINTME");
```

### walletudrox.addNet - Custom (if working with custom networks) (Method)&#x20;

An example of using addNet:

{% code overflow="wrap" fullWidth="true" %}

```javascript
walletudrox.addNet("1101","https://zkevm-rpc.com","Polygon zkEVM Network","ETH","https://zkevm.polygonscan.com");
```

{% endcode %}

<table><thead><tr><th width="257">Parameters (Strings)</th><th>Explanation</th></tr></thead><tbody><tr><td>"1101"</td><td>Indicates the NETWORK ID</td></tr><tr><td>"https://zkevm-rpc.com"</td><td>Network RCP</td></tr><tr><td>"Polygon zkEVM Network"</td><td>Network name</td></tr><tr><td>"ETH"</td><td>Main currency abbreviation</td></tr><tr><td>"https://zkevm.polygonscan.com"</td><td>Url where transactions can be scanned</td></tr></tbody></table>

This step is only necessary the network is not default in udrox you can SEE DEFAULT NETWORKS
