Get the payload to create new wallet
curl --request GET \
--url https://api.custody.api-zodia.io/v2/api/core/wallets/{walletId}/intentimport requests
url = "https://api.custody.api-zodia.io/v2/api/core/wallets/{walletId}/intent"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.custody.api-zodia.io/v2/api/core/wallets/{walletId}/intent', 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.custody.api-zodia.io/v2/api/core/wallets/{walletId}/intent",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.custody.api-zodia.io/v2/api/core/wallets/{walletId}/intent"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.custody.api-zodia.io/v2/api/core/wallets/{walletId}/intent")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.custody.api-zodia.io/v2/api/core/wallets/{walletId}/intent")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"request": {
"author": {
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
"domainId": "8a0b02c3-fdd8-452e-bc6e-ef07a335ec7e"
},
"expiryAt": "2022-01-09T10:51:00Z",
"targetDomainId": "cef1a96b-aa13-443a-b4cc-e3286f2af910",
"id": "b0393b72-83e8-4809-ba89-7e63ea11a49a",
"payload": {
"id": "39ed5bd5-5844-44b9-b4b4-6d3533c3b3e9",
"alias": "ZTEST-NOBENF-849P8XKKAO",
"providerDetails": {
"vaultId": "2d95a0f0-2acf-11ec-8d3d-0242ac130003",
"keyStrategy": "VaultHard",
"type": "Vault"
},
"ledgerId": "bitcoin-testnet",
"lock": "Unlocked",
"customProperties": {
"property1": "string",
"property2": "string"
},
"type": "v0_CreateAccount",
"description": "Description of my account"
},
"customProperties": {
"property1": "string",
"property2": "string"
},
"type": "Propose",
"description": "create an intent for account"
},
"signature": "MEUCIC3VIuw4pfk+BLnZrk1qklGS9phAlQFSQoAnlhw59x7cAiEAm5nq8ANlHcRNcONj5FXXl1v0EK5U8gZyQ22geFSsFL8="
}{
"timestamp": "2021-10-27T14:30:13.912Z",
"title": "Method Not Allowed",
"status": 415,
"details": [
{
"message": "Available methods : GET,POST",
"code": "ER-204"
}
]
}{
"timestamp": "2021-10-27T14:30:13.912Z",
"title": "Method Not Allowed",
"status": 415,
"details": [
{
"message": "Available methods : GET,POST",
"code": "ER-204"
}
]
}{
"timestamp": "2021-10-27T14:30:13.912Z",
"title": "Method Not Allowed",
"status": 415,
"details": [
{
"message": "Available methods : GET,POST",
"code": "ER-204"
}
]
}{
"timestamp": "2021-10-27T14:30:13.912Z",
"title": "Method Not Allowed",
"status": 415,
"details": [
{
"message": "Available methods : GET,POST",
"code": "ER-204"
}
]
}API - WALLETS - V2
Get the payload to create new wallet
GET
/
v2
/
api
/
core
/
wallets
/
{walletId}
/
intent
Get the payload to create new wallet
curl --request GET \
--url https://api.custody.api-zodia.io/v2/api/core/wallets/{walletId}/intentimport requests
url = "https://api.custody.api-zodia.io/v2/api/core/wallets/{walletId}/intent"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.custody.api-zodia.io/v2/api/core/wallets/{walletId}/intent', 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.custody.api-zodia.io/v2/api/core/wallets/{walletId}/intent",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.custody.api-zodia.io/v2/api/core/wallets/{walletId}/intent"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.custody.api-zodia.io/v2/api/core/wallets/{walletId}/intent")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.custody.api-zodia.io/v2/api/core/wallets/{walletId}/intent")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"request": {
"author": {
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
"domainId": "8a0b02c3-fdd8-452e-bc6e-ef07a335ec7e"
},
"expiryAt": "2022-01-09T10:51:00Z",
"targetDomainId": "cef1a96b-aa13-443a-b4cc-e3286f2af910",
"id": "b0393b72-83e8-4809-ba89-7e63ea11a49a",
"payload": {
"id": "39ed5bd5-5844-44b9-b4b4-6d3533c3b3e9",
"alias": "ZTEST-NOBENF-849P8XKKAO",
"providerDetails": {
"vaultId": "2d95a0f0-2acf-11ec-8d3d-0242ac130003",
"keyStrategy": "VaultHard",
"type": "Vault"
},
"ledgerId": "bitcoin-testnet",
"lock": "Unlocked",
"customProperties": {
"property1": "string",
"property2": "string"
},
"type": "v0_CreateAccount",
"description": "Description of my account"
},
"customProperties": {
"property1": "string",
"property2": "string"
},
"type": "Propose",
"description": "create an intent for account"
},
"signature": "MEUCIC3VIuw4pfk+BLnZrk1qklGS9phAlQFSQoAnlhw59x7cAiEAm5nq8ANlHcRNcONj5FXXl1v0EK5U8gZyQ22geFSsFL8="
}{
"timestamp": "2021-10-27T14:30:13.912Z",
"title": "Method Not Allowed",
"status": 415,
"details": [
{
"message": "Available methods : GET,POST",
"code": "ER-204"
}
]
}{
"timestamp": "2021-10-27T14:30:13.912Z",
"title": "Method Not Allowed",
"status": 415,
"details": [
{
"message": "Available methods : GET,POST",
"code": "ER-204"
}
]
}{
"timestamp": "2021-10-27T14:30:13.912Z",
"title": "Method Not Allowed",
"status": 415,
"details": [
{
"message": "Available methods : GET,POST",
"code": "ER-204"
}
]
}{
"timestamp": "2021-10-27T14:30:13.912Z",
"title": "Method Not Allowed",
"status": 415,
"details": [
{
"message": "Available methods : GET,POST",
"code": "ER-204"
}
]
}⌘I