/peggy/v1/oracle/event/{address} REST API Endpoint
路徑參數
地址
字串
載入中...
退貨
last_claim_event
物件
載入中...
ethereum_event_nonce
字串
載入中...
ethereum_event_height
字串
載入中...
請求
1curl -X GET "https://docs-demo.injective-testnet.quiknode.pro/peggy/v1/oracle/event/inj1c8rpu79mr70hqsgzutdd6rhvzhej9vntm6fqku" \2-H "accept: application/json"
1curl -X GET "https://docs-demo.injective-testnet.quiknode.pro/peggy/v1/oracle/event/inj1c8rpu79mr70hqsgzutdd6rhvzhej9vntm6fqku" \2-H "accept: application/json"
1const myHeaders = new Headers();2myHeaders.追加("accept", "application/json");34const requestOptions = {5方法: "GET",6標題: myHeaders,7重定向: 「追蹤」8};910fetch("https://docs-demo.injective-testnet.quiknode.pro/peggy/v1/oracle/event/inj1c8rpu79mr70hqsgzutdd6rhvzhej9vntm6fqku", requestOptions)11.接著((回應) => 回應.文字())12.接著((結果) => 控制台.log(結果))13.catch((錯誤) => 控制台.錯誤(錯誤));14
1const myHeaders = new Headers();2myHeaders.追加("accept", "application/json");34const requestOptions = {5方法: "GET",6標題: myHeaders,7重定向: 「追蹤」8};910fetch("https://docs-demo.injective-testnet.quiknode.pro/peggy/v1/oracle/event/inj1c8rpu79mr70hqsgzutdd6rhvzhej9vntm6fqku", requestOptions)11.接著((回應) => 回應.文字())12.接著((結果) => 控制台.log(結果))13.catch((錯誤) => 控制台.錯誤(錯誤));14
1匯入 請求23url = "https://docs-demo.injective-testnet.quiknode.pro/peggy/v1/oracle/event/inj1c8rpu79mr70hqsgzutdd6rhvzhej9vntm6fqku"45有效載荷 = {}6標題 = {7'accept': 'application/json'8}910回應 = 請求.請求("GET", url, headers=headers, data=有效載荷)1112列印(回應.text)13
1匯入 請求23url = "https://docs-demo.injective-testnet.quiknode.pro/peggy/v1/oracle/event/inj1c8rpu79mr70hqsgzutdd6rhvzhej9vntm6fqku"45有效載荷 = {}6標題 = {7'accept': 'application/json'8}910回應 = 請求.請求("GET", url, headers=headers, data=有效載荷)1112列印(回應.text)13
1需要 "uri"2需要 "net/http"34url = URI("https://docs-demo.injective-testnet.quiknode.pro/peggy/v1/oracle/event/inj1c8rpu79mr70hqsgzutdd6rhvzhej9vntm6fqku")56https = 網::HTTP.new(url.主機, url.port)7https.use_ssl = true89請求 = 淨::HTTP::Get.new(url)10請求["接受"] = "application/json"1112回應 = https.請求(請求)13將回應。read_body14
1需要 "uri"2需要 "net/http"34url = URI("https://docs-demo.injective-testnet.quiknode.pro/peggy/v1/oracle/event/inj1c8rpu79mr70hqsgzutdd6rhvzhej9vntm6fqku")56https = 網::HTTP.new(url.主機, url.port)7https.use_ssl = true89請求 = 淨::HTTP::Get.new(url)10請求["接受"] = "application/json"1112回應 = https.請求(請求)13將回應。read_body14