Approve manage signers tickets
The Approve manage signers tickets API is used to approve or sign the manage signers tickets. This API facilitates the approval process for tickets related to managing signers for a wallet account.
Method: POST
{{URL}}/jsonrpc
Headers
Name | Value |
---|---|
Content-Type | application/json |
Example
Payload Parameters
Parameter | Description |
---|---|
ID Mandatory | String Represents the unique identifier associated with the wallet account or ticket. Ex: "1103001" |
isApproved Mandatory | Boolean Indicates whether the ticket or request is approved or not. Ex: true |
requestID Mandatory | String Refers to the unique identifier associated with the request or ticket. Ex: "170006" |
xdr Mandatory | String Represents the XDR (Extensible Data Representation) format of the ticket or transaction. Ex: "AAAAAgAAAAALenlHpJbBTMa0hHj7dqpQVlZC3Yc50ov5UNryXt5k7QABhqAAAofWAAAABQAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAABAAAAAAt6eUeklsFMxrSEePt2qlBWVkLdhznSi" |
- cURL
- C#
- NodeJs
curl --location '{{url}}/rpc/WalletService/ApproveUpdateSignersTickets' \
--header 'DiviceID: 8020' \
--header 'Signature: keyId=8020,algorithm=ecdsa-sha256,signature=MEUCIQCNi1vjPf/HpI9R2DXnc0Zt1s6YmWyA4H1x813lJ+tuDgIgB+lrc+iCMyTUGiraG9kGKNDXYiz7RfBBtifr5wUQs54=' \
--header 'Content-Type: application/json' \
--header 'Authorization: Basic e3tFbWFpbH19Ont7UGFzc3dvcmR9fQ==' \
--data '{"ID":"1103001","isApproved":true,"requestID":"170006","xdr":"AAAAAgAAAAALenlHpJbBTMa0hHj7dqpQVlZC3Yc50ov5UNryXt5k7QABhqAAAofWAAAABQAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAABAAAAAAt6eUeklsFMxrSEePt2qlBWVkLdhznSi/lQ2vJe3mTtAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAD+77Bxu55Kx7H+OT8zi4hdoRrthVrA+9m4H8zlhqVaQAAAAAAAAAAAAAAAUE6UjMAAABALN/SPE2Zu6/mBbDQfOMsnPuLYFFzINKbDr9qbDLkq4qY9nDJNOQWqLiIZnzmwQKMt72D2O6nMHbk2PSowjseAw=="}'
var options = new RestClientOptions("{{url}}")
{
MaxTimeout = -1,
};
var client = new RestClient(options);
var request = new RestRequest("/fednowbackend/rpc/WalletService/ApproveUpdateSignersTickets", Method.Post);
request.AddHeader("DiviceID", "8020");
request.AddHeader("Signature", "keyId=8020,algorithm=ecdsa-sha256,signature=MEUCIQCNi1vjPf/HpI9R2DXnc0Zt1s6YmWyA4H1x813lJ+tuDgIgB+lrc+iCMyTUGiraG9kGKNDXYiz7RfBBtifr5wUQs54=");
request.AddHeader("Content-Type", "application/json");
request.AddHeader("Authorization", "Basic e3tFbWFpbH19Ont7UGFzc3dvcmR9fQ==");
var body = @"{
" + "\n" +
@" ""ID"": ""1103001"",
" + "\n" +
@" ""isApproved"": true,
" + "\n" +
@" ""requestID"": ""170006"",
" + "\n" +
@" ""xdr"": ""AAAAAgAAAAALenlHpJbBTMa0hHj7dqpQVlZC3Yc50ov5UNryXt5k7QABhqAAAofWAAAABQAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAABAAAAAAt6eUeklsFMxrSEePt2qlBWVkLdhznSi/lQ2vJe3mTtAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAD+77Bxu55Kx7H+OT8zi4hdoRrthVrA+9m4H8zlhqVaQAAAAAAAAAAAAAAAUE6UjMAAABALN/SPE2Zu6/mBbDQfOMsnPuLYFFzINKbDr9qbDLkq4qY9nDJNOQWqLiIZnzmwQKMt72D2O6nMHbk2PSowjseAw==""
" + "\n" +
@"}";
request.AddStringBody(body, DataFormat.Json);
RestResponse response = await client.ExecuteAsync(request);
Console.WriteLine(response.Content);
```go
package main
import (
"fmt"
"strings"
"net/http"
"io/ioutil"
)
func main() {
url := "{{url}}/rpc/WalletService/ApproveUpdateSignersTickets"
method := "POST"
payload := strings.NewReader(`{`+"
"+`
"ID": "1103001",`+"
"+`
"isApproved": true,`+"
"+`
"requestID": "170006",`+"
"+`
"xdr": "AAAAAgAAAAALenlHpJbBTMa0hHj7dqpQVlZC3Yc50ov5UNryXt5k7QABhqAAAofWAAAABQAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAABAAAAAAt6eUeklsFMxrSEePt2qlBWVkLdhznSi/lQ2vJe3mTtAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAD+77Bxu55Kx7H+OT8zi4hdoRrthVrA+9m4H8zlhqVaQAAAAAAAAAAAAAAAUE6UjMAAABALN/SPE2Zu6/mBbDQfOMsnPuLYFFzINKbDr9qbDLkq4qY9nDJNOQWqLiIZnzmwQKMt72D2O6nMHbk2PSowjseAw=="`+"
"+`
}`)
client := &http.Client {
}
req, err := http.NewRequest(method, url, payload)
if err != nil {
fmt.Println(err)
return
}
req.Header.Add("DiviceID", "8020")
req.Header.Add("Signature", "keyId=8020,algorithm=ecdsa-sha256,signature=MEUCIQCNi1vjPf/HpI9R2DXnc0Zt1s6YmWyA4H1x813lJ+tuDgIgB+lrc+iCMyTUGiraG9kGKNDXYiz7RfBBtifr5wUQs54=")
req.Header.Add("Content-Type", "application/json")
req.Header.Add("Authorization", "Basic e3tFbWFpbH19Ont7UGFzc3dvcmR9fQ==")
res, err := client.Do(req)
if err != nil {
fmt.Println(err)
return
}
defer res.Body.Close()
body, err := ioutil.ReadAll(res.Body)
if err != nil {
fmt.Println(err)
return
}
fmt.Println(string(body))
}
var https = require('follow-redirects').https;
var fs = require('fs');
var options = {
'method': 'POST',
'hostname': '{{url}}',
'path': '/fednowbackend/rpc/WalletService/ApproveUpdateSignersTickets',
'headers': {
'DiviceID': '8020',
'Signature': 'keyId=8020,algorithm=ecdsa-sha256,signature=MEUCIQCNi1vjPf/HpI9R2DXnc0Zt1s6YmWyA4H1x813lJ+tuDgIgB+lrc+iCMyTUGiraG9kGKNDXYiz7RfBBtifr5wUQs54=',
'Content-Type': 'application/json',
'Authorization': 'Basic e3tFbWFpbH19Ont7UGFzc3dvcmR9fQ=='
},
'maxRedirects': 20
};
var req = https.request(options, function (res) {
var chunks = [];
res.on("data", function (chunk) {
chunks.push(chunk);
});
res.on("end", function (chunk) {
var body = Buffer.concat(chunks);
console.log(body.toString());
});
res.on("error", function (error) {
console.error(error);
});
});
var postData = JSON.stringify({
"ID": "1103001",
"isApproved": true,
"requestID": "170006",
"xdr": "AAAAAgAAAAALenlHpJbBTMa0hHj7dqpQVlZC3Yc50ov5UNryXt5k7QABhqAAAofWAAAABQAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAABAAAAAAt6eUeklsFMxrSEePt2qlBWVkLdhznSi/lQ2vJe3mTtAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAD+77Bxu55Kx7H+OT8zi4hdoRrthVrA+9m4H8zlhqVaQAAAAAAAAAAAAAAAUE6UjMAAABALN/SPE2Zu6/mBbDQfOMsnPuLYFFzINKbDr9qbDLkq4qY9nDJNOQWqLiIZnzmwQKMt72D2O6nMHbk2PSowjseAw=="
});
req.write(postData);
req.end();
Body
{
"ID": "1103001",
"isApproved": true,
"requestID": "170006",
"xdr": "AAAAAgAAAAALenlHpJbBTMa0hHj7dqpQVlZC3Yc50ov5UNryXt5k7QABhqAAAofWAAAABQAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAABAAAAAAt6eUeklsFMxrSEePt2qlBWVkLdhznSi/lQ2vJe3mTtAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAD+77Bxu55Kx7H+OT8zi4hdoRrthVrA+9m4H8zlhqVaQAAAAAAAAAAAAAAAUE6UjMAAABALN/SPE2Zu6/mBbDQfOMsnPuLYFFzINKbDr9qbDLkq4qY9nDJNOQWqLiIZnzmwQKMt72D2O6nMHbk2PSowjseAw=="
}
Response: 200
Response Parameters
Parameter | Description |
---|---|
ID | String Represents the unique identifier associated with the wallet account or ticket. Ex: "1103001" |
signers | Array |
ID | String Unique identifier for the signer. Ex: "994002" |
name | String Specifies the name of the signer. Ex: "ChennaReddy" |
createdDate | String Represents the date and time of the signer's creation. Ex: "0001-01-01T00:00:00Z" |
updatedDate | String Indicates the date and time of the last update made to the signer's information. Ex: "0001-01-01T00:00:00Z" |
requestID | String Refers to the unique identifier associated with the request or ticket. Ex: "170006" |
message | String Provides a message or status update related to the approval process. Ex: "Account Signers Updated Successfully" |
senderID | String Represents the unique identifier of the sender or account associated with the request. Ex: "1103001" |
senderName | String Specifies the name of the sender or account associated with the request. Ex: "SignerTest108" |
senderPublicKey | String Refers to the public key of the sender or account associated with the request. Ex: "GAFXU6KHUSLMCTGGWSCHR63WVJIFMVSC3WDTTUUL7FINV4S63ZSO2JIV" |
transactionType | String Indicates the type of transaction or request being processed. Ex: "WALLET_REMOVE_USER" |
customerID | String Refers to the unique identifier of the customer associated with the wallet account. Ex: "100000000041001" |
ticketName | String Represents the name or identifier of the ticket or request. Ex: "UPDATE_SIGNERS" |
legalRep | Object |
ID | String Unique identifier for the legal representative. Ex: "994003" |
createdDate | String Represents the date and time of the representative's creation. Ex: "0001-01-01T00:00:00Z" |
updatedDate | String Indicates the date and time of the last update made to the representative's information. Ex: "0001-01-01T00:00:00Z" |
contact | Object |
String Represents the email address of the representative. Ex: "chennareddy.s+2@netxd.com" | |
phoneNumber | String Specifies the phone number of the representative. Ex: "9087493944" |
publickey | String Refers to the public key associated with the legal representative. Ex: "GAB7XPWBY3XHSKY6Y74OJ7GOFYQXNBDLWYKWWA7PM3QH6M4WDKKWSNWB" |
keyStorage | String Indicates the storage method for the representative's key. Ex: "ON_DEVICE" |
keyStatus | String Represents the status of the representative's key. Ex: "PENDING_REMOVAL" |
actionType | String Indicates the type of action being performed. Ex: "REMOVE" |
actualRequiredThreshold | Number Specifies the actual threshold value required for the operation. Ex: 5 |
{
"ID": "1103001",
"signers": [
{
"ID": "994002",
"name": "ChennaReddy",
"createdDate": "0001-01-01T00:00:00Z",
"updatedDate": "0001-01-01T00:00:00Z"
}
],
"requestID": "170006",
"message": "Account Signers Updated Successfully",
"senderID": "1103001",
"senderName": "SignerTest108",
"senderPublicKey": "GAFXU6KHUSLMCTGGWSCHR63WVJIFMVSC3WDTTUUL7FINV4S63ZSO2JIV",
"transactionType": "WALLET_REMOVE_USER",
"customerID": "100000000041001",
"ticketName": "UPDATE_SIGNERS",
"legalRep": {
"ID": "994003",
"createdDate": "0001-01-01T00:00:00Z",
"updatedDate": "0001-01-01T00:00:00Z",
"contact": {
"email": "chennareddy.s+2@netxd.com",
"phoneNumber": "9087493944"
},
"publickey": "GAB7XPWBY3XHSKY6Y74OJ7GOFYQXNBDLWYKWWA7PM3QH6M4WDKKWSNWB",
"keyStorage": "ON_DEVICE",
"keyStatus": "PENDING_REMOVAL"
},
"actionType": "REMOVE",
"actualRequiredThreshold": 5
}