Skip to main content
@ensc/sdk

Authorizations

Authorization
string
header
required

Your secret key, generated in the ProsperaVest dashboard (Sandbox or Live). Send as: Authorization: Bearer ensc_live_sk_...

Headers

X-ENSC-Key-Id
string
Example:

"sig_01HXY..."

Query Parameters

type
enum<string>
required
Available options:
crypto-issue,
crypto-redeem
chain
string
required
Required string length: 2 - 40
pair
enum<string>
required
Available options:
USDC,
USDT,
CELO
amount
string
required
Maximum string length: 60
Pattern: ^\d+(\.\d+)?$

Response

Sealed response

ENSC-RESP-V1. HPKE (RFC 9180; DHKEM(X25519, HKDF-SHA256), HKDF-SHA256, ChaCha20-Poly1305) seal of the plaintext JSON response to the merchant signing key named by X-ENSC-Key-Id (Ed25519 key converted to X25519). info = "ENSC-RESP-V1\n{requestId}". The body is signed by ENSC: X-ENSC-Signature over "ENSC-RESP-V1\n{requestId}\n{timestamp}\n{sha256(body)}". Returned for sk/rk merchant keys only.

v
enum<number>
required
Available options:
1
enc
string
required
Pattern: ^[A-Za-z0-9_-]{43}$
ciphertext
string
required
Pattern: ^[A-Za-z0-9_-]{22,}$