wallets
Create a new embedded wallet given an email.
Creates a new embedded wallet for a user given an email. If the email is not associated with a user, this call will also create a new user.
POST
/
environments
/
{environmentId}
/
embeddedWallets
Authorization
Path
Body
curl --request POST \
--url https://app.dynamicauth.com/api/v0/environments/{environmentId}/embeddedWallets \
--header 'Authorization: <authorization>' \
--header 'Content-Type: application/json' \
--data '{
"chain": "ETH",
"identifier": "<string>",
"type": "email"
}'
{
"user": {
"alias": "<string>",
"btcWallet": "<string>",
"ckbWallet": "<string>",
"country": "US",
"discordNotification": true,
"dogeWallet": "<string>",
"email": "jsmith@example.com",
"emailNotification": true,
"firstName": "<string>",
"firstVisit": "2023-11-07T05:31:56Z",
"id": "95b11417-f18f-457f-8804-68e361f9164f",
"jobTitle": "<string>",
"kasWallet": "<string>",
"kdaWallet": "<string>",
"lastName": "<string>",
"lastVisit": "2023-11-07T05:31:56Z",
"ltcWallet": "<string>",
"metadata": {},
"newUser": true,
"newsletterNotification": true,
"phoneNumber": "<string>",
"policiesConsent": true,
"projectEnvironmentId": "95b11417-f18f-457f-8804-68e361f9164f",
"tShirtSize": "<string>",
"team": "<string>",
"username": "<string>",
"verifiedCredentials": [],
"chain": "ETH",
"chainalysisChecks": [],
"createdAt": "2023-11-07T05:31:56Z",
"oauthAccounts": [],
"sessions": [],
"updatedAt": "2023-11-07T05:31:56Z",
"wallet": "<string>",
"walletPublicKey": "<string>",
"wallets": []
}
}
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
Body
application/json
chain
enum<string>
requiredAvailable options:
ETH
, EVM
, FLOW
, SOL
, ALGO
, STARK
, COSMOS
identifier
string
requiredIdentifier for the user. Must be either an email or user id.
type
enum<string>
requiredAvailable options:
email
, id
Response
200 - application/json
user
object
Was this page helpful?
curl --request POST \
--url https://app.dynamicauth.com/api/v0/environments/{environmentId}/embeddedWallets \
--header 'Authorization: <authorization>' \
--header 'Content-Type: application/json' \
--data '{
"chain": "ETH",
"identifier": "<string>",
"type": "email"
}'
{
"user": {
"alias": "<string>",
"btcWallet": "<string>",
"ckbWallet": "<string>",
"country": "US",
"discordNotification": true,
"dogeWallet": "<string>",
"email": "jsmith@example.com",
"emailNotification": true,
"firstName": "<string>",
"firstVisit": "2023-11-07T05:31:56Z",
"id": "95b11417-f18f-457f-8804-68e361f9164f",
"jobTitle": "<string>",
"kasWallet": "<string>",
"kdaWallet": "<string>",
"lastName": "<string>",
"lastVisit": "2023-11-07T05:31:56Z",
"ltcWallet": "<string>",
"metadata": {},
"newUser": true,
"newsletterNotification": true,
"phoneNumber": "<string>",
"policiesConsent": true,
"projectEnvironmentId": "95b11417-f18f-457f-8804-68e361f9164f",
"tShirtSize": "<string>",
"team": "<string>",
"username": "<string>",
"verifiedCredentials": [],
"chain": "ETH",
"chainalysisChecks": [],
"createdAt": "2023-11-07T05:31:56Z",
"oauthAccounts": [],
"sessions": [],
"updatedAt": "2023-11-07T05:31:56Z",
"wallet": "<string>",
"walletPublicKey": "<string>",
"wallets": []
}
}