# constructor

The constructor initializes the SDK and sets the RPC endpoint used for network calls.&#x20;

```
public constructor(config: Config, decimalFetcher?: DecimalFetcher)
```

<table><thead><tr><th width="184">Name</th><th width="158.33333333333331">Type</th><th>Description</th></tr></thead><tbody><tr><td>config</td><td>config</td><td>This includes the rpcURL, the endpoint that data will be acquired through.</td></tr><tr><td>decimalFetcher</td><td>decimalFetcher (<strong>optional</strong>) </td><td><p>This optional parameter allows flexibility to get only the decimals of tokens that will be used. <br></p><p>If unspecified, it is automatically generated and will fetch the decimals of all tokens. </p></td></tr></tbody></table>
