Configuration
- React
- REST
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Configure a passkey signer for wallet creation using WebAuthn biometrics.
import { useWallet } from '@crossmint/client-sdk-react-ui';
const { getOrCreateWallet } = useWallet();
const wallet = await getOrCreateWallet({
chain: "base",
signer: {
type: "passkey",
},
});
id is the credential identifier, name is a human-readable label for the passkey, and publicKey.x / publicKey.y are the public key coordinates from the registration response. In the browser, you can implement this registration flow using a WebAuthn helper library such as @simplewebauthn/browser.curl --request POST \
--url https://staging.crossmint.com/api/2025-06-09/wallets \
--header 'Content-Type: application/json' \
--header 'X-API-KEY: <x-api-key>' \
--data '{
"chainType": "evm",
"config": {
"adminSigner": {
"type": "passkey",
"id": "cWtP7gmZbd98HbKUuGXx5Q",
"name": "hgranger",
"publicKey": {
"x": "38035223810536273945556366218149112558607829411547667975304293530457502824247",
"y": "91117823763706733837104303008228095481082989039135234750508288790583476078729"
}
}
}
}'
const url = 'https://staging.crossmint.com/api/2025-06-09/wallets';
const payload = {
chainType: "evm",
config: {
adminSigner: {
type: "passkey",
id: "cWtP7gmZbd98HbKUuGXx5Q",
name: "hgranger",
publicKey: {
x: "38035223810536273945556366218149112558607829411547667975304293530457502824247",
y: "91117823763706733837104303008228095481082989039135234750508288790583476078729"
}
}
}
};
const options = {
method: 'POST',
headers: {
'X-API-KEY': '<x-api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify(payload)
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
import requests
url = "https://staging.crossmint.com/api/2025-06-09/wallets"
payload = {
"chainType": "evm",
"config": {
"adminSigner": {
"type": "passkey",
"id": "cWtP7gmZbd98HbKUuGXx5Q",
"name": "hgranger",
"publicKey": {
"x": "38035223810536273945556366218149112558607829411547667975304293530457502824247",
"y": "91117823763706733837104303008228095481082989039135234750508288790583476078729"
}
}
}
}
headers = {
"X-API-KEY": "<x-api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.json())
Was this page helpful?
