Live on Base with Ewance

See the certificates
API ReferenceReferenceBatches

Retrieve a batch

GET
/batches/{id}

Authorization

BearerAuth
AuthorizationBearer <token>

Bearer token in the Authorization header. Key prefix determines environment: lrn_test_ → Base Sepolia, lrn_live_ → Base mainnet.

In: header

Path Parameters

id*string
Match^bat_[A-Z0-9]{26}$

Response Body

application/json

application/json

application/json

curl -X GET "https://api.learncoin.me/v1/batches/bat_01HXYZABCDEF1234567890ABCD"
{
  "id": "string",
  "status": "pending",
  "credentials_count": 0,
  "created_at": "2019-08-24T14:15:22Z",
  "anchored_at": "2019-08-24T14:15:22Z",
  "environment": "test",
  "merkle_root": "0x7c2f91a8…",
  "anchor_transaction": {
    "chain": "base-mainnet",
    "hash": "0xabcd…ef12",
    "block_number": 0,
    "explorer_url": "http://example.com"
  },
  "credentials": [
    {
      "id": "string",
      "recipient_id": "string",
      "verify_url": "http://example.com"
    }
  ],
  "error": "string"
}
{
  "error": {
    "code": "credential_not_found",
    "message": "string",
    "request_id": "req_01HXYZABCDEF"
  }
}
{
  "error": {
    "code": "credential_not_found",
    "message": "string",
    "request_id": "req_01HXYZABCDEF"
  }
}