Get status of the sign request
curl --request GET \
--url http://0.0.0.0:3010/sign-async/{transactionRequestId}import requests
url = "http://0.0.0.0:3010/sign-async/{transactionRequestId}"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('http://0.0.0.0:3010/sign-async/{transactionRequestId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_PORT => "3010",
CURLOPT_URL => "http://0.0.0.0:3010/sign-async/{transactionRequestId}",
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 := "http://0.0.0.0:3010/sign-async/{transactionRequestId}"
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("http://0.0.0.0:3010/sign-async/{transactionRequestId}")
.asString();require 'uri'
require 'net/http'
url = URI("http://0.0.0.0:3010/sign-async/{transactionRequestId}")
http = Net::HTTP.new(url.host, url.port)
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"status": "starting",
"message": "AQRwL5FqGrbLaPO4w+NoEq9oZ...R5I/wjEQND/4YmIn+rbN9uh5U/0="
}Copper Unlimited Online
Get Copper Unlimited Transaction
GET
/
sign-async
/
{transactionRequestId}
Get status of the sign request
curl --request GET \
--url http://0.0.0.0:3010/sign-async/{transactionRequestId}import requests
url = "http://0.0.0.0:3010/sign-async/{transactionRequestId}"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('http://0.0.0.0:3010/sign-async/{transactionRequestId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_PORT => "3010",
CURLOPT_URL => "http://0.0.0.0:3010/sign-async/{transactionRequestId}",
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 := "http://0.0.0.0:3010/sign-async/{transactionRequestId}"
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("http://0.0.0.0:3010/sign-async/{transactionRequestId}")
.asString();require 'uri'
require 'net/http'
url = URI("http://0.0.0.0:3010/sign-async/{transactionRequestId}")
http = Net::HTTP.new(url.host, url.port)
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"status": "starting",
"message": "AQRwL5FqGrbLaPO4w+NoEq9oZ...R5I/wjEQND/4YmIn+rbN9uh5U/0="
}Optionally, retrieve the status of your request from Copper Unlimited Online using your
transactionRequestIdPath Parameters
Response
200 - application/json
Status of the sign request
starting: The request is accepted for processingsession-established: The CU session has been establishedin-progress: The signature is being generatedcompleted: The transaction has been signederror: Something went wrong, see the message field
Available options:
starting, session-established, in-progress, completed, error Example:
"AQRwL5FqGrbLaPO4w+NoEq9oZ...R5I/wjEQND/4YmIn+rbN9uh5U/0="
Was this page helpful?