Create custodial wallet
curl --request POST \
--url https://api.privy.io/v1/custodial_wallets \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--header 'privy-app-id: <privy-app-id>' \
--data '
{
"chain": "tempo",
"provider": "bridge",
"provider_user_id": "1234567890"
}
'HttpResponse<String> response = Unirest.post("https://api.privy.io/v1/custodial_wallets")
.header("privy-app-id", "<privy-app-id>")
.header("Authorization", "Basic <encoded-value>")
.header("Content-Type", "application/json")
.body("{\n \"chain\": \"tempo\",\n \"provider\": \"bridge\",\n \"provider_user_id\": \"1234567890\"\n}")
.asString();const options = {
method: 'POST',
headers: {
'privy-app-id': '<privy-app-id>',
Authorization: 'Basic <encoded-value>',
'Content-Type': 'application/json'
},
body: JSON.stringify({chain: 'tempo', provider: 'bridge', provider_user_id: '1234567890'})
};
fetch('https://api.privy.io/v1/custodial_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://api.privy.io/v1/custodial_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([
'chain' => 'tempo',
'provider' => 'bridge',
'provider_user_id' => '1234567890'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Basic <encoded-value>",
"Content-Type: application/json",
"privy-app-id: <privy-app-id>"
],
]);
$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://api.privy.io/v1/custodial_wallets"
payload := strings.NewReader("{\n \"chain\": \"tempo\",\n \"provider\": \"bridge\",\n \"provider_user_id\": \"1234567890\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("privy-app-id", "<privy-app-id>")
req.Header.Add("Authorization", "Basic <encoded-value>")
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))
}{
"id": "id2tptkqrxd39qo9j423etij",
"address": "0xB00F0759DbeeF5E543Cc3E3B07A6442F5f3928a2",
"chain": "tempo",
"chain_type": "ethereum",
"custody": {
"provider": "bridge",
"provider_user_id": "1234567890"
},
"policy_ids": [],
"additional_signers": [],
"owner_id": null
}Wallets
Create custodial wallets
Create a custodial wallet on Tempo, Base, or Solana.
POST
/
v1
/
custodial_wallets
Create custodial wallet
curl --request POST \
--url https://api.privy.io/v1/custodial_wallets \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--header 'privy-app-id: <privy-app-id>' \
--data '
{
"chain": "tempo",
"provider": "bridge",
"provider_user_id": "1234567890"
}
'HttpResponse<String> response = Unirest.post("https://api.privy.io/v1/custodial_wallets")
.header("privy-app-id", "<privy-app-id>")
.header("Authorization", "Basic <encoded-value>")
.header("Content-Type", "application/json")
.body("{\n \"chain\": \"tempo\",\n \"provider\": \"bridge\",\n \"provider_user_id\": \"1234567890\"\n}")
.asString();const options = {
method: 'POST',
headers: {
'privy-app-id': '<privy-app-id>',
Authorization: 'Basic <encoded-value>',
'Content-Type': 'application/json'
},
body: JSON.stringify({chain: 'tempo', provider: 'bridge', provider_user_id: '1234567890'})
};
fetch('https://api.privy.io/v1/custodial_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://api.privy.io/v1/custodial_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([
'chain' => 'tempo',
'provider' => 'bridge',
'provider_user_id' => '1234567890'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Basic <encoded-value>",
"Content-Type: application/json",
"privy-app-id: <privy-app-id>"
],
]);
$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://api.privy.io/v1/custodial_wallets"
payload := strings.NewReader("{\n \"chain\": \"tempo\",\n \"provider\": \"bridge\",\n \"provider_user_id\": \"1234567890\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("privy-app-id", "<privy-app-id>")
req.Header.Add("Authorization", "Basic <encoded-value>")
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))
}{
"id": "id2tptkqrxd39qo9j423etij",
"address": "0xB00F0759DbeeF5E543Cc3E3B07A6442F5f3928a2",
"chain": "tempo",
"chain_type": "ethereum",
"custody": {
"provider": "bridge",
"provider_user_id": "1234567890"
},
"policy_ids": [],
"additional_signers": [],
"owner_id": null
}Authorizations
Headers
Body
application/json
The input for creating a custodial wallet.
Response
200 - application/json
Newly created custodial wallet.
Information about a custodial wallet.
Was this page helpful?

