pathfinder_getTransactionStatus RPC Method
参数
交易哈希
字符串
必填
正在加载...
退货
结果
字符串
正在加载...
请求
1curl --location 'https://docs-demo.strk-mainnet.quiknode.pro/rpc/pathfinder/v0.1' \2--header 'accept: application/json' \3--header 'content-type: application/json' \4--data '{5"jsonrpc": "2.0",6"id": 1,7"method": "pathfinder_getTransactionStatus",8"params": [9"0x64f7c084d9cba540cba343f3ec1b69a06bd9169c9016e518d06d418003a31fd"10]11}'
1curl --location 'https://docs-demo.strk-mainnet.quiknode.pro/rpc/pathfinder/v0.1' \2--header 'accept: application/json' \3--header 'content-type: application/json' \4--data '{5"jsonrpc": "2.0",6"id": 1,7"method": "pathfinder_getTransactionStatus",8"params": [9"0x64f7c084d9cba540cba343f3ec1b69a06bd9169c9016e518d06d418003a31fd"10]11}'
1const myHeaders = new Headers();2myHeaders.追加("accept", "application/json");3myHeaders.追加("content-type", "application/json");45const raw = JSON.stringify({6“jsonrpc”: "2.0",7"id": 1,8"method": "pathfinder_getTransactionStatus",9“params”: [10"0x64f7c084d9cba540cba343f3ec1b69a06bd9169c9016e518d06d418003a31fd"11]12});1314const requestOptions = {15方法: "POST",16标题: myHeaders,17正文: raw,18重定向: "follow"19};2021fetch("https://docs-demo.strk-mainnet.quiknode.pro/rpc/pathfinder/v0.1", requestOptions)22.然后((响应) => 响应.文本())23.然后((结果) => 控制台.log(result))24.catch((error) => 控制台.错误(error));25
1const myHeaders = new Headers();2myHeaders.追加("accept", "application/json");3myHeaders.追加("content-type", "application/json");45const raw = JSON.stringify({6“jsonrpc”: "2.0",7"id": 1,8"method": "pathfinder_getTransactionStatus",9“params”: [10"0x64f7c084d9cba540cba343f3ec1b69a06bd9169c9016e518d06d418003a31fd"11]12});1314const requestOptions = {15方法: "POST",16标题: myHeaders,17正文: raw,18重定向: "follow"19};2021fetch("https://docs-demo.strk-mainnet.quiknode.pro/rpc/pathfinder/v0.1", requestOptions)22.然后((响应) => 响应.文本())23.然后((结果) => 控制台.log(result))24.catch((error) => 控制台.错误(error));25
1导入 请求2import json34url = "https://docs-demo.strk-mainnet.quiknode.pro/rpc/pathfinder/v0.1"56有效载荷 = json.dumps({7“jsonrpc”: "2.0",8"id": 1,9"method": "pathfinder_getTransactionStatus",10“params”: [11"0x64f7c084d9cba540cba343f3ec1b69a06bd9169c9016e518d06d418003a31fd"12]13})14标题 = {15“接受”: 'application/json',16“content-type”: 'application/json'17}1819回复 = 请求.请求("POST", url, headers=headers, data=有效载荷)2021打印(响应.text)22
1导入 请求2import json34url = "https://docs-demo.strk-mainnet.quiknode.pro/rpc/pathfinder/v0.1"56有效载荷 = json.dumps({7“jsonrpc”: "2.0",8"id": 1,9"method": "pathfinder_getTransactionStatus",10“params”: [11"0x64f7c084d9cba540cba343f3ec1b69a06bd9169c9016e518d06d418003a31fd"12]13})14标题 = {15“接受”: 'application/json',16“content-type”: 'application/json'17}1819回复 = 请求.请求("POST", url, headers=headers, data=有效载荷)2021打印(响应.text)22
1require "uri"2require "json"3require "net/http"45url = URI("https://docs-demo.strk-mainnet.quiknode.pro/rpc/pathfinder/v0.1")67http = Net::HTTP.new(url.主机, url.端口);8请求 = Net::HTTP::POST.new(url)9请求["接受"] = "application/json"10请求["content-type"] = "application/json"11请求.请求体 = JSON.dump({12“jsonrpc”: "2.0",13"id": 1,14"method": "pathfinder_getTransactionStatus",15“params”: [16"0x64f7c084d9cba540cba343f3ec1b69a06bd9169c9016e518d06d418003a31fd"17]18})1920回复 = http.请求(请求)21返回响应.read_body22
1require "uri"2require "json"3require "net/http"45url = URI("https://docs-demo.strk-mainnet.quiknode.pro/rpc/pathfinder/v0.1")67http = Net::HTTP.new(url.主机, url.端口);8请求 = Net::HTTP::POST.new(url)9请求["接受"] = "application/json"10请求["content-type"] = "application/json"11请求.请求体 = JSON.dump({12“jsonrpc”: "2.0",13"id": 1,14"method": "pathfinder_getTransactionStatus",15“params”: [16"0x64f7c084d9cba540cba343f3ec1b69a06bd9169c9016e518d06d418003a31fd"17]18})1920回复 = http.请求(请求)21返回响应.read_body22