Skip to main content
POST
/
environments
/
{environmentId}
/
embeddedWallets
/
farcaster
Creates a new embedded wallet. This API is meant to be called from a frame server.
curl --request POST \
  --url https://app.dynamicauth.com/api/v0/environments/{environmentId}/embeddedWallets/farcaster \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "email": "jsmith@example.com",
  "fid": 123,
  "chains": [
    "EVM"
  ]
}
'
{}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

environmentId
string
required

ID of the environment

Required string length: 36
Pattern: ^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$
Example:

"95b11417-f18f-457f-8804-68e361f9164f"

Body

application/json

Pregenerate embedded wallet for frame server request

email
string<email>
required

Identifier for the user. Must be an email

fid
number
required

Farcaster ID of the user

chains
enum<string>[]
required

The chains to create the wallets for

Available options:
EVM,
SOL,
SUI,
BTC,
TON

Response

Wallet(s) already exists for the user

user
object