v2
latestOpenAPI 3.0.12026-07-26334612609.5 KBWallets
Creates a new wallet for the user (deprecated - use /environments/{environmentId}/users/{userId}/wallets instead)
Creates a new wallet for the user. Note that this API is not meant for creating embedded wallets. To create embedded wallets use the /embeddedWallets endpoint.
post/users/{userId}/wallets
Path parameters
userIdstring required
Example:95b11417-f18f-457f-8804-68e361f9164f
UUID of the user
Request body
Example request
{
"publicWalletAddress": "0xbF394748301603f18d953C90F0b087CBEC0E1834",
"walletName": "An example name"
}Response
Successfully created new wallet for the user
Example response
{
"id": "95b11417-f18f-457f-8804-68e361f9164f",
"name": "An example name",
"publicKey": "0xbF394748301603f18d953C90F0b087CBEC0E1834",
"properties": {
"turnkeySubOrganizationId": "95b11417-f18f-457f-8804-68e361f9164f",
"turnkeyPrivateKeyId": "95b11417-f18f-457f-8804-68e361f9164f",
"turnkeyHDWalletId": "95b11417-f18f-457f-8804-68e361f9164f",
"turnkeyUserId": "95b11417-f18f-457f-8804-68e361f9164f"
}
}