Providers
Instantiate the Vertices library and configure the provider.
Create
Parameters
config
pointer to config.
Here is an example of configuration for a node (algod
) running locally on my machine. Comments give a configuration with Algoexplorer's API.
Return codes
VTC_SUCCESS
on successVTC_ERROR_INTERNAL
if HTTP client cannot be initialized
Health
Return codes
VTC_SUCCESS
when API can be reachedVTC_HTTP_ERROR
when an error occurs
Version
Parameters
Pointer to provider_version_t
structure that will be filled by the function.
Return codes
VTC_SUCCESS
whenversion
has been filled with node infoVTC_ERROR_OFFLINE
when node cannot be reached to get info. Version could still be filled with information from a previous call.