vertices_new()and passing the vertex configuration. Let's see what are the configuration parameters needed.
url: the base URL, in the case of Algorand we can think about Algoexplorer, Purestake, or even your local node (
localhost). Make sure to provide the API on the network you want. The Testnet will always be used in the examples.
port: the server port for the HTTP connection.
header: some API providers require a specific header to pass an authorization token, for example, that's the case of Purestake. The
headerfield will let the user pass those specific headers. Other headers might be appended as well in the HTTP calls.
cert_pem: some HTTP clients need the provider certificates. That's not the case on Unix when using
libcurlbut the ESP32 example needs the certificate to be linked into the program.
Weak implementation of http_initis printed along with a fatal error from
main.c:29, meaning the Vertices library initialization failed with code error:
close. Implementing those functions cannot be done right from the SDK as we don't know the target you are trying to use and the underlying HTTP stack.