Create Crypto Address
curl --request POST \
--url https://api.copper.co/platform/crypto-addresses \
--header 'Content-Type: application/json' \
--data '
{
"address": "<string>",
"cryptoAddressId": "<string>",
"currency": "<string>",
"name": "<string>",
"acceptTokens": true,
"addressTags": [],
"isWhitelist": "false",
"mainCurrency": "<string>",
"memo": "<string>",
"portfolioIds": [
"<string>"
]
}
'import requests
url = "https://api.copper.co/platform/crypto-addresses"
payload = {
"address": "<string>",
"cryptoAddressId": "<string>",
"currency": "<string>",
"name": "<string>",
"acceptTokens": True,
"addressTags": [],
"isWhitelist": "false",
"mainCurrency": "<string>",
"memo": "<string>",
"portfolioIds": ["<string>"]
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
address: '<string>',
cryptoAddressId: '<string>',
currency: '<string>',
name: '<string>',
acceptTokens: true,
addressTags: [],
isWhitelist: 'false',
mainCurrency: '<string>',
memo: '<string>',
portfolioIds: ['<string>']
})
};
fetch('https://api.copper.co/platform/crypto-addresses', 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.copper.co/platform/crypto-addresses",
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([
'address' => '<string>',
'cryptoAddressId' => '<string>',
'currency' => '<string>',
'name' => '<string>',
'acceptTokens' => true,
'addressTags' => [
],
'isWhitelist' => 'false',
'mainCurrency' => '<string>',
'memo' => '<string>',
'portfolioIds' => [
'<string>'
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$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.copper.co/platform/crypto-addresses"
payload := strings.NewReader("{\n \"address\": \"<string>\",\n \"cryptoAddressId\": \"<string>\",\n \"currency\": \"<string>\",\n \"name\": \"<string>\",\n \"acceptTokens\": true,\n \"addressTags\": [],\n \"isWhitelist\": \"false\",\n \"mainCurrency\": \"<string>\",\n \"memo\": \"<string>\",\n \"portfolioIds\": [\n \"<string>\"\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
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://api.copper.co/platform/crypto-addresses")
.header("Content-Type", "application/json")
.body("{\n \"address\": \"<string>\",\n \"cryptoAddressId\": \"<string>\",\n \"currency\": \"<string>\",\n \"name\": \"<string>\",\n \"acceptTokens\": true,\n \"addressTags\": [],\n \"isWhitelist\": \"false\",\n \"mainCurrency\": \"<string>\",\n \"memo\": \"<string>\",\n \"portfolioIds\": [\n \"<string>\"\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.copper.co/platform/crypto-addresses")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"address\": \"<string>\",\n \"cryptoAddressId\": \"<string>\",\n \"currency\": \"<string>\",\n \"name\": \"<string>\",\n \"acceptTokens\": true,\n \"addressTags\": [],\n \"isWhitelist\": \"false\",\n \"mainCurrency\": \"<string>\",\n \"memo\": \"<string>\",\n \"portfolioIds\": [\n \"<string>\"\n ]\n}"
response = http.request(request)
puts response.read_body{
"address": "<string>",
"addressType": "externally-owned-account",
"createdAt": "<string>",
"createdBy": "<string>",
"cryptoAddressId": "<string>",
"currency": "<string>",
"isWhitelist": true,
"name": "<string>",
"_embedded": {
"currencyConfigurations": [
{
"createdAt": "<string>",
"createdBy": "<string>",
"cryptoAddressId": "<string>",
"currency": "<string>",
"currencyConfigurationId": "<string>",
"isWhitelist": true,
"extra": {},
"lastUsedAt": "<string>",
"portfolioIds": [
"<string>"
],
"updatedAt": "<string>",
"updatedBy": "<string>"
}
]
},
"acceptTokens": true,
"addressTags": [],
"category": "smart-contract",
"extra": {},
"lastUsedAt": "<string>",
"mainCurrency": "<string>",
"memo": "<string>",
"organizationId": "<string>",
"portfolioIds": [
"<string>"
],
"updatedAt": "<string>",
"updatedBy": "<string>"
}{
"error": "bad-request",
"message": "<string>"
}{
"error": "forbidden",
"message": "<string>"
}{
"error": "conflict",
"message": "<string>"
}address-book
Create Crypto Address
Create a new crypto address in an organization’s address book
POST
/
crypto-addresses
Create Crypto Address
curl --request POST \
--url https://api.copper.co/platform/crypto-addresses \
--header 'Content-Type: application/json' \
--data '
{
"address": "<string>",
"cryptoAddressId": "<string>",
"currency": "<string>",
"name": "<string>",
"acceptTokens": true,
"addressTags": [],
"isWhitelist": "false",
"mainCurrency": "<string>",
"memo": "<string>",
"portfolioIds": [
"<string>"
]
}
'import requests
url = "https://api.copper.co/platform/crypto-addresses"
payload = {
"address": "<string>",
"cryptoAddressId": "<string>",
"currency": "<string>",
"name": "<string>",
"acceptTokens": True,
"addressTags": [],
"isWhitelist": "false",
"mainCurrency": "<string>",
"memo": "<string>",
"portfolioIds": ["<string>"]
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
address: '<string>',
cryptoAddressId: '<string>',
currency: '<string>',
name: '<string>',
acceptTokens: true,
addressTags: [],
isWhitelist: 'false',
mainCurrency: '<string>',
memo: '<string>',
portfolioIds: ['<string>']
})
};
fetch('https://api.copper.co/platform/crypto-addresses', 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.copper.co/platform/crypto-addresses",
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([
'address' => '<string>',
'cryptoAddressId' => '<string>',
'currency' => '<string>',
'name' => '<string>',
'acceptTokens' => true,
'addressTags' => [
],
'isWhitelist' => 'false',
'mainCurrency' => '<string>',
'memo' => '<string>',
'portfolioIds' => [
'<string>'
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$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.copper.co/platform/crypto-addresses"
payload := strings.NewReader("{\n \"address\": \"<string>\",\n \"cryptoAddressId\": \"<string>\",\n \"currency\": \"<string>\",\n \"name\": \"<string>\",\n \"acceptTokens\": true,\n \"addressTags\": [],\n \"isWhitelist\": \"false\",\n \"mainCurrency\": \"<string>\",\n \"memo\": \"<string>\",\n \"portfolioIds\": [\n \"<string>\"\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
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://api.copper.co/platform/crypto-addresses")
.header("Content-Type", "application/json")
.body("{\n \"address\": \"<string>\",\n \"cryptoAddressId\": \"<string>\",\n \"currency\": \"<string>\",\n \"name\": \"<string>\",\n \"acceptTokens\": true,\n \"addressTags\": [],\n \"isWhitelist\": \"false\",\n \"mainCurrency\": \"<string>\",\n \"memo\": \"<string>\",\n \"portfolioIds\": [\n \"<string>\"\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.copper.co/platform/crypto-addresses")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"address\": \"<string>\",\n \"cryptoAddressId\": \"<string>\",\n \"currency\": \"<string>\",\n \"name\": \"<string>\",\n \"acceptTokens\": true,\n \"addressTags\": [],\n \"isWhitelist\": \"false\",\n \"mainCurrency\": \"<string>\",\n \"memo\": \"<string>\",\n \"portfolioIds\": [\n \"<string>\"\n ]\n}"
response = http.request(request)
puts response.read_body{
"address": "<string>",
"addressType": "externally-owned-account",
"createdAt": "<string>",
"createdBy": "<string>",
"cryptoAddressId": "<string>",
"currency": "<string>",
"isWhitelist": true,
"name": "<string>",
"_embedded": {
"currencyConfigurations": [
{
"createdAt": "<string>",
"createdBy": "<string>",
"cryptoAddressId": "<string>",
"currency": "<string>",
"currencyConfigurationId": "<string>",
"isWhitelist": true,
"extra": {},
"lastUsedAt": "<string>",
"portfolioIds": [
"<string>"
],
"updatedAt": "<string>",
"updatedBy": "<string>"
}
]
},
"acceptTokens": true,
"addressTags": [],
"category": "smart-contract",
"extra": {},
"lastUsedAt": "<string>",
"mainCurrency": "<string>",
"memo": "<string>",
"organizationId": "<string>",
"portfolioIds": [
"<string>"
],
"updatedAt": "<string>",
"updatedBy": "<string>"
}{
"error": "bad-request",
"message": "<string>"
}{
"error": "forbidden",
"message": "<string>"
}{
"error": "conflict",
"message": "<string>"
}Body
application/json
Available options:
externally-owned-account, internal-account, smart-contract, payable-smart-contract Response
OK
Address type. See details
Available options:
externally-owned-account, internal-account, smart-contract, payable-smart-contract Address category. See details
Available options:
smart-contract, payable-smart-contract, mining, unknown, self-hosted, vasp Was this page helpful?