POST
/
v1-alpha1
/
wallets
curl --request POST \
  --url https://staging.crossmint.com/api/v1-alpha1/wallets \
  --header 'Content-Type: application/json' \
  --header 'X-API-KEY: <api-key>' \
  --data '{
  "chain": "arbitrum",
  "email": "<string>"
}'
{
  "chain": "ethereum",
  "publicKey": "0xB364346FDb52e42CcC186b3BA3730cb4A87bF5B0"
}

This is an alpha API and subject to change.

This API enables creating a wallet for a user. You have three options for user identification: email address, custom (user id), and phone number.

The option used to create the wallet will impact the ways it can be used.

  • email: user can login to Crossmint to access and manage their NFTs
  • userId: your project MUST implement the interface as these wallets cannot login to Crossmint
  • phoneNumber: coming soon (will function like email)

Authorizations

X-API-KEY
string
headerrequired

Obtained in the Crossmint developer console

Body

application/json
  • email

  • userId

chain
enum<string>
default: ethereumrequired

Specify the name of the blockchain

Available options:
arbitrum,
arbitrumnova,
arbitrum-sepolia,
base,
base-sepolia,
bsc,
cardano,
ethereum,
ethereum-sepolia,
optimism,
optimism-sepolia,
polygon,
solana,
zkatana,
zora,
zora-sepolia
email
string
required

Provide an email for this wallet to be associated to

Response

200 - application/json
chain
string

The blockchain the wallet is on

publicKey
string

The address of the created wallet