API Functions Reference
This section provides detailed information about the API functions available in the Gopher SDK. Use this reference to understand how to utilize the API functions in your decentralized applications (DApps).
API Functions
setBaseUrl(url: string): void
Sets the base URL for the API.
Parameters
url
: The base URL to be used for API requests.
Example
setBaseUrl("https://new-api-url.com/");
getSupportedChains(): Promise<Chain[]>
Fetches the supported blockchain networks.
Returns
Promise<Chain[]>
: A promise that resolves to an array of chain objects.