platform.getTx RPC Method
To use the platform.getTx method on the P-Chain, ensure that the end of your URL includes ext/bc/P.
Paramètres
txID
chaîne de caractères
OBLIGATOIRE
Chargement...
encoding
chaîne de caractères
Chargement...
Renvoie
résultat
objet
Chargement...
tx
objet
Chargement...
unsignedTx
objet
Chargement...
networkID
entier
Chargement...
blockchainID
chaîne de caractères
Chargement...
outputs
tableau
Chargement...
ID d'actif
chaîne de caractères
Chargement...
fxID
chaîne de caractères
Chargement...
sortie
objet
Chargement...
adresses
tableau
Chargement...
montant
entier
Chargement...
locktime
entier
Chargement...
threshold
entier
Chargement...
inputs
tableau
Chargement...
memo
chaîne de caractères
Chargement...
sourceChain
chaîne de caractères
Chargement...
importedInputs
tableau
Chargement...
txID
chaîne de caractères
Chargement...
outputIndex
entier
Chargement...
ID d'actif
chaîne de caractères
Chargement...
fxID
chaîne de caractères
Chargement...
entrée
objet
Chargement...
montant
entier
Chargement...
signatureIndices
tableau
Chargement...
credentials
tableau
Chargement...
signatures
tableau
Chargement...
encoding
chaîne de caractères
Chargement...
Requête
Réponse
1{2"jsonrpc": "2.0",3"id": 1,4"result": {5"tx": {6"unsignedTx": {7"networkID": 14,8"blockchainID": "11111111111111111111111111111111LpoYY",9"outputs": [10{11"assetID": "2MxKSeEWXViLdYyDhW1SQ46AECZEbE2bnVRZptv42JrxqyUX5k",12"fxID": "spdxUxVJQbX85MGxMHbKw1sHxMnSqJ3QBzDyDYEP3h6TLuxqQ",13"output": {14"addresses": [15"P-flare1ljm5j7ku39shkern8peyg223axa9m0z30cl63c"16],17"amount": 998966250,18"locktime": 0,19"threshold": 120}21}22],23"inputs": [],24"memo": "0x",25"sourceChain": "umkbhSrjVw5nUvy1eo25AdrjRkPBdtzAMewuxA2rqEx4YMo4c",26"importedInputs": [27{28"txID": "JzTQWEoc7wpQ1irazdfrUxWJQDAbYb3cYapaKmywWRCZnmkLC",29"outputIndex": 0,30"assetID": "2MxKSeEWXViLdYyDhW1SQ46AECZEbE2bnVRZptv42JrxqyUX5k",31"fxID": "spdxUxVJQbX85MGxMHbKw1sHxMnSqJ3QBzDyDYEP3h6TLuxqQ",32"input": {33"amount": 1000000000,34"signatureIndices": [35036]37}38}39]40},41"credentials": [42{43"signatures": [44"0xea7f0bd58ebdb00304659490a767e198deddfef7b79df9b75fa309b26e9dae04646d6abae480d2e49342f52329a17d4ecbd2bf951988584beb8bccbf1b01a8ca01"45]46}47],48"id": "2mgNobrqvuqQixoQvibWegh7Z8nd2WjufQTmfSVr1F9k69adKC"49},50"encoding": "json"51}52}
1{2"jsonrpc": "2.0",3"id": 1,4"result": {5"tx": {6"unsignedTx": {7"networkID": 14,8"blockchainID": "11111111111111111111111111111111LpoYY",9"outputs": [10{11"assetID": "2MxKSeEWXViLdYyDhW1SQ46AECZEbE2bnVRZptv42JrxqyUX5k",12"fxID": "spdxUxVJQbX85MGxMHbKw1sHxMnSqJ3QBzDyDYEP3h6TLuxqQ",13"output": {14"addresses": [15"P-flare1ljm5j7ku39shkern8peyg223axa9m0z30cl63c"16],17"amount": 998966250,18"locktime": 0,19"threshold": 120}21}22],23"inputs": [],24"memo": "0x",25"sourceChain": "umkbhSrjVw5nUvy1eo25AdrjRkPBdtzAMewuxA2rqEx4YMo4c",26"importedInputs": [27{28"txID": "JzTQWEoc7wpQ1irazdfrUxWJQDAbYb3cYapaKmywWRCZnmkLC",29"outputIndex": 0,30"assetID": "2MxKSeEWXViLdYyDhW1SQ46AECZEbE2bnVRZptv42JrxqyUX5k",31"fxID": "spdxUxVJQbX85MGxMHbKw1sHxMnSqJ3QBzDyDYEP3h6TLuxqQ",32"input": {33"amount": 1000000000,34"signatureIndices": [35036]37}38}39]40},41"credentials": [42{43"signatures": [44"0xea7f0bd58ebdb00304659490a767e198deddfef7b79df9b75fa309b26e9dae04646d6abae480d2e49342f52329a17d4ecbd2bf951988584beb8bccbf1b01a8ca01"45]46}47],48"id": "2mgNobrqvuqQixoQvibWegh7Z8nd2WjufQTmfSVr1F9k69adKC"49},50"encoding": "json"51}52}
Vous n'avez pas encore de compte ?
Créez votre endpoint Quicknode en quelques secondes et commencez à développer
Commencez gratuitement