platform.getTxStatus RPC Method
To use the platform.getTxStatus method on the P-Chain, ensure that the end of your URL includes ext/bc/P.
पैरामीटर
txID
डोरी
आवश्यक
लोड हो रहा है...
रिटर्न
स्थिति
डोरी
लोड हो रहा है...
Committed
डोरी
लोड हो रहा है...
Processing
डोरी
लोड हो रहा है...
Dropped
डोरी
लोड हो रहा है...
Unknown
डोरी
लोड हो रहा है...
अनुरोध
1curl -X POST "https://docs-demo.flare-mainnet.quiknode.pro/ext/bc/C/rpc/" \2-एच "Content-Type: application/json" \3-डी '{4"jsonrpc": "2.0",5"method": "platform.getTxStatus",6"params": {7"txID": "QNc6KfssJB3zj88U6rTkznthJHr6gWi3PsNsEcYCJq47QPvzK"8},9"आईडी": 110}'
1curl -X POST "https://docs-demo.flare-mainnet.quiknode.pro/ext/bc/C/rpc/" \2-एच "Content-Type: application/json" \3-डी '{4"jsonrpc": "2.0",5"method": "platform.getTxStatus",6"params": {7"txID": "QNc6KfssJB3zj88U6rTkznthJHr6gWi3PsNsEcYCJq47QPvzK"8},9"आईडी": 110}'
1स्थिर शरीर = {2jsonrpc : '2.0' ,3method: 'platform.getTxStatus',4params: {"txID":"QNc6KfssJB3zj88U6rTkznthJHr6gWi3PsNsEcYCJq47QPvzK"},5पहचान : 16}78अतुल्यकालिक समारोह मुख्य ( ) {9const response = await fetch('https://docs-demo.flare-mainnet.quiknode.pro/ext/bc/C/rpc/', {10तरीका : 'डाक' ,11headers: {'Content-Type': 'application/json'},12शरीर : JSON.stringify ( body )13} )14स्थिर डेटा = await response.json ( )15कंसोल.लॉग ( डेटा )16}1718मुख्य ( )
1स्थिर शरीर = {2jsonrpc : '2.0' ,3method: 'platform.getTxStatus',4params: {"txID":"QNc6KfssJB3zj88U6rTkznthJHr6gWi3PsNsEcYCJq47QPvzK"},5पहचान : 16}78अतुल्यकालिक समारोह मुख्य ( ) {9const response = await fetch('https://docs-demo.flare-mainnet.quiknode.pro/ext/bc/C/rpc/', {10तरीका : 'डाक' ,11headers: {'Content-Type': 'application/json'},12शरीर : JSON.stringify ( body )13} )14स्थिर डेटा = await response.json ( )15कंसोल.लॉग ( डेटा )16}1718मुख्य ( )
1आयात अनुरोध2आयात करें json34url = "https://docs-demo.flare-mainnet.quiknode.pro/ext/bc/C/rpc/"56पेलोड = json . डंप्स ( {7"jsonrpc" : "2.0" ,8"method": "platform.getTxStatus",9"params": {10"txID": "QNc6KfssJB3zj88U6rTkznthJHr6gWi3PsNsEcYCJq47QPvzK"11} ,12"पहचान" : 113} )14हेडर = {15'सामग्री प्रकार' : 'एप्लिकेशन/जेसन'16}1718प्रतिक्रिया = अनुरोध.अनुरोध ( " POST " , यूआरएल , हेडर = हेडर , डेटा = पेलोड )1920प्रिंट ( प्रतिक्रिया . पाठ )
1आयात अनुरोध2आयात करें json34url = "https://docs-demo.flare-mainnet.quiknode.pro/ext/bc/C/rpc/"56पेलोड = json . डंप्स ( {7"jsonrpc" : "2.0" ,8"method": "platform.getTxStatus",9"params": {10"txID": "QNc6KfssJB3zj88U6rTkznthJHr6gWi3PsNsEcYCJq47QPvzK"11} ,12"पहचान" : 113} )14हेडर = {15'सामग्री प्रकार' : 'एप्लिकेशन/जेसन'16}1718प्रतिक्रिया = अनुरोध.अनुरोध ( " POST " , यूआरएल , हेडर = हेडर , डेटा = पेलोड )1920प्रिंट ( प्रतिक्रिया . पाठ )
1ज़रूरत होना "उरी"2ज़रूरत होना "जेसन"3ज़रूरत होना "नेट/http"45uri = URI("https://docs-demo.flare-mainnet.quiknode.pro/ext/bc/C/rpc/")67पेलोड = {8jsonrpc : "2.0" ,9पहचान : 1 ,10method: "platform.getTxStatus",11params: {"txID":"QNc6KfssJB3zj88U6rTkznthJHr6gWi3PsNsEcYCJq47QPvzK"}12}1314अनुरोध = नेट :: एचटीटीपी :: पोस्ट.नया ( यूआरआई )15अनुरोध [ "सामग्री-प्रकार" ] = "एप्लिकेशन/जेसन"16अनुरोध.बॉडी = JSON.generate ( पेलोड )1718प्रतिक्रिया = नेट :: एचटीटीपी.स्टार्ट ( यूआरआई.होस्ट , यूआरआई.पोर्ट , use_ssl : सत्य ) करना | http |19http.request ( request )20अंत2122प्रतिक्रिया देता है . शरीर
1ज़रूरत होना "उरी"2ज़रूरत होना "जेसन"3ज़रूरत होना "नेट/http"45uri = URI("https://docs-demo.flare-mainnet.quiknode.pro/ext/bc/C/rpc/")67पेलोड = {8jsonrpc : "2.0" ,9पहचान : 1 ,10method: "platform.getTxStatus",11params: {"txID":"QNc6KfssJB3zj88U6rTkznthJHr6gWi3PsNsEcYCJq47QPvzK"}12}1314अनुरोध = नेट :: एचटीटीपी :: पोस्ट.नया ( यूआरआई )15अनुरोध [ "सामग्री-प्रकार" ] = "एप्लिकेशन/जेसन"16अनुरोध.बॉडी = JSON.generate ( पेलोड )1718प्रतिक्रिया = नेट :: एचटीटीपी.स्टार्ट ( यूआरआई.होस्ट , यूआरआई.पोर्ट , use_ssl : सत्य ) करना | http |19http.request ( request )20अंत2122प्रतिक्रिया देता है . शरीर
प्रतिक्रिया
1{2"jsonrpc" : "2.0" ,3"result": {4"status": "Unknown"5} ,6"पहचान" : 17}
1{2"jsonrpc" : "2.0" ,3"result": {4"status": "Unknown"5} ,6"पहचान" : 17}
अब तक कोई खाता नहीं है?
कुछ ही सेकंड में अपना क्विकनोड एंडपॉइंट बनाएं और निर्माण शुरू करें।
मुफ़्त में शुरुआत करें