Skip to main content
POST
Provision a core account with a referral code

Body

application/json
code
string
required

Referral code to consume for signup.

Example:

"ALICE"

wallet
string
required

Base58 Solana wallet address being provisioned.

Example:

"GmQozSzrtMjXt5F1Bed8Vrt55zCbiga8vDZr47RX9wC8"

message
string
required

Purpose-bound signup message signed by the wallet. The referral code line must use the normalized code value, meaning trimmed and uppercased. The nonce line must carry a server-issued nonce from POST /v1/onboarding/nonce; each nonce is single-use.

Example:

"Sign up for Joyride\n\nWallet: GmQozSzrtMjXt5F1Bed8Vrt55zCbiga8vDZr47RX9wC8\nReferral code: ALICE\nNonce: 4Wz9pJb1rQx7cVd2mKf8sT3u"

signature
string
required

Base58 Ed25519 signature over message.

Example:

"3Qf2Bz..."

Response

Account exists or was created for the wallet

provisioned
boolean
required

True when the wallet has a core account after this request.

Example:

true

account_id
integer
required

Core account id assigned to this wallet.

Example:

1000000

created
boolean
required

True when this request submitted a fresh core account_create.

Example:

true