Step 1: Prepare Wallet Creation Challenge
Wallet creation API Generates an unsigned wallet creation challenge that must be signed by the user.
{
walletName: string;
chain?: string;
}
{
"payloadId": "auth_intent_abc123",
"payloadToSign": "{\"type\":\"ACTIVITY_TYPE_CREATE_WALLET\",\"organizationId\":\"org_xyz\",\"timestampMs\":\"1698765432000\",\"parameters\":{\"walletName\":\"My Primary Wallet\",\"accounts\":[{\"curve\":\"CURVE_ED25519\",\"pathFormat\":\"PATH_FORMAT_BIP32\",\"path\":\"m/44'/501'/0'/0'\",\"addressFormat\":\"ADDRESS_FORMAT_SOLANA\"}]}}",
"rpId": "localhost"
}