Skip to main content
POST
/
status
Check status
curl --request POST \
  --url https://api.leokit.dev/status \
  --header 'Api-Key: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "protocol": "mayachain",
  "tx_id": "0xf077b6380b5023e73a200abed3128a857fbb0663c95fa50c5140b22b29895503",
  "quote_id": "019b4c96-e47b-7000-afd4-17252097b092"
}
'
import requests

url = "https://api.leokit.dev/status"

payload = {
"protocol": "mayachain",
"tx_id": "0xf077b6380b5023e73a200abed3128a857fbb0663c95fa50c5140b22b29895503",
"quote_id": "019b4c96-e47b-7000-afd4-17252097b092"
}
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({
protocol: 'mayachain',
tx_id: '0xf077b6380b5023e73a200abed3128a857fbb0663c95fa50c5140b22b29895503',
quote_id: '019b4c96-e47b-7000-afd4-17252097b092'
})
};

fetch('https://api.leokit.dev/status', 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.leokit.dev/status",
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([
'protocol' => 'mayachain',
'tx_id' => '0xf077b6380b5023e73a200abed3128a857fbb0663c95fa50c5140b22b29895503',
'quote_id' => '019b4c96-e47b-7000-afd4-17252097b092'
]),
CURLOPT_HTTPHEADER => [
"Api-Key: <api-key>",
"Content-Type: application/json"
],
]);

$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://api.leokit.dev/status"

payload := strings.NewReader("{\n \"protocol\": \"mayachain\",\n \"tx_id\": \"0xf077b6380b5023e73a200abed3128a857fbb0663c95fa50c5140b22b29895503\",\n \"quote_id\": \"019b4c96-e47b-7000-afd4-17252097b092\"\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://api.leokit.dev/status")
.header("Api-Key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"protocol\": \"mayachain\",\n \"tx_id\": \"0xf077b6380b5023e73a200abed3128a857fbb0663c95fa50c5140b22b29895503\",\n \"quote_id\": \"019b4c96-e47b-7000-afd4-17252097b092\"\n}")
.asString();
require 'uri'
require 'net/http'

url = URI("https://api.leokit.dev/status")

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 \"protocol\": \"mayachain\",\n \"tx_id\": \"0xf077b6380b5023e73a200abed3128a857fbb0663c95fa50c5140b22b29895503\",\n \"quote_id\": \"019b4c96-e47b-7000-afd4-17252097b092\"\n}"

response = http.request(request)
puts response.read_body
{
  "protocol": "<string>",
  "hash": "<string>",
  "network": "<string>",
  "req_id": "<string>",
  "status": "<string>",
  "status_url": "<string>",
  "scanner": "<string>",
  "native_scanner": "<string>",
  "in_amount": 123,
  "from_token": "<string>",
  "to_token": "<string>",
  "type": "<string>",
  "from_address": "<string>",
  "date": 123
}
{
"message": "<string>",
"code": "<string>"
}

Authorizations

Api-Key
string
header
required

Demo API-Key (Sandbox): 7037d2b3-9c76-4f62-b730-c544f7570fa4

Body

application/json

Request body for /status.

quote_id
string
required

Quote identifier returned from /quote.

tx_id
string
default:0xf077b6380b5023e73a200abed3128a857fbb0663c95fa50c5140b22b29895503
required

Origin chain transaction id/hash.

Example:

"0xf077b6380b5023e73a200abed3128a857fbb0663c95fa50c5140b22b29895503"

protocol
string
default:mayachain

Optional protocol hint (e.g., mayachain).

Example:

"mayachain"

Response

Transaction status response

protocol
string
required

Protocol used to route/execute the action (e.g., mayachain).

hash
string
required

Transaction hash / txid for the action (hex string).

network
string
required

Origin network for the transaction (e.g., arbitrum).

req_id
string
required

Optional request identifier for correlating calls. May be empty.

status
string
required

Current transaction status (e.g., pending, success, failed).

status_url
string
required

Link to a status/details endpoint for the underlying protocol.

scanner
string
required

Explorer/scanner URL for the transaction.

native_scanner
string
required

Native scanner URL (or a message when not available).

in_amount
number<double>
required

Input amount provided for the action.

from_token
string
required

Input token/asset identifier.

to_token
string
required

Output token/asset identifier.

type
string
required

Action type (e.g., swap).

from_address
string
required

Sender address on the origin network.

date
integer<int64>
required

Event timestamp in milliseconds since epoch.