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 header
field 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 libcurl
but the ESP32 example needs the certificate to be linked into the program.openssl s_client -showcerts -verify 5 -connect api.testnet.algoexplorer.io:443
main.c
file:Weak implementation of http_init
is printed along with a fatal error from main.c:29
, meaning the Vertices library initialization failed with code error: 0x3
.init
, get
, post
& 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.