Create a Lighter API key pair ready for L1 signing
Generates a new API key pair and returns a message for the frontend to sign with the L1 wallet before registration
x-api-key<token>
In: header
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
curl -X POST "https://example.com/misc/lighter/create-api-key" \ -H "Content-Type: application/json" \ -d '{ "accountIndex": 0, "apiKeyIndex": 0 }'{ "privateKey": "string", "publicKey": "string", "apiKeyIndex": 0, "messageToSign": "string", "txInfo": "string"}