Submit a Transaction Asynchronously REST API Endpoint
查詢參數
tx
字串
必填
載入中...
退貨
tx_status
字串
載入中...
hash
字串
載入中...
error_result_xdr
字串
載入中...
請求
1curl -L -X POST 'https://docs-demo.stellar-mainnet.quiknode.pro/transactions_async' \2-H 'Accept: application/json' \3-H 'Content-Type: application/x-www-form-urlencoded' \4--data-urlencode 'tx=YOUR_SIGNED_TRANSACTION_HERE'5
1curl -L -X POST 'https://docs-demo.stellar-mainnet.quiknode.pro/transactions_async' \2-H 'Accept: application/json' \3-H 'Content-Type: application/x-www-form-urlencoded' \4--data-urlencode 'tx=YOUR_SIGNED_TRANSACTION_HERE'5
1var myHeaders = new Headers();2myHeaders.追加("Accept", "application/json");3myHeaders.append("Content-Type", "application/x-www-form-urlencoded");45var urlencoded = new URLSearchParams();6urlencoded.append("tx", "YOUR_SIGNED_TRANSACTION_HERE");78var requestOptions = {9方法: 'POST',10標題: myHeaders,11body: urlencoded,12redirect: 'follow'13};1415fetch("https://docs-demo.stellar-mainnet.quiknode.pro/transactions_async", requestOptions)16.then(response => response.text())17.then(result => console.log(result))18.catch(error => console.log('error', error));19
1var myHeaders = new Headers();2myHeaders.追加("Accept", "application/json");3myHeaders.append("Content-Type", "application/x-www-form-urlencoded");45var urlencoded = new URLSearchParams();6urlencoded.append("tx", "YOUR_SIGNED_TRANSACTION_HERE");78var requestOptions = {9方法: 'POST',10標題: myHeaders,11body: urlencoded,12redirect: 'follow'13};1415fetch("https://docs-demo.stellar-mainnet.quiknode.pro/transactions_async", requestOptions)16.then(response => response.text())17.then(result => console.log(result))18.catch(error => console.log('error', error));19
1匯入 請求23url = "https://docs-demo.stellar-mainnet.quiknode.pro/transactions_async"45payload = 'tx=YOUR_SIGNED_TRANSACTION_HERE'6標題 = {7「接受」: 'application/json',8'Content-Type': 'application/x-www-form-urlencoded'9}1011回應 = 請求.請求("POST", url, headers=headers, data=有效載荷)1213列印(回應.text)14
1匯入 請求23url = "https://docs-demo.stellar-mainnet.quiknode.pro/transactions_async"45payload = 'tx=YOUR_SIGNED_TRANSACTION_HERE'6標題 = {7「接受」: 'application/json',8'Content-Type': 'application/x-www-form-urlencoded'9}1011回應 = 請求.請求("POST", url, headers=headers, data=有效載荷)1213列印(回應.text)14
1需要 "uri"2需要 "net/http"34url = URI("https://docs-demo.stellar-mainnet.quiknode.pro/transactions_async")56http = Net::HTTP.new(url.host, url.port);7請求 = 淨::HTTP::POST.new(網址)8請求[「接受」] = "application/json"9request["Content-Type"] = "application/x-www-form-urlencoded"10request.body = "tx=YOUR_SIGNED_TRANSACTION_HERE"1112回應 = http.請求(請求)13將回應。read_body14
1需要 "uri"2需要 "net/http"34url = URI("https://docs-demo.stellar-mainnet.quiknode.pro/transactions_async")56http = Net::HTTP.new(url.host, url.port);7請求 = 淨::HTTP::POST.new(網址)8請求[「接受」] = "application/json"9request["Content-Type"] = "application/x-www-form-urlencoded"10request.body = "tx=YOUR_SIGNED_TRANSACTION_HERE"1112回應 = http.請求(請求)13將回應。read_body14