Links

Authentication

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.

Retrieve JWT token using dApp

  1. 1.
    Log in at dapp.golden.xyz by connecting your wallet.
  2. 2.
    Navigate to your /profile page.
  3. 3.
    Click the 'GraphQL Token' toggle. Your token will be shown below.
  4. 4.
    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).
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.
Copying auth token from dApp /profile page
Example token headers in GraphiQL