Token API
Mint and transfer endpoints run every compliance check, then return an unsigned Token-2022 transaction. Passify never signs or holds funds.
Mint
POST
/token/mintAPI keyBuilds a mint transaction. Requires a valid attestation that satisfies the asset's rules.
| Field | Type | Description |
|---|---|---|
user_pubkey | string | Recipient wallet (base58). |
mint_config | string | Token configuration slug, e.g. us_real_estate_fund_v1. |
amount | string | Amount to mint. |
curl -X POST https://passify.biz/api/v1/token/mint \
-H "Authorization: Bearer passify_live_xxx" \
-H "Content-Type: application/json" \
-d '{ "user_pubkey": "7xKXtg2...", "mint_config": "us_real_estate_fund_v1", "amount": "1000" }'{ "status": "success", "unsigned_transaction_base64": "AQABA..." }Transfer
POST
/token/transferAPI keyBuilds a transfer transaction after checking the sender's attestation and runtime rules.
| Field | Type | Description |
|---|---|---|
mint_config | string | Token configuration slug. |
sender | string | Sending wallet (base58). |
recipient | string | Receiving wallet (base58). |
amount | string | Amount to transfer. |
curl -X POST https://passify.biz/api/v1/token/transfer \
-H "Authorization: Bearer passify_live_xxx" \
-H "Content-Type: application/json" \
-d '{ "mint_config": "us_real_estate_fund_v1", "sender": "7xKXtg2...", "recipient": "4mNp...", "amount": "500" }'Compliance errors
A failed check returns 403 with a specific reason and no transaction:
{ "error": "rule_violation", "detail": "min_investment_usd_100", "request_id": "a1b2c3d4" }error | Cause |
|---|---|
attestation_required | No valid attestation for the wallet. |
attestation_expired | Attestation has lapsed. |
rule_violation | A compliance rule failed; see detail. |
Last updated