Onboarding
Onboarding verifies that the caller owns the StarkNet address and enters them into the database. This call is idempotent.
An account onboarded under an Ethereum account can prove that the Ethereum
account agreed to the link by sending PARADEX-PARENT-SIWE-MESSAGE and
PARADEX-PARENT-SIGNATURE. The message is a Sign-In with Ethereum
(EIP-4361) message, base64 encoded, and the signature is the Ethereum
account’s personal_sign over it, 0x-prefixed hex. The message must have:
-
statement: the line below, where
<account>is the Paradex account address in lowercase hex with the0xprefix and no leading zeros, and<chain>isstarknet_chain_idfromGET /system/config; -
address: the Ethereum account;
-
domain: the Paradex app domain, as for
/v2onboarding; -
chain ID:
l1_chain_idfromGET /system/config; -
issued at within the last 5 minutes, and an expiration time at most 5 minutes after it (30 seconds when omitted).
Only an externally owned Ethereum account can produce this signature; a smart contract wallet cannot.
A retry of an onboarding whose deployment failed needs these headers too, signed by the Ethereum account the account was first onboarded under. Calls for an account that is already onboarded do not need them.
Headers
Base64 Sign-In with Ethereum message linking the Ethereum account as the parent of this account
EIP-191 personal_sign by the Ethereum account over PARADEX-PARENT-SIWE-MESSAGE, 0x-prefixed hex
Request
Onboarding user public_key and optional referral_code or marketing_code
UTM tracking parameters (optional).