# Initialization

Constructor

Initializes the SDK with the required parameters.

**Syntax**

{% tabs %}
{% tab title="JavaScript" %}

```javascript
constructor(providerUrl, predictProAddress, predictProABI, usdbABI, apiConfig)
```

{% endtab %}
{% endtabs %}

**Parameters**

* <mark style="color:green;">**providerUrl**</mark>**:** URL of the Ethereum node provider (e.g., Infura, Alchemy).
* <mark style="color:green;">**predictProAddress**</mark>**:** Address of the PredictPro smart contract.
* <mark style="color:green;">**predictProABI**</mark>**:** ABI of the PredictPro contract.
* <mark style="color:green;">**usdbABI**</mark>: ABI of the USDB token contract.
* <mark style="color:green;">**apiConfig**</mark>: Configuration for external APIs:
  * <mark style="color:green;">baseUrl</mark>: API's base URL.
  * <mark style="color:green;">apiKey</mark>: API key for authentication (Reach out to @nvzvhenry to get an API key).

**Example**

{% tabs %}
{% tab title="JavaScript" %}

```javascript
const sdk = new PredictProSDK(
    "https://mainnet.infura.io/v3/YOUR_INFURA_KEY",
    "0xPredictProContractAddress",
    predictProABI,
    usdbABI,
    { baseUrl: "https://api.example.com", apiKey: "API_KEY (Reach out to @nvzvhenry to get an API key)" }
);

```

{% endtab %}
{% endtabs %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://scorefam.gitbook.io/scorefam-whitepaper/appendix/developer-integration-predictpro-sdk/initialization.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
