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": "aptos",
"config": "<unknown>",
"owner": "<string>",
"type": "mpc"
}
'import requests
url = "https://staging.crossmint.com/api/2025-06-09/wallets"
payload = {
"chainType": "aptos",
"config": "<unknown>",
"owner": "<string>",
"type": "mpc"
}
headers = {
"X-API-KEY": "<x-api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-API-KEY': '<x-api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({chainType: 'aptos', config: '<unknown>', owner: '<string>', type: 'mpc'})
};
fetch('https://staging.crossmint.com/api/2025-06-09/wallets', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://staging.crossmint.com/api/2025-06-09/wallets",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'chainType' => 'aptos',
'config' => '<unknown>',
'owner' => '<string>',
'type' => 'mpc'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-API-KEY: <x-api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://staging.crossmint.com/api/2025-06-09/wallets"
payload := strings.NewReader("{\n \"chainType\": \"aptos\",\n \"config\": \"<unknown>\",\n \"owner\": \"<string>\",\n \"type\": \"mpc\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-API-KEY", "<x-api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://staging.crossmint.com/api/2025-06-09/wallets")
.header("X-API-KEY", "<x-api-key>")
.header("Content-Type", "application/json")
.body("{\n \"chainType\": \"aptos\",\n \"config\": \"<unknown>\",\n \"owner\": \"<string>\",\n \"type\": \"mpc\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://staging.crossmint.com/api/2025-06-09/wallets")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-API-KEY"] = '<x-api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"chainType\": \"aptos\",\n \"config\": \"<unknown>\",\n \"owner\": \"<string>\",\n \"type\": \"mpc\"\n}"
response = http.request(request)
puts response.read_body{
"address": "0x1234567890123456789012345678901234567890",
"chainType": "aptos",
"type": "smart",
"alias": "my-usdc-wallet",
"config": "<unknown>",
"createdAt": 123,
"owner": "email:test@example.com"
}{
"error": true,
"message": "<error message>",
"code": "DEVICE_SIGNER_NOT_SUPPORTED"
}Create Wallet
Creates a new wallet of specified type. If called with an idempotency key or for a user who already has a wallet, returns existing wallet. When owner is provided, subsequent calls with the same owner will return the existing wallet. Supports both custodial and non-custodial wallet types.
API scope required: wallets.create
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": "aptos",
"config": "<unknown>",
"owner": "<string>",
"type": "mpc"
}
'import requests
url = "https://staging.crossmint.com/api/2025-06-09/wallets"
payload = {
"chainType": "aptos",
"config": "<unknown>",
"owner": "<string>",
"type": "mpc"
}
headers = {
"X-API-KEY": "<x-api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-API-KEY': '<x-api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({chainType: 'aptos', config: '<unknown>', owner: '<string>', type: 'mpc'})
};
fetch('https://staging.crossmint.com/api/2025-06-09/wallets', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://staging.crossmint.com/api/2025-06-09/wallets",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'chainType' => 'aptos',
'config' => '<unknown>',
'owner' => '<string>',
'type' => 'mpc'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-API-KEY: <x-api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://staging.crossmint.com/api/2025-06-09/wallets"
payload := strings.NewReader("{\n \"chainType\": \"aptos\",\n \"config\": \"<unknown>\",\n \"owner\": \"<string>\",\n \"type\": \"mpc\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-API-KEY", "<x-api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://staging.crossmint.com/api/2025-06-09/wallets")
.header("X-API-KEY", "<x-api-key>")
.header("Content-Type", "application/json")
.body("{\n \"chainType\": \"aptos\",\n \"config\": \"<unknown>\",\n \"owner\": \"<string>\",\n \"type\": \"mpc\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://staging.crossmint.com/api/2025-06-09/wallets")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-API-KEY"] = '<x-api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"chainType\": \"aptos\",\n \"config\": \"<unknown>\",\n \"owner\": \"<string>\",\n \"type\": \"mpc\"\n}"
response = http.request(request)
puts response.read_body{
"address": "0x1234567890123456789012345678901234567890",
"chainType": "aptos",
"type": "smart",
"alias": "my-usdc-wallet",
"config": "<unknown>",
"createdAt": 123,
"owner": "email:test@example.com"
}{
"error": true,
"message": "<error message>",
"code": "DEVICE_SIGNER_NOT_SUPPORTED"
}Headers
API key required for authentication
Unique key to prevent duplicate wallet creation
Body
- Aptos wallet creation input
- EVM MPC wallet creation input
- EVM smart wallet creation input
- Solana MPC wallet creation input
- Solana smart wallet creation input
- Stellar wallet creation input
- Sui wallet creation input
Aptos wallet creation input
Response
Returns an existing wallet (200) if one already exists for the provided owner or idempotencyKey, or creates and returns a new wallet (201). The response includes the wallet details and whether it was newly created.
- Aptos wallet output
- EVM wallet output
- Solana wallet output
- Stellar wallet output
- Sui wallet output
Complete wallet configuration including type-specific settings
The onchain address of the wallet
"0x1234567890123456789012345678901234567890"
The blockchain type of the wallet
aptos The wallet type (smart or mpc)
mpc, smart "smart"
The wallet alias
"my-usdc-wallet"
Aptos wallet type specific configuration settings
ISO timestamp of when the wallet was created
The user that owns this wallet in format :
"email:test@example.com"
Was this page helpful?

