🛫Initialization
The PredictPro SDK provides a comprehensive interface to interact with the PredictPro smart contract and associated APIs. It enables seamless interaction with features like tournament registration,etc
Constructor
Initializes the SDK with the required parameters.
Syntax
Parameters
providerUrl: URL of the Ethereum node provider (e.g., Infura, Alchemy).
predictProAddress: Address of the PredictPro smart contract.
predictProABI: ABI of the PredictPro contract.
usdbABI: ABI of the USDB token contract.
apiConfig: Configuration for external APIs:
baseUrl: API's base URL.
apiKey: API key for authentication (Reach out to @nvzvhenry to get an API key).
Example
Last updated