POST /api/v2/sendtx/ - Blockbook REST API
Please note that this REST method requires the EVM Blockbook add-on enabled on your Quicknode endpoint.
신체 매개변수
hex
문자열
필수
로딩 중...
반품
결과
문자열
로딩 중...
요청
1curl -X POST "https://docs-demo.quiknode.pro/sendtx/" \2-H "Content-Type: application/json" \3-H "Accept: application/json" \4-d '{5"hex": "0xf86c0985174876e800825208943535353535353535353535353535353535353535880de0b6b3a76400008025a028ef61340bd939bc2195fe537567866003e1a15d3c71ff63e1590620aa636276a067cbe9d8997f761aecb703304b3800ccf555c9f3dc64214b297fb1966a3b6d83"6}'
1curl -X POST "https://docs-demo.quiknode.pro/sendtx/" \2-H "Content-Type: application/json" \3-H "Accept: application/json" \4-d '{5"hex": "0xf86c0985174876e800825208943535353535353535353535353535353535353535880de0b6b3a76400008025a028ef61340bd939bc2195fe537567866003e1a15d3c71ff63e1590620aa636276a067cbe9d8997f761aecb703304b3800ccf555c9f3dc64214b297fb1966a3b6d83"6}'
1const 본문 = {2hex: "0xf86c0985174876e800825208943535353535353535353535353535353535353535880de0b6b3a76400008025a028ef61340bd939bc2195fe537567866003e1a15d3c71ff63e1590620aa636276a067cbe9d8997f761aecb703304b3800ccf555c9f3dc64214b297fb1966a3b6d83"3}45async 함수 main() {6const response = await fetch('https://docs-demo.quiknode.pro/sendtx/', {7메서드: 'POST',8headers: {'Content-Type': 'application/json', 'Accept': 'application/json'},9본문: JSON.stringify(body)10})11const data = await response.json()12콘솔.log(데이터)13}1415main()
1const 본문 = {2hex: "0xf86c0985174876e800825208943535353535353535353535353535353535353535880de0b6b3a76400008025a028ef61340bd939bc2195fe537567866003e1a15d3c71ff63e1590620aa636276a067cbe9d8997f761aecb703304b3800ccf555c9f3dc64214b297fb1966a3b6d83"3}45async 함수 main() {6const response = await fetch('https://docs-demo.quiknode.pro/sendtx/', {7메서드: 'POST',8headers: {'Content-Type': 'application/json', 'Accept': 'application/json'},9본문: JSON.stringify(body)10})11const data = await response.json()12콘솔.log(데이터)13}1415main()
1import 요청2import json34url = "https://docs-demo.quiknode.pro/sendtx/"56페이로드 = json.dumps({7"hex": "0xf86c0985174876e800825208943535353535353535353535353535353535353535880de0b6b3a76400008025a028ef61340bd939bc2195fe537567866003e1a15d3c71ff63e1590620aa636276a067cbe9d8997f761aecb703304b3800ccf555c9f3dc64214b297fb1966a3b6d83"8})910헤더 = {11'Content-Type': 'application/json',12'Accept': 'application/json'13}1415답변 = 요청.요청("POST", url, 헤더=헤더, data=페이로드)1617인쇄(응답.text)
1import 요청2import json34url = "https://docs-demo.quiknode.pro/sendtx/"56페이로드 = json.dumps({7"hex": "0xf86c0985174876e800825208943535353535353535353535353535353535353535880de0b6b3a76400008025a028ef61340bd939bc2195fe537567866003e1a15d3c71ff63e1590620aa636276a067cbe9d8997f761aecb703304b3800ccf555c9f3dc64214b297fb1966a3b6d83"8})910헤더 = {11'Content-Type': 'application/json',12'Accept': 'application/json'13}1415답변 = 요청.요청("POST", url, 헤더=헤더, data=페이로드)1617인쇄(응답.text)
1require "uri"2require "json"3require "net/http"45uri = URI("https://docs-demo.quiknode.pro/sendtx/")67페이로드 = {8hex: "0xf86c0985174876e800825208943535353535353535353535353535353535353535880de0b6b3a76400008025a028ef61340bd939bc2195fe537567866003e1a15d3c71ff63e1590620aa636276a067cbe9d8997f761aecb703304b3800ccf555c9f3dc64214b297fb1966a3b6d83"9}1011요청 = 순::HTTP::POST.새(URI)12요청["Content-Type"] = "application/json"13request["Accept"] = "application/json"14요청.본문 = JSON.생성(페이로드)1516답변 = 순::HTTP.시작(uri.host, uri.port, use_ssl: true) do |http|17http.요청(요청)18끝1920응답을 넣습니다.본문
1require "uri"2require "json"3require "net/http"45uri = URI("https://docs-demo.quiknode.pro/sendtx/")67페이로드 = {8hex: "0xf86c0985174876e800825208943535353535353535353535353535353535353535880de0b6b3a76400008025a028ef61340bd939bc2195fe537567866003e1a15d3c71ff63e1590620aa636276a067cbe9d8997f761aecb703304b3800ccf555c9f3dc64214b297fb1966a3b6d83"9}1011요청 = 순::HTTP::POST.새(URI)12요청["Content-Type"] = "application/json"13request["Accept"] = "application/json"14요청.본문 = JSON.생성(페이로드)1516답변 = 순::HTTP.시작(uri.host, uri.port, use_ssl: true) do |http|17http.요청(요청)18끝1920응답을 넣습니다.본문
답변
1{2"result": "txid_of_broadcasted_transaction"3}
1{2"result": "txid_of_broadcasted_transaction"3}