Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

Generate Wallet

Generate a new wallet address for a customer.

Endpoint: POST /wallets/generate-wallet

Authentication: Required (x-api-key for live, x-staging-api-key for test)

Request Body

{
  "network": "bitcoin",
  "customer": "{\"email\":\"jean@email.com\",\"first_name\":\"Jean\",\"last_name\":\"Billy\"}"
}

Request Parameters

Parameter
Type
Required
Description

network

string

Yes

Network code to parse in requests. Use values like bitcoin, erc20, bep20, trc20

customer

string | object

Yes

Customer details. JSON string or object with email, first_name, last_name

Example Request

curl -X POST https://service.roqqu.com/v1/wallets/generate-wallet \
  -H "Content-Type: application/json" \
  -d '{
    "network": "bitcoin",
    "customer": "{\"email\":\"jean@email.com\",\"first_name\":\"Jean\",\"last_name\":\"Billy\"}"
  }'

Example Response

Error Responses

Unsupported network:

Wallet generation disabled for network:

Wallet generation failed:

Invalid / missing customer fields:

Missing required body field:

Last updated