Bloock
Provides a centralized configuration for the Bloock SDK library. For information about Bloock SDK in Go, see https://bloock.com.
- Full name:
\Bloock\Bloock
Properties
apiKey
Is a string variable representing the API key used for authentication with the Bloock SDK, create here.
public static string $apiKey
- This property is static.
identityApiHost
Is a string variable representing the host URL used for Identity Managed API, required to be set for identity-related features of the Bloock SDK.
public static string $identityApiHost
- This property is static.
apiHost
Is a string variable representing the host URL used for API communication with the Bloock SDK.
public static string $apiHost
- This property is static.
networkConfig
Is an array variable that holds network configurations associated with specific network IDs in the Bloock SDK.
public static array $networkConfig
- This property is static.
Methods
setProvider
Sets the HTTP provider for the specified network in the Bloock SDK configuration.
public static setProvider(\Bloock\Network $network, string $provider): void
- This method is static.
Parameters:
Parameter | Type | Description |
---|---|---|
$network | \Bloock\Network | |
$provider | string |
setContractAddress
Sets the contract address for the specified network in the Bloock SDK configuration.
public static setContractAddress(\Bloock\Network $network, string $contractAddress): void
- This method is static.
Parameters:
Parameter | Type | Description |
---|---|---|
$network | \Bloock\Network | |
$contractAddress | string |
Automatically generated on 2024-04-02