End a multisig contract
curl --request POST \
--url https://mainnet.gomaestro-api.org/v1/contracts/multisig/end \
--header 'Content-Type: application/json' \
--header 'api-key: <api-key>' \
--data '
{
"signers_addr": [
"<string>"
],
"threshold": 123,
"spending_limit": 123,
"recipient_address": "<string>",
"initiator_address": "<string>",
"fund_policy_id": "<string>",
"fund_asset_name": "<string>"
}
'import requests
url = "https://mainnet.gomaestro-api.org/v1/contracts/multisig/end"
payload = {
"signers_addr": ["<string>"],
"threshold": 123,
"spending_limit": 123,
"recipient_address": "<string>",
"initiator_address": "<string>",
"fund_policy_id": "<string>",
"fund_asset_name": "<string>"
}
headers = {
"api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
signers_addr: ['<string>'],
threshold: 123,
spending_limit: 123,
recipient_address: '<string>',
initiator_address: '<string>',
fund_policy_id: '<string>',
fund_asset_name: '<string>'
})
};
fetch('https://mainnet.gomaestro-api.org/v1/contracts/multisig/end', 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://mainnet.gomaestro-api.org/v1/contracts/multisig/end",
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([
'signers_addr' => [
'<string>'
],
'threshold' => 123,
'spending_limit' => 123,
'recipient_address' => '<string>',
'initiator_address' => '<string>',
'fund_policy_id' => '<string>',
'fund_asset_name' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"api-key: <api-key>"
],
]);
$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://mainnet.gomaestro-api.org/v1/contracts/multisig/end"
payload := strings.NewReader("{\n \"signers_addr\": [\n \"<string>\"\n ],\n \"threshold\": 123,\n \"spending_limit\": 123,\n \"recipient_address\": \"<string>\",\n \"initiator_address\": \"<string>\",\n \"fund_policy_id\": \"<string>\",\n \"fund_asset_name\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("api-key", "<api-key>")
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://mainnet.gomaestro-api.org/v1/contracts/multisig/end")
.header("api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"signers_addr\": [\n \"<string>\"\n ],\n \"threshold\": 123,\n \"spending_limit\": 123,\n \"recipient_address\": \"<string>\",\n \"initiator_address\": \"<string>\",\n \"fund_policy_id\": \"<string>\",\n \"fund_asset_name\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://mainnet.gomaestro-api.org/v1/contracts/multisig/end")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["api-key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"signers_addr\": [\n \"<string>\"\n ],\n \"threshold\": 123,\n \"spending_limit\": 123,\n \"recipient_address\": \"<string>\",\n \"initiator_address\": \"<string>\",\n \"fund_policy_id\": \"<string>\",\n \"fund_asset_name\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"cbor_hex": "<string>",
"tx_hash": "<string>"
}Multisig
End a multisig contract
Terminate a multisignature contract and distribute remaining funds to specified beneficiaries.
POST
/
contracts
/
multisig
/
end
End a multisig contract
curl --request POST \
--url https://mainnet.gomaestro-api.org/v1/contracts/multisig/end \
--header 'Content-Type: application/json' \
--header 'api-key: <api-key>' \
--data '
{
"signers_addr": [
"<string>"
],
"threshold": 123,
"spending_limit": 123,
"recipient_address": "<string>",
"initiator_address": "<string>",
"fund_policy_id": "<string>",
"fund_asset_name": "<string>"
}
'import requests
url = "https://mainnet.gomaestro-api.org/v1/contracts/multisig/end"
payload = {
"signers_addr": ["<string>"],
"threshold": 123,
"spending_limit": 123,
"recipient_address": "<string>",
"initiator_address": "<string>",
"fund_policy_id": "<string>",
"fund_asset_name": "<string>"
}
headers = {
"api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
signers_addr: ['<string>'],
threshold: 123,
spending_limit: 123,
recipient_address: '<string>',
initiator_address: '<string>',
fund_policy_id: '<string>',
fund_asset_name: '<string>'
})
};
fetch('https://mainnet.gomaestro-api.org/v1/contracts/multisig/end', 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://mainnet.gomaestro-api.org/v1/contracts/multisig/end",
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([
'signers_addr' => [
'<string>'
],
'threshold' => 123,
'spending_limit' => 123,
'recipient_address' => '<string>',
'initiator_address' => '<string>',
'fund_policy_id' => '<string>',
'fund_asset_name' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"api-key: <api-key>"
],
]);
$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://mainnet.gomaestro-api.org/v1/contracts/multisig/end"
payload := strings.NewReader("{\n \"signers_addr\": [\n \"<string>\"\n ],\n \"threshold\": 123,\n \"spending_limit\": 123,\n \"recipient_address\": \"<string>\",\n \"initiator_address\": \"<string>\",\n \"fund_policy_id\": \"<string>\",\n \"fund_asset_name\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("api-key", "<api-key>")
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://mainnet.gomaestro-api.org/v1/contracts/multisig/end")
.header("api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"signers_addr\": [\n \"<string>\"\n ],\n \"threshold\": 123,\n \"spending_limit\": 123,\n \"recipient_address\": \"<string>\",\n \"initiator_address\": \"<string>\",\n \"fund_policy_id\": \"<string>\",\n \"fund_asset_name\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://mainnet.gomaestro-api.org/v1/contracts/multisig/end")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["api-key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"signers_addr\": [\n \"<string>\"\n ],\n \"threshold\": 123,\n \"spending_limit\": 123,\n \"recipient_address\": \"<string>\",\n \"initiator_address\": \"<string>\",\n \"fund_policy_id\": \"<string>\",\n \"fund_asset_name\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"cbor_hex": "<string>",
"tx_hash": "<string>"
}Authorizations
Project API Key
Body
application/json
List of signers
Threshold for multisig
Spending limit
Recipient address
Initiator's address
Policy ID of the fund
Asset name of the fund
Was this page helpful?
⌘I

