curl --request POST \
--url https://api.beta.getpara.com/v1/wallets/{walletId}/yield/operations/{operationId}/cancel \
--header 'X-API-Key: <api-key>'import requests
url = "https://api.beta.getpara.com/v1/wallets/{walletId}/yield/operations/{operationId}/cancel"
headers = {"X-API-Key": "<api-key>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {'X-API-Key': '<api-key>'}};
fetch('https://api.beta.getpara.com/v1/wallets/{walletId}/yield/operations/{operationId}/cancel', 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.beta.getpara.com/v1/wallets/{walletId}/yield/operations/{operationId}/cancel",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_HTTPHEADER => [
"X-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"
"net/http"
"io"
)
func main() {
url := "https://api.beta.getpara.com/v1/wallets/{walletId}/yield/operations/{operationId}/cancel"
req, _ := http.NewRequest("POST", url, nil)
req.Header.Add("X-API-Key", "<api-key>")
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.beta.getpara.com/v1/wallets/{walletId}/yield/operations/{operationId}/cancel")
.header("X-API-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.beta.getpara.com/v1/wallets/{walletId}/yield/operations/{operationId}/cancel")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-API-Key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"walletId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"chainId": 8453,
"marketId": "morpho-v2-base-steakhouse-usdc",
"source": "aave-v3",
"action": "deposit",
"amount": "10.0",
"status": "pending",
"transactions": [
{
"phase": "approval",
"hash": "<string>",
"nonce": 1,
"transactionId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"status": "signed",
"blockNumber": 123,
"blockHash": "<string>"
}
],
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"autoRetry": {
"expiresAt": "2023-11-07T05:31:56Z",
"action": {
"maxExecutionFeeWei": "<string>"
},
"phases": [
{
"state": "active",
"nonce": 1,
"maxExecutionFeeWei": "<string>",
"expiresAt": "2023-11-07T05:31:56Z",
"bumpCount": 1,
"attempts": [
{
"ordinal": 1,
"stage": "prepared",
"preparedAt": "2023-11-07T05:31:56Z",
"hash": "<string>",
"lastBroadcastAt": "2023-11-07T05:31:56Z",
"lastValidBlockHeight": 123
}
],
"phase": "approval",
"transactionId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"reason": "<string>",
"network": "SOLANA",
"maxExecutionFeeLamports": "<string>",
"latestAttemptHash": "<string>"
}
],
"approval": {
"maxExecutionFeeWei": "<string>"
}
},
"error": {
"code": "<string>",
"message": "<string>",
"reviewId": "<string>"
}
}{
"code": "INVALID_REQUEST",
"message": "type must be one of EVM, SOLANA, COSMOS, STELLAR, SUI"
}{
"code": "UNAUTHORIZED",
"message": "secret api key not provided"
}{
"code": "FORBIDDEN",
"message": "invalid secret api key"
}{
"code": "NOT_FOUND",
"message": "wallet not found"
}{
"code": "INVALID_REQUEST",
"message": "<string>",
"transactionId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"failureStage": "mpc_sign",
"failureCode": "<string>",
"reason": "rate_limited",
"signedTransaction": "<string>"
}{
"code": "RATE_LIMITED",
"message": "Rate limit exceeded, try again shortly."
}{
"code": "INTERNAL_ERROR",
"message": "Internal Server Error"
}Cancel operation
Cancel remaining unsigned work for a yield operation with no unresolved signed transaction. Managed recovery attempts must have no signature or transaction hash and be either prepared without dispatch authorization or definitively rejected before signing. Para atomically releases any undispatched spend reservation when cancelling. Uncertain signing outcomes cannot be cancelled.
curl --request POST \
--url https://api.beta.getpara.com/v1/wallets/{walletId}/yield/operations/{operationId}/cancel \
--header 'X-API-Key: <api-key>'import requests
url = "https://api.beta.getpara.com/v1/wallets/{walletId}/yield/operations/{operationId}/cancel"
headers = {"X-API-Key": "<api-key>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {'X-API-Key': '<api-key>'}};
fetch('https://api.beta.getpara.com/v1/wallets/{walletId}/yield/operations/{operationId}/cancel', 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.beta.getpara.com/v1/wallets/{walletId}/yield/operations/{operationId}/cancel",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_HTTPHEADER => [
"X-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"
"net/http"
"io"
)
func main() {
url := "https://api.beta.getpara.com/v1/wallets/{walletId}/yield/operations/{operationId}/cancel"
req, _ := http.NewRequest("POST", url, nil)
req.Header.Add("X-API-Key", "<api-key>")
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.beta.getpara.com/v1/wallets/{walletId}/yield/operations/{operationId}/cancel")
.header("X-API-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.beta.getpara.com/v1/wallets/{walletId}/yield/operations/{operationId}/cancel")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-API-Key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"walletId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"chainId": 8453,
"marketId": "morpho-v2-base-steakhouse-usdc",
"source": "aave-v3",
"action": "deposit",
"amount": "10.0",
"status": "pending",
"transactions": [
{
"phase": "approval",
"hash": "<string>",
"nonce": 1,
"transactionId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"status": "signed",
"blockNumber": 123,
"blockHash": "<string>"
}
],
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"autoRetry": {
"expiresAt": "2023-11-07T05:31:56Z",
"action": {
"maxExecutionFeeWei": "<string>"
},
"phases": [
{
"state": "active",
"nonce": 1,
"maxExecutionFeeWei": "<string>",
"expiresAt": "2023-11-07T05:31:56Z",
"bumpCount": 1,
"attempts": [
{
"ordinal": 1,
"stage": "prepared",
"preparedAt": "2023-11-07T05:31:56Z",
"hash": "<string>",
"lastBroadcastAt": "2023-11-07T05:31:56Z",
"lastValidBlockHeight": 123
}
],
"phase": "approval",
"transactionId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"reason": "<string>",
"network": "SOLANA",
"maxExecutionFeeLamports": "<string>",
"latestAttemptHash": "<string>"
}
],
"approval": {
"maxExecutionFeeWei": "<string>"
}
},
"error": {
"code": "<string>",
"message": "<string>",
"reviewId": "<string>"
}
}{
"code": "INVALID_REQUEST",
"message": "type must be one of EVM, SOLANA, COSMOS, STELLAR, SUI"
}{
"code": "UNAUTHORIZED",
"message": "secret api key not provided"
}{
"code": "FORBIDDEN",
"message": "invalid secret api key"
}{
"code": "NOT_FOUND",
"message": "wallet not found"
}{
"code": "INVALID_REQUEST",
"message": "<string>",
"transactionId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"failureStage": "mpc_sign",
"failureCode": "<string>",
"reason": "rate_limited",
"signedTransaction": "<string>"
}{
"code": "RATE_LIMITED",
"message": "Rate limit exceeded, try again shortly."
}{
"code": "INTERNAL_ERROR",
"message": "Internal Server Error"
}Authorizations
Path Parameters
Response
Cancelled operation.
pending work automatically retries recognized temporary RPC failures before signing and waits for another yield operation on the same wallet. With autoRetry, submitted means a phase is admitted or being tracked; inspect its attempt stages rather than inferring that signing or broadcast succeeded. Ordinary submitted work has signed bytes stored even when RPC acceptance is uncertain. confirmed means the final action succeeded. With autoRetry, shared reconciliation requires two canonical confirmations and finalized-chain inclusion. Without autoRetry, two canonical confirmations suffice and do not establish finality. failed means an on-chain revert or a consumed nonce (NONCE_CONSUMED, or RECOVERY_NONCE_CONSUMED with autoRetry); it does not guarantee that no funds moved. requires_action needs an explicit retry after correcting the issue.
pending, submitted, confirmed, failed, requires_action, cancelled