Getting started
This section is dedicated to providing a comprehensive guide on installing and setting up the PAKT SDK in your NodeJS project.
Last updated
This section is dedicated to providing a comprehensive guide on installing and setting up the PAKT SDK in your NodeJS project.
Last updated
To use the PAKT SDK, you first need to install it using npm
command. To do so, run:
or
Your API requests are authenticated using API keys. Any request that doesn't include an API key will return an error.
You can access or generate your API key from the control panel tab within Pakt's Command Center. Before attempting to access, ensure you have a paid and deployed Chainsite.
To initialize, use the following code block:
Making calls with the PAKT SDK is straightforward. Refer to the code blocks below for examples. The SDK is also typed with the models and includes a default wrapper.ResponseDto<T>
.
ResponseDto<T>
Is declared as:
The above code initializes the PAKT SDK and ensures the Command Centre generates the API Key