Submits a signed transaction, like the Solana RPC sendTransaction method.
curl --request POST \
--url https://todo-equities-host.dflow.net/submit-transaction \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"jsonrpc": "2.0",
"method": "sendTransaction",
"params": [
"<string>"
],
"id": "<unknown>"
}
'import requests
url = "https://todo-equities-host.dflow.net/submit-transaction"
payload = {
"jsonrpc": "2.0",
"method": "sendTransaction",
"params": ["<string>"],
"id": "<unknown>"
}
headers = {
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
jsonrpc: '2.0',
method: 'sendTransaction',
params: ['<string>'],
id: '<unknown>'
})
};
fetch('https://todo-equities-host.dflow.net/submit-transaction', 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://todo-equities-host.dflow.net/submit-transaction",
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([
'jsonrpc' => '2.0',
'method' => 'sendTransaction',
'params' => [
'<string>'
],
'id' => '<unknown>'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"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"
"strings"
"net/http"
"io"
)
func main() {
url := "https://todo-equities-host.dflow.net/submit-transaction"
payload := strings.NewReader("{\n \"jsonrpc\": \"2.0\",\n \"method\": \"sendTransaction\",\n \"params\": [\n \"<string>\"\n ],\n \"id\": \"<unknown>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("x-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://todo-equities-host.dflow.net/submit-transaction")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"jsonrpc\": \"2.0\",\n \"method\": \"sendTransaction\",\n \"params\": [\n \"<string>\"\n ],\n \"id\": \"<unknown>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://todo-equities-host.dflow.net/submit-transaction")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-api-key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"jsonrpc\": \"2.0\",\n \"method\": \"sendTransaction\",\n \"params\": [\n \"<string>\"\n ],\n \"id\": \"<unknown>\"\n}"
response = http.request(request)
puts response.read_body{
"jsonrpc": "2.0",
"id": "<unknown>",
"result": "<string>",
"error": {
"code": 123,
"message": "<string>",
"data": {
"reason": "quote_expired"
}
}
}Equities Submit API
Submit Transaction
API reference for POST /submit-transaction
POST
/
submit-transaction
Submits a signed transaction, like the Solana RPC sendTransaction method.
curl --request POST \
--url https://todo-equities-host.dflow.net/submit-transaction \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"jsonrpc": "2.0",
"method": "sendTransaction",
"params": [
"<string>"
],
"id": "<unknown>"
}
'import requests
url = "https://todo-equities-host.dflow.net/submit-transaction"
payload = {
"jsonrpc": "2.0",
"method": "sendTransaction",
"params": ["<string>"],
"id": "<unknown>"
}
headers = {
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
jsonrpc: '2.0',
method: 'sendTransaction',
params: ['<string>'],
id: '<unknown>'
})
};
fetch('https://todo-equities-host.dflow.net/submit-transaction', 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://todo-equities-host.dflow.net/submit-transaction",
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([
'jsonrpc' => '2.0',
'method' => 'sendTransaction',
'params' => [
'<string>'
],
'id' => '<unknown>'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"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"
"strings"
"net/http"
"io"
)
func main() {
url := "https://todo-equities-host.dflow.net/submit-transaction"
payload := strings.NewReader("{\n \"jsonrpc\": \"2.0\",\n \"method\": \"sendTransaction\",\n \"params\": [\n \"<string>\"\n ],\n \"id\": \"<unknown>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("x-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://todo-equities-host.dflow.net/submit-transaction")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"jsonrpc\": \"2.0\",\n \"method\": \"sendTransaction\",\n \"params\": [\n \"<string>\"\n ],\n \"id\": \"<unknown>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://todo-equities-host.dflow.net/submit-transaction")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-api-key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"jsonrpc\": \"2.0\",\n \"method\": \"sendTransaction\",\n \"params\": [\n \"<string>\"\n ],\n \"id\": \"<unknown>\"\n}"
response = http.request(request)
puts response.read_body{
"jsonrpc": "2.0",
"id": "<unknown>",
"result": "<string>",
"error": {
"code": 123,
"message": "<string>",
"data": {
"reason": "quote_expired"
}
}
}Authorizations
Body
application/json
Response
A JSON-RPC response. Transaction errors arrive as a JSON-RPC error object in the HTTP 200, as on a Solana RPC.
Available options:
2.0 The request id, or null when the request id could not be read
Base58-encoded signature of the transaction. Not yet confirmed; track it onchain.
code is -32602, -32003, -32002, or -32000. Submit Endpoint Errors gives each meaning.
Show child attributes
Show child attributes