Skip to main content

Authentication

ASG uses Solana wallet signatures for authentication — no API keys or passwords.

How It Works

Benefits

Traditional AuthWallet Auth
API keys can leakPrivate key stays local
Keys need managementWallet handles security
Central revocationSelf-sovereign
Separate identitySame identity as payments

Implementation

TypeScript SDK

The SDK handles authentication automatically:
import { ASGClient } from '@asgcompute/sdk';

const client = new ASGClient({
  wallet: yourKeypair,
  // Authentication is automatic
});

Manual Authentication

For direct API access, include payment signature:
{
  "params": {
    "_meta": {
      "payment": {
        "tx_signature": "your-solana-tx-signature"
      }
    }
  }
}

Security Considerations

Never share your private key. ASG will never ask for it. Only wallet signatures are sent over the network.

Wallet Support

Compatible with any Solana wallet:
  • Phantom
  • Solflare
  • Backpack
  • CLI wallets