- Install the Gateway SDK
- Creating a Gateway Client
- Interacting with the Protocol for various operations
1
Install @gateway-dao/sdk
First begin by installing the
@gateway-dao/sdk package.2
Setup the Gateway Client
You will need an API Key and Bearer token to authenticate with the Gateway Protocol.
You can obtain these from the Gateway Dashboard.To setup the gateway client we will authenticate with a bearer-token and a Api key as follows:
Node.js
3
Interacting with the Gateway Protocol
Now that we have setup the Gateway Client, we can interact with the Gateway Protocol for various operations.
Create a PDA
Node.js