description |
---|
Gain programmatic access to the Golden Protocol |
Some queries and mutations will require authentication using your user account and wallet address. Note: When using the Python SDK you may retrieve your token programmatically.
- Log in at dapp.golden.xyz by connecting your wallet.
- Navigate to your /profile page.
- Click the 'GraphQL Token' toggle. Your token will be shown below.
- To use this token, add it to your request headers. Example headers:
{ "Authorization": "Bearer <your-token-here>" }
. In GraphiQL, these headers may be added at the bottom of the page (as shown below).
{% hint style="danger" %} Your authentication token is session-based and designed to expire periodically. Unlike a traditional API key, it is good practice to retrieve a new JWT token frequently. {% endhint %}
Copying auth token from dApp /profile page