wallets
Creates a new embedded wallet for a user given an identifier
Creates a new embedded wallet for a user given an email or userId. If an email is provided and it is not associated with an existing user this call will also create a new user.
POST
/
environments
/
{environmentId}
/
embeddedWallets
Authorizations
Authorization
string
headerrequiredBearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Path Parameters
environmentId
string
requiredID of the environment
Required string length:
36
Body
application/json
identifier
string
requiredIdentifier for the user. Must be either an email, phone number, user id, external user id, or username from a supported social provider
type
enum<string>
requiredAvailable options:
email
, id
, externalUserId
, phoneNumber
, socialUsername
chains
enum<string>[]
The chains to create the wallet for
Available options:
EVM
, SOL
chain
enum<string>
Available options:
EVM
, SOL
smsCountryCode
object
socialProvider
enum<string>
Available options:
emailOnly
, magicLink
, apple
, bitbucket
, coinbasesocial
, discord
, facebook
, farcaster
, github
, gitlab
, google
, instagram
, linkedin
, microsoft
, twitch
, twitter
, blocto
, banxa
, dynamic
, alchemy
, zerodev
, telegram
, turnkey
, coinbaseWaas
, sms
Response
200 - application/json
user
object