/sendBoc REST API Endpoint
Body Parameters
boc
string
REQUIRED
Loading...
Returns
ok
boolean
Loading...
result
object
Loading...
Request
curl --location 'https://docs-demo.ton-mainnet.quiknode.pro/sendBoc' \
--header 'accept: application/json' \
--header 'Content-Type: application/json' \
--data '{
"boc": "PUT_BOC_HERE"
}'const myHeaders = new Headers();
myHeaders.append("accept", "application/json");
myHeaders.append("Content-Type", "application/json");
const raw = JSON.stringify({
"boc": "PUT_BOC_HERE"
});
const requestOptions = {
method: "POST",
headers: myHeaders,
body: raw,
redirect: "follow"
};
fetch("https://docs-demo.ton-mainnet.quiknode.pro/sendBoc", requestOptions)
.then((response) => response.text())
.then((result) => console.log(result))
.catch((error) => console.error(error));import requests
import json
url = "https://docs-demo.ton-mainnet.quiknode.pro/sendBoc"
payload = json.dumps({
"boc": "PUT_BOC_HERE"
})
headers = {
'accept': 'application/json',
'Content-Type': 'application/json'
}
response = requests.request("POST", url, headers=headers, data=payload)
print(response.text)
require "uri"
require "json"
require "net/http"
url = URI("https://docs-demo.ton-mainnet.quiknode.pro/sendBoc")
http = Net::HTTP.new(url.host, url.port);
request = Net::HTTP::Post.new(url)
request["accept"] = "application/json"
request["Content-Type"] = "application/json"
request.body = JSON.dump({
"boc": "PUT_BOC_HERE"
})
response = http.request(request)
puts response.read_body
Don't have an account yet?
Create your QuickNode endpoint in seconds and start building
Get started for free