Getting started

If you’re building applications, you have a few paths you can take to get started with payments:
  1. Email hello@protocol.org to get api key
  2. Launch coral server in interactive setup payment mode
./gradlew run --args="--interactive-keygen-crossmint"
//1. set up api key
Enter crossmint API key:example_api_key
//2. create wallet and auth
https://paymentlogin.coralprotocol.org/crossmint#pubkey=
//3. enter credentials
Enter your wallet public address from the sign in page:
your_wallet_address_created_at_crossmint
Enter your crossmint affiliated email:
email@coralprotocol.org
  1. For agent developers call claim as your agent spends:
curl 'http://CORAL_API_URL/api/v1/internal/claim/{remoteSessionId}' \
  --request POST \
  --header 'Content-Type: application/json' \
  --data '{
  "amount": {
    "type": "coral",
    "amount": 1
  }
}'
CORAL_API_URL is environment variable that is being set by coral server more details here https://docs.coralprotocol.org/guides/writing-agents#orchestration-environment