💰 Need Test Tokens? Visit the Chronicle Yellowstone
Faucet to get test tokens
for your EOA account.
Overview
The Payment Manager demonstrates Lit Protocol’s payment system - a billing system for decentralised cryptographic services. Users pay for compute resources on the Lit network to access core services like:- Encryption/Decryption - Secure data with programmable access control
- PKP Signing - Cryptographic keys that can sign transactions based on conditions
- Lit Actions - Serverless functions with cryptographic capabilities
1
Payment Manager Setup
2
Create an account
3
Deposit funds
Auth Service API Endpoints
Leverage the hosted Auth Service to manage delegation without exposing private keys in your application:POST /register-payer- Send yourx-api-keyheader to receive a delegated payer address andpayerSecretKey. Persist this secret securely; it is required for all future delegation calls.POST /add-users- Provide headersx-api-keyandpayer-secret-keyplus a JSON body containing an array of user addresses. The Auth Service uses the Payment Manager internally to delegate payments to each address in a single transaction.
The legacy capacity-credit minting flow has been removed. Payment delegation now interacts directly with the Payment Manager contracts.
How the Auth Service derives payer wallets
- The service holds a single root mnemonic (
LIT_DELEGATION_ROOT_MNEMONIC). /register-payercombines thex-api-keyheader with a freshly generatedpayerSecretKey. That pair is hashed into a deterministic derivation index, which is then used with the root mnemonic to derive a unique child wallet.- The response includes the derived wallet address and the random
payerSecretKey. The server does not store this secret; you must persist it securely on the client side. - Later,
/add-usersexpects both headers (x-api-keyandpayer-secret-key). The service recomputes the same derivation index and wallet on the fly, so the same header pair always maps to the same child wallet. - Calling
/register-payeragain with the same API key issues a new randompayerSecretKey, which leads to a different child wallet. Choose whether to rotate secrets or keep the original one depending on your application needs.