Skip to main content
GET
/
v1
/
pubkey
Get Aggregator Public Key
curl --request GET \
  --url https://b2b.usetapp.xyz/v1/pubkey
{
  "status": "success",
  "message": "OK",
  "data": "-----BEGIN PUBLIC KEY-----\nMIIBIjANBgkqhkiG9w0BAQ...\n-----END PUBLIC KEY-----"
}
Returns the PEM-encoded RSA public key the settlement aggregator uses to encrypt the messageHash (recipient details) argument of createOrder. For non-custodial EVM/Starknet orders you normally do not need this — Rails builds the encrypted messageHash for you and returns it in the create-order response. This endpoint is provided for clients that encrypt the recipient themselves.

Response

status
string
Response state (success).
data
string
PEM-encoded RSA public key.
{
  "status": "success",
  "message": "OK",
  "data": "-----BEGIN PUBLIC KEY-----\nMIIBIjANBgkqhkiG9w0BAQ...\n-----END PUBLIC KEY-----"
}