EXPERIMENTAL_receipt_to_tx RPC Method
参数
receipt_id
字符串
正在加载...
退货
交易哈希
字符串
正在加载...
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正文: raw,17重定向: 'follow'18};1920fetch("https://docs-demo.near-mainnet.quiknode.pro/", requestOptions)21.然后(响应 => 响应.text())22.然后(结果 => 控制台.log(result))23.catch(error => 控制台.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正文: raw,17重定向: 'follow'18};1920fetch("https://docs-demo.near-mainnet.quiknode.pro/", requestOptions)21.然后(响应 => 响应.text())22.然后(结果 => 控制台.log(result))23.catch(error => 控制台.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
1require "uri"2require "json"3require "net/http"45url = URI("https://docs-demo.near-mainnet.quiknode.pro/")67https = Net::HTTP.new(url.host, url.port);8https.use_ssl = true9请求 = Net::HTTP::POST.new(url)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
1require "uri"2require "json"3require "net/http"45url = URI("https://docs-demo.near-mainnet.quiknode.pro/")67https = Net::HTTP.new(url.host, url.port);8https.use_ssl = true9请求 = Net::HTTP::POST.new(url)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