EXPERIMENTAL_receipt_to_tx RPC Method
參數
receipt_id
字串
載入中...
退貨
transaction_hash
字串
載入中...
sender_account_id
字串
載入中...
請求
1curl https://docs-demo.near-mainnet.quiknode.pro/ \2--request POST \3--header "Content-Type: application/json" \4--data '{"jsonrpc": "2.0","method": "EXPERIMENTAL_receipt_to_tx", "params": {"receipt_id": "FGaThnAkXaLf2FK7TU46E6exzh9EHypUG6heLMRSP1Jw"},"id": 1}'5
1curl https://docs-demo.near-mainnet.quiknode.pro/ \2--request POST \3--header "Content-Type: application/json" \4--data '{"jsonrpc": "2.0","method": "EXPERIMENTAL_receipt_to_tx", "params": {"receipt_id": "FGaThnAkXaLf2FK7TU46E6exzh9EHypUG6heLMRSP1Jw"},"id": 1}'5
1var myHeaders = new Headers();2myHeaders.追加("Content-Type", "application/json");34var raw = JSON.stringify({5"jsonrpc": "2.0",6"method": "EXPERIMENTAL_receipt_to_tx",7"params": {8"receipt_id": "FGaThnAkXaLf2FK7TU46E6exzh9EHypUG6heLMRSP1Jw"9},10"id": 111});1213var requestOptions = {14方法: 'POST',15標題: myHeaders,16正文: 原始,17redirect: 'follow'18};1920fetch("https://docs-demo.near-mainnet.quiknode.pro/", requestOptions)21.then(response => response.text())22.then(result => console.log(result))23.catch(error => console.log('error', error));24
1var myHeaders = new Headers();2myHeaders.追加("Content-Type", "application/json");34var raw = JSON.stringify({5"jsonrpc": "2.0",6"method": "EXPERIMENTAL_receipt_to_tx",7"params": {8"receipt_id": "FGaThnAkXaLf2FK7TU46E6exzh9EHypUG6heLMRSP1Jw"9},10"id": 111});1213var requestOptions = {14方法: 'POST',15標題: myHeaders,16正文: 原始,17redirect: 'follow'18};1920fetch("https://docs-demo.near-mainnet.quiknode.pro/", requestOptions)21.then(response => response.text())22.then(result => console.log(result))23.catch(error => console.log('error', error));24
1匯入 請求2import json34url = "https://docs-demo.near-mainnet.quiknode.pro/"56有效載荷 = json.dumps({7"jsonrpc": "2.0",8"method": "EXPERIMENTAL_receipt_to_tx",9"params": {10"receipt_id": "FGaThnAkXaLf2FK7TU46E6exzh9EHypUG6heLMRSP1Jw"11},12"id": 113})14標題 = {15「Content-Type」: 'application/json'16}1718回應 = 請求.請求("POST", url, headers=headers, data=有效載荷)1920列印(回應.text)21
1匯入 請求2import json34url = "https://docs-demo.near-mainnet.quiknode.pro/"56有效載荷 = json.dumps({7"jsonrpc": "2.0",8"method": "EXPERIMENTAL_receipt_to_tx",9"params": {10"receipt_id": "FGaThnAkXaLf2FK7TU46E6exzh9EHypUG6heLMRSP1Jw"11},12"id": 113})14標題 = {15「Content-Type」: 'application/json'16}1718回應 = 請求.請求("POST", url, headers=headers, data=有效載荷)1920列印(回應.text)21
1需要 "uri"2require "json"3需要 "net/http"45url = URI("https://docs-demo.near-mainnet.quiknode.pro/")67https = Net::HTTP.new(url.host, url.port);8https.use_ssl = true9請求 = 淨::HTTP::POST.new(網址)10請求["Content-Type"] = "application/json"11請求。正文 = JSON.dump({12"jsonrpc": "2.0",13"method": "EXPERIMENTAL_receipt_to_tx",14"params": {15"receipt_id": "FGaThnAkXaLf2FK7TU46E6exzh9EHypUG6heLMRSP1Jw"16},17"id": 118})1920回應 = https.請求(請求)21將回應。read_body22
1需要 "uri"2require "json"3需要 "net/http"45url = URI("https://docs-demo.near-mainnet.quiknode.pro/")67https = Net::HTTP.new(url.host, url.port);8https.use_ssl = true9請求 = 淨::HTTP::POST.new(網址)10請求["Content-Type"] = "application/json"11請求。正文 = JSON.dump({12"jsonrpc": "2.0",13"method": "EXPERIMENTAL_receipt_to_tx",14"params": {15"receipt_id": "FGaThnAkXaLf2FK7TU46E6exzh9EHypUG6heLMRSP1Jw"16},17"id": 118})1920回應 = https.請求(請求)21將回應。read_body22