P-Chain
platform.exportKey
Get the private key that controls a given address.
Method: POST
https://avax.nownodes.io/ext/bc/P
Example body (raw)
{
"jsonrpc":"2.0",
"id" :1,
"method" :"platform.exportKey",
"params" :{
"username" :"myUsername",
"password": "myPassword",
"address": "P-avax18jma8ppw3nhx5r4ap8clazz0dps7rv5ukulre5"
}
}
Example response: 200
{
"jsonrpc": "2.0",
"error": {
"code": -32000,
"message": "problem retrieving user \"myUsername\": incorrect password: user \"myUsername\"",
"data": null
},
"id": 1
}
platform.getBalance
Get the balance of AVAX controlled by a given address.
Method: POST
https://avax.nownodes.io/ext/bc/P
Example body (raw)
{
"jsonrpc":"2.0",
"id": 1,
"method" :"platform.getBalance",
"params" :{
"addresses":["P-custom18jma8ppw3nhx5r4ap8clazz0dps7rv5u9xde7p"]
}
}
Example response: 200
{
"jsonrpc": "2.0",
"error": {
"code": -32000,
"message": "couldn't parse address \"P-custom18jma8ppw3nhx5r4ap8clazz0dps7rv5u9xde7p\": expected hrp \"avax\" but got \"custom\"",
"data": null
},
"id": 1
}
platform.getBlock
Get a block by its ID.
Method: POST
https://avax.nownodes.io/ext/bc/P
Example body (raw)
{
"jsonrpc": "2.0",
"method": "platform.getBlock",
"params": {
"blockID": "d7WYmb8VeZNHsny3EJCwMm6QA37s1EHwMxw1Y71V3FqPZ5EFG",
"encoding": "json"
},
"id": 1
}
Example response: 200
{
"jsonrpc": "2.0",
"result": {
"block": {
"parentID": "5615di9ytxujackzaXNrVuWQy5y8Yrt8chPCscMr5Ku9YxJ1S",
"height": 1000001,
"id": "d7WYmb8VeZNHsny3EJCwMm6QA37s1EHwMxw1Y71V3FqPZ5EFG",
"txs": [
{
"unsignedTx": {
"networkID": 1,
"blockchainID": "11111111111111111111111111111111LpoYY",
"outputs": [],
"inputs": [
{
"txID": "DTqiagiMFdqbNQ62V2Gt1GddTVLkKUk2caGr4pyza9hTtsfta",
"outputIndex": 0,
"assetID": "FvwEAhmxKfeiG8SnEvq42hc6whRyY3EFYAvebMqDNDGCgxN5Z",
"fxID": "spdxUxVJQbX85MGxMHbKw1sHxMnSqJ3QBzDyDYEP3h6TLuxqQ",
"input": {
"amount": 13839124063,
"signatureIndices": [
0
]
}
}
],
"memo": "0x",
"destinationChain": "2q9e4r6Mu3U68nU1fYjgbR6JvwrRx36CohpAX5UQxse55x1Q5",
"exportedOutputs": [
{
"assetID": "FvwEAhmxKfeiG8SnEvq42hc6whRyY3EFYAvebMqDNDGCgxN5Z",
"fxID": "spdxUxVJQbX85MGxMHbKw1sHxMnSqJ3QBzDyDYEP3h6TLuxqQ",
"output": {
"addresses": [
"P-avax1jkjyvlwclyu42n4yuegpczpfgwrf8r9lyj0d3c"
],
"amount": 13838124063,
"locktime": 0,
"threshold": 1
}
}
]
},
"credentials": [
{
"signatures": [
"0xc79711c4b48dcde205b63603efef7c61773a0eb47efb503fcebe40d21962b7c25ebd734057400a12cce9cf99aceec8462923d5d91fffe1cb908372281ed7385801"
]
}
],
"id": "AkTcR1J5b6qPdLaUDycs1YqPAoNY9aPNyb33VSnvyQ6vTCryQ"
}
]
},
"encoding": "json"
},
"id": 1
}
platform.getBlockByHeight
Get a block by its height.
Method: POST
https://avax.nownodes.io/ext/bc/P
Example body (raw)
{
"jsonrpc": "2.0",
"method": "platform.getBlockByHeight",
"params": {
"height": 1000001,
"encoding": "hex"
},
"id": 1
}
Example response: 200
{
"jsonrpc": "2.0",
"error": {
"code": -32000,
"message": "couldn't get block with id d7WYmb8VeZNHsny3EJCwMm6QA37s1EHwMxw1Y71V3FqPZ5EFG: couldn't unmarshal interface: unknown type ID 383",
"data": null
},
"id": 1
}
platform.getBlockchains
Get all the blockchains that exist (excluding the P-Chain).
Method: POST
https://avax.nownodes.io/ext/bc/P
Example body (raw)
{
"jsonrpc": "2.0",
"method": "platform.getBlockchains",
"params": {},
"id": 1
}
Example response: 200
{
"jsonrpc": "2.0",
"result": {
"blockchains": [
{
"id": "2BfgPNjJhrirnfeLD9bkNbKMwWvernQkQFNYnYTDHnb6kwNRJe",
"name": "mintara",
"subnetID": "T6XNCf5qHYhJigDcGtjTaGvfiQGRW8JVXTyPza9eZBfCGyDF",
"vmID": "qBnANjFRAUssEi9jfjviksjMrcZvcKMAPZtR9WDPivwW8G9PY"
},
{
"id": "QqTW4iFsoBwaP3JyXu9b1K3dQz96KLPSek6cPJs839ZQTPfmP",
"name": "mintara",
"subnetID": "2hNKkTZi6Dvt6pfRNhh4Wwyhd6Sow7zvmbGuZcmABqQASxV15k",
"vmID": "qBnANjFRAUssEi9jfjviksjMrcZvcKMAPZtR9WDPivwW8G9PY"
},
{
"id": "k2SFEZ2MZr9UGXiycnA1DdaLqZTKDaHK7WUXVLhJk5F9DD8r1",
"name": "PLAYA3ULL",
"subnetID": "2wLe8Ma7YcUmxMJ57JVWETMSHz1mjXmJc5gmssvKm3Pw8GkcFq",
"vmID": "cN6t22ptqzNhvvB66z25f2eZXK92PR62fxoVYRzDw1hWsMZt2"
},
{
"id": "W6m4NgS2ie2LJerquYAt7V6fVXVAMmjvYFsWWtyjDY97exGTy",
"name": "meld",
"subnetID": "2ibTg9ruyJRQf4NpRbkd1Utcfayo3gRRpkoWGCWNC3oXTZoYCe",
"vmID": "qBNy2jVdA34ynZUSP7Q1nBQovhQHq5vfGxrKRYey9ojJia944"
},
{
"id": "2tsFdSeemtqK9vaPgjPrcwvKFKPw1T6PHufaZ26tKbAFSkXPTE",
"name": "UPTN",
"subnetID": "yDxaSh2hoVxQKRHmacV1xFpuSgHf6Q6cCMu4v3GoLQnqQWk6L",
"vmID": "eaE7qVXhH7XwvPafCGcAkYvdMPzy8sxweauh1XqUsAKZQFS7s"
},
{
"id": "2AKVcP7q6Hqpj1qznDjdTXXULRsHz9SHdrYLWwQtENqQmeKugN",
"name": "XFRQ",
"subnetID": "D3YwWGVE7MxBkiHq6s9Qkd978QyCBDxAMcJeBqsEyVRZf4XGh",
"vmID": "fsroEDftEnZGWg3ygVCR99frZpT6ZHWggNwgQi1Sa2bpYNXsZ"
},
{
"id": "MQ8r2Fq1oX9pCGayf6rgvfxLQenxxox5X6GNLAyByRvkBnDAy",
"name": "armadaMainnet",
"subnetID": "amGZTrCQ42RekPWrM5foAotuDBreYGNybeRz8HjU9ZpQsbXQu",
"vmID": "jv9qXJXMRmv6bsRppHmKUaCiitvbo45YoMrh2MSD5vNB4QafW"
},
{
"id": "2B8Q1rbfrDTAFtizaZC9Wzqt1GGV9yHL5AtYQ5H7joo4Jw8YMc",
"name": "subnetsio",
"subnetID": "dwWfVQ5dgYMeWTuP6JB4xevQmVw4MmHKLFUeHAUoMNV9v5cHp",
"vmID": "srEXiWaHxVVXht5yphBuxuGKZGSsJwkQrwFcyCiKtMTRFWmJR"
},
{
"id": "RVMTSJQauubhivGsm1zES192nNqh66mP1Cnmb4Jo2n3A7rStE",
"name": "huntingparty",
"subnetID": "CGnV1d5ErH1fqncaggArg1UmSrpmCWvDTr1wU3vuXwDT6PHpD",
"vmID": "o1Fwxyp3gSCjw2egiGTFfYGu2mWaks3do7C83E6CursLFLTeU"
},
{
"id": "2tdRBvNEUhoD6ZWYF9b5NBdj5hHwWPfvSq1EnzvV8QU2XjLNy9",
"name": "shrapnelnetwork",
"subnetID": "Cv1gyKNUtPNAtFw8YcjbsD4a3HNRbNvinY7t2gnGK4J54rQK3",
"vmID": "spwf44sL7fXJDwxthqSH9S255fgLRZP9eTFpuAGaE8Q7PyZjL"
},
{
"id": "A6y1Q8MTn2duVWqQEo29XHFNe1A2CXj5kvodDgWhbwY4fqq4H",
"name": "CloutContracts",
"subnetID": "2t3DzAaL3mUX9bm9VgCsLkw6WrGsyRu2NuTfiZUbEr8PMAzhh2",
"vmID": "WhFCLeWPtCtPpBXsgLaioBtGEWjr8r5z6QwjFW3kGDbGtxRGA"
},
{
"id": "22v7AG7h6qaVxd4bLvAsSsg2LZ4RCn5iVYgFn7a2Fj1LCuYwjv",
"name": "DOS Chain",
"subnetID": "nQCwF6V9y8VFjvMuPeQVWWYn6ba75518Dpf6ZMWZNb3NyTA94",
"vmID": "X5tFvg9JwoXgaYPQbceSzhGoCF6dhwrDm5BnAav6meFp3xxmg"
},
{
"id": "remqeL56TsyKjVLdNx7waAwMv9R63uJ9ePR7cBvxzTDmMcHAp",
"name": "Loco Legends",
"subnetID": "KfZ2YSPbKDGqJW2yiiYFYLwAu39MAt8JKQKyRzcurrKAJfff9",
"vmID": "afS5LWuouQCb8yhR1ZhymdB9tKik4eYyGdDGk98A8weDcQW9b"
},
{
"id": "2qauVQi6TKRSGLvQQwXmvqPvrVgvrmf4TKXmpQsQag2mpCw337",
"name": "XplusSocialChain",
"subnetID": "2aa7G6cQbomnqyhBexzWPmvihio8Uk1qrzYpBRNH2wcNpBkgNU",
"vmID": "ftrXyoS4Js6bk8jSJcbYK8jejD4aTUa2jaNX8Pp86q8KtfCjj"
},
{
"id": "zxgvYNGgZ8SzRF9F12eYCBYrSzVQT4nKYecoba8p3hXxojsxE",
"name": "be messaging",
"subnetID": "2oxjc7xuWuPTv5cw8dQUvAc4Vv9UFuEwVhPqgTUmfenX1yXYPn",
"vmID": "v3m4wPxaHpvGr8qfMeyK6PRW3idZrPHmYcMTt7oXdK47yurVH"
},
{
"id": "TvcBK7xMEHuqKCs8bmuuuEYk82Yo84dA5TFPU1NQdpVzdspNV",
"name": "let there",
"subnetID": "VWUvvM4y5FJs7peMHDLuBA5DDBbSFw7E1F4pCBTQ6V5qjTGDk",
"vmID": "v3m4wPxaHpvGr8qfMeyK6PRW3idZrPHmYcMTt7oXdK47yurVH"
},
{
"id": "222KARi6VgSZXbewFp1BvZgyuSKVa9JPb7swhbwN9fUHFKgxUD",
"name": "gunzilla",
"subnetID": "9ewhue9Lyryt1G4H1icgZotc6wRVwiPgmiVemSN24JXwg91JH",
"vmID": "YUKPT5yt72CKSu4gD4gaRhkSAEtqcGycn2tfyz1Vq7oVF1sc8"
},
{
"id": "m4xWma3wWpxHAAKWyDXX6oqvzKUkqCXnTJTwKmTkReJpcEuS6",
"name": "IntainMarkets",
"subnetID": "2UEGsEEjRyMSgD7cNufCGEXbPXsma7RctBgfRw3Haqkk8oByFa",
"vmID": "ZLi5JUuvPV4QS326oMJ2NFLKEuxBEpBLmpv692QxbizmW5x1Q"
},
{
"id": "2MrmXmx4nrSn5BS3EAtWg5Pf9madiBoN7MRaByM88g49VArjDt",
"name": "XANA Chain",
"subnetID": "ii7zCu8JNnYYgPT8PwpVYiTS1gcK5RWJfsyuPXTDv8Bn9wspY",
"vmID": "v1xiWupQDfF6f2KfDpe8bFd8nqUYo6z27YbaSCHrw3SMf5Xzu"
},
{
"id": "QVbrD172sAF1TgCvN9DZG93nAd2YBGCJVZP4cngdEKCTy2F9v",
"name": "Pulsar",
"subnetID": "DxanjptkyaeM1eUew2gzUMngHM3n5ttUyMj7BuHw9riXh9pJC",
"vmID": "rXcAFxJFTumjKQSJPe2VNdvR6FveM9r6Zyb2axDddAvVZifXt"
},
{
"id": "2Y3HwzZ4KhgW5EuveTPZgnBobasEozmxQDYT36tQskhEWcnZzf",
"name": "Pulsar",
"subnetID": "2m8swvZPmWzn4UFt8hYywLbyFXZ6DLyUxRwk8fnGBoXJHGNKHE",
"vmID": "rXcAFxJFTumjKQSJPe2VNdvR6FveM9r6Zyb2axDddAvVZifXt"
},
{
"id": "2PDRxzc6jMbZSTLb3sufkVszgQc2jtDnYZGtDTAAfom1CTwPsE",
"name": "numbersevm",
"subnetID": "2gHgAgyDHQv7jzFg6MxU2yyKq5NZBpwFLFeP8xX2E3gyK1SzSQ",
"vmID": "qeX7kcVMMkVLB9ZJKTpvtSjpLbtYooNEdpFzFShwRTFu76qdx"
},
{
"id": "21Ths5Afqi5r4PaoV8r8cruGZWhN11y5rxvy89K8px7pKy3P8E",
"name": "dexalotevm",
"subnetID": "wenKDikJWAYQs3f2v9JhV86fC6kHZwkFZsuUBftnmgZ4QXPnu",
"vmID": "mDVSxzeWHmgqrcXK1tPYqavqTK5MC3mMqme6r3a6cz2fqMfqf"
},
{
"id": "DnBvVcNurkZRSmdXZLxzcUGgwL1t8BfGMMKJRJXt2FaFjL78B",
"name": "dexalotevm",
"subnetID": "2CULZn7Z4u4xaUeMk9CTCmQ7cwaamX7RCdxAcPjforLemxP2rD",
"vmID": "mDVSxzeWHmgqrcXK1tPYqavqTK5MC3mMqme6r3a6cz2fqMfqf"
},
{
"id": "kZn9SwQsgan4R5YcukyNZkkBXRjzuG8mKffhhXg3Mq5We5CXF",
"name": "dexalotevm",
"subnetID": "YDLrMpW9pkHPaRgRZR5fj883YUkJEoTc7XH28L8QBCY9v8FtV",
"vmID": "mDVSxzeWHmgqrcXK1tPYqavqTK5MC3mMqme6r3a6cz2fqMfqf"
},
{
"id": "uNjCdhwZ25PsvfPcZG2Ghv4zGCVzfpKiydGjZnbyvY6mcJLAi",
"name": "dexalotmain",
"subnetID": "YDLrMpW9pkHPaRgRZR5fj883YUkJEoTc7XH28L8QBCY9v8FtV",
"vmID": "mDVSxzeWHmgqrcXK1tPYqavqTK5MC3mMqme6r3a6cz2fqMfqf"
},
{
"id": "2ZiR1Bro5E59siVuwdNuRFzqL95NkvkbzyLBdrsYR9BLSHV7H4",
"name": "D Chain",
"subnetID": "2YNtQRWKQiTG7nq8WuVXD8opx6ocsEY2ZFW9eZcjArtMejeS7T",
"vmID": "X2V8j11wgAHZzcCyf43L4W2qvToBy5LLc6Ve3oPuXRjJjFaC4"
},
{
"id": "2jRZvKtXY5nyWTqRwFh1KMHGrCRxJoULu4r2CsayWRnjdDGbV1",
"name": "StepNetwork",
"subnetID": "7f9jciLEX25NPJEaAz1X7XF44B1Q9UBwq6PdnCHm5mnUq1e1C",
"vmID": "dkjnKTbCTozMmvJJETzrz8sYVs7vSKzkGShHoa493UcQEweU6"
},
{
"id": "2VDqgWTD4wBw3mrs6TVpQpXKgJfiEc8RS7tdyigtWqgB9PDHDU",
"name": "StepNetwork",
"subnetID": "ubYm3dgKcQqioeJimTH5YCRDuR1BBMaoaefEt1pywjJnUFvqJ",
"vmID": "dkjnKTbCTozMmvJJETzrz8sYVs7vSKzkGShHoa493UcQEweU6"
},
{
"id": "DKxssYQeSpJW3vZnEh2fQuuDSinBZr5L1qKZYoggHTqBE3ZPF",
"name": "toki",
"subnetID": "2PEXVyBhvZXFrY8NDjh6WvaK3PzfWvRgsif5Xbj3ARsVA7axCw",
"vmID": "tHBYPxcnf1MKxjQMS56ijcDVFmNeoGDo5tYtHoYT68NhYZJqG"
},
{
"id": "2K33xS9AyP9oCDiHYKVrHe7F54h2La5D8erpTChaAhdzeSu2RX",
"name": "Swimmer",
"subnetID": "2e3CqLY8thW1WKS89WQ7WR9Qy2bCrrP5mv7psqMRGCHGXuQ1Uj",
"vmID": "srSGD5JeYhL8GLx4RUw53VN5TcoBbax6EeCYmy5S3DiteJhdF"
},
{
"id": "21Z7pN9Z6VfmMo8jjhDQYyYJS5MB7MftZSuKrmenhmwADCWWJH",
"name": "WrapTag",
"subnetID": "A1iV86hr1toCL7y4F6PM263n9fomCLUDDwpqFT2sG9FTCZJCm",
"vmID": "srEXiWaHuhNyGwPUi444Tu47ZEDwxTWrbQiuD7FmgSAQ6X7Dy"
},
{
"id": "2H1pfQqnJq1NEw1YK6CWdoH2ucrvaET8renpkxChLtnNWGYrYa",
"name": "Zion Testnet",
"subnetID": "2sbytJgjKRxkwvBZiqXKpuCkD3NRT3MwNu5gV3xdUd6VWNcbN8",
"vmID": "vur6uFcTukRGEyKokgEDFHzFfff6fWkAAgu4UjNza4crpQWjH"
},
{
"id": "22c4sQgGR3rRPmMGut5QfTyQkkBPYvoz95MXGwjzLTmKVCbLgJ",
"name": "Swimmer Network Mainnet",
"subnetID": "w67SAXurn9a67XsjmDBonLUFxQSX1MpcDCiwsabX3q6dzHoHP",
"vmID": "srSGD5JeYhL8GLx4RUw53VN5TcoBbax6EeCYmy5S3DiteJhdF"
},
{
"id": "1J8Aqatpv6So4FG1cSFepGJADthVkLXD8cUZj4TiJx5boqddM",
"name": "Swimmer Network Mainnet",
"subnetID": "BE5Nv8objSftNwxzcxkZGwCfVs3FPdJBio4DBwCF2A5i7RasU",
"vmID": "srSGD5JeYhL8GLx4RUw53VN5TcoBbax6EeCYmy5S3DiteJhdF"
},
{
"id": "DKtd96mRjG1fgfL1Bcr9gppJaPxi9345iLR3W9ZZwq8ZChY9A",
"name": "GemUni",
"subnetID": "4vczxAbLhSpzypadHFEfY8Kn2kibhcZLQgoX9A34rAnADyXnp",
"vmID": "srEXiWaHjBgJPLWjtprZFhiFnFJkY2URD4ug4SJdAnLbkBBGm"
},
{
"id": "q2aTwKuyzgs8pynF7UXBZCU7DejbZbZ6EUyHr3JQzYgwNPUPi",
"name": "DFK Chain",
"subnetID": "Vn3aX6hNRstj5VHHm63TCgPNaeGnRSqCYXQqemSqDd2TQH4qJ",
"vmID": "mDV3QWRXfwgKUWb9sggkv4vQxAQR4y2CyKrt5pLZ5SzQ7EHBv"
},
{
"id": "ta1bV7y93DDiU6x9YgkUf89L5TS7h8wFDDKi8HjWezrTgAMy9",
"name": "C Chain PoW",
"subnetID": "2dc3NncNG29XHsByJSVAHwEgYT3XFtR3b4zPxi5KFr7eeCr6QX",
"vmID": "mgj786NP7uDwBCcq6YwThhaN8FLyybkCa4zBWTQbNgmK6k9A6"
},
{
"id": "2YdeqYZZfGzhz6guB7f8kmg3QxhjEKwKnbbWUksNRHcF64eLcY",
"name": "X Chain PoW",
"subnetID": "2dc3NncNG29XHsByJSVAHwEgYT3XFtR3b4zPxi5KFr7eeCr6QX",
"vmID": "jvYyfQTxGMJLuGWa55kdP2p2zSUYsQ5Raupu4TW34ZAUBAbtq"
},
{
"id": "25i636VUB5wvghNqumGRPGawyK5MSpmVTQiyy5s8SY9ya4CtRR",
"name": "YOUR DOCS SUCKS NO ANY DEV HELPS",
"subnetID": "2TSYtJmLdmBJCTcEP6ZeQ3d7urg1GbrKtVMMdd7nmz46z22PSC",
"vmID": "jvYyfQTxGMJLuGWa55kdP2p2zSUYsQ5Raupu4TW34ZAUBAbtq"
},
{
"id": "2ghHT5a5kbtm4rn2vfod7sZcLRBQHLFa5827X72hKRAGXCKkAq",
"name": "MAKOIN",
"subnetID": "2TSYtJmLdmBJCTcEP6ZeQ3d7urg1GbrKtVMMdd7nmz46z22PSC",
"vmID": "jvYyfQTxGMJLuGWa55kdP2p2zSUYsQ5Raupu4TW34ZAUBAbtq"
},
{
"id": "29ZujU1g8h2qc2JgQjFo7Wby3F2hJhVGohkbeQ9iZ8LjMy2fmZ",
"name": "Testnet",
"subnetID": "jwz8ycZ8V2yHH5b1ysqtZvxtB5UCq34VoHx6C6uy9Gs4GeQ5t",
"vmID": "mgj786NP7uDwBCcq6YwThhaN8FLyybkCa4zBWTQbNgmK6k9A6"
},
{
"id": "iybTYo3sgDgL8c9hyH8qBJaHJ4V5x5Pzy8mXcTSqneoHHPPfN",
"name": "Dthereum",
"subnetID": "29ejv3iGb7xiAiCiTyxqm5cSR81CkitmWttxddRcr5wnrC3uhW",
"vmID": "mgj786NP7uDwBCcq6YwThhaN8FLyybkCa4zBWTQbNgmK6k9A6"
},
{
"id": "GF5KEgiGs2yhDFTL1KgfmszU61U3ipSMpQJZsra5nFysots68",
"name": "Bthereum",
"subnetID": "29ejv3iGb7xiAiCiTyxqm5cSR81CkitmWttxddRcr5wnrC3uhW",
"vmID": "mgj786NP7uDwBCcq6YwThhaN8FLyybkCa4zBWTQbNgmK6k9A6"
},
{
"id": "2q9e4r6Mu3U68nU1fYjgbR6JvwrRx36CohpAX5UQxse55x1Q5",
"name": "C-Chain",
"subnetID": "11111111111111111111111111111111LpoYY",
"vmID": "mgj786NP7uDwBCcq6YwThhaN8FLyybkCa4zBWTQbNgmK6k9A6"
},
{
"id": "2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM",
"name": "X-Chain",
"subnetID": "11111111111111111111111111111111LpoYY",
"vmID": "jvYyfQTxGMJLuGWa55kdP2p2zSUYsQ5Raupu4TW34ZAUBAbtq"
}
]
},
"id": 1
}
platform.getBlockchainStatus
Get the status of a blockchain.
Method: POST
https://avax.nownodes.io/ext/bc/P
Example body (raw)
{
"jsonrpc": "2.0",
"method": "platform.getBlockchainStatus",
"params":{
"blockchainID":"2NbS4dwGaf2p1MaXb65PrkZdXRwmSX4ZzGnUu7jm3aykgThuZE"
},
"id": 1
}
Example response: 200
{
"jsonrpc": "2.0",
"result": {
"status": "Unknown"
},
"id": 1
}
platform.getCurrentSupply
Returns an upper bound on amount of tokens that exist that can stake the requested Subnet. This is an upper bound because it does not account for burnt tokens, including transaction fees.
Method: POST
https://avax.nownodes.io/ext/bc/P
Example body (raw)
{
"jsonrpc": "2.0",
"method": "platform.getCurrentSupply",
"params": {
"subnetID": "11111111111111111111111111111111LpoYY"
},
"id": 1
}
Example response: 200
{
"jsonrpc": "2.0",
"result": {
"supply": "440845629500101381",
"height": "12479801"
},
"id": 1
}
platform.getCurrentValidators
List the current validators of the given Subnet.
Method: POST
https://avax.nownodes.io/ext/bc/P
Example body (raw)
{
"jsonrpc": "2.0",
"method": "platform.getCurrentValidators",
"params": {
"nodeIDs": ["NodeID-5mb46qkSBj81k9g9e4VFjGGSbaaSLFRzD"]
},
"id": 1
}
Example response: 200
{
"jsonrpc": "2.0",
"result": {
"validators": []
},
"id": 1
}
platform.getHeight
Returns the height of the last accepted block.
Method: POST
https://avax.nownodes.io/ext/bc/P
Example body (raw)
{
"jsonrpc": "2.0",
"method": "platform.getHeight",
"params": {},
"id": 1
}
Example response: 200
{
"jsonrpc": "2.0",
"result": {
"height": "12479880"
},
"id": 1
}
platform.getMinStake
Get the minimum amount of tokens required to validate the requested Subnet and the minimum amount of tokens that can be delegated.
Method: POST
https://avax.nownodes.io/ext/bc/P
Example body (raw)
{
"jsonrpc":"2.0",
"id" :1,
"method" :"platform.getMinStake",
"params": {
"subnetID":"11111111111111111111111111111111LpoYY"
}
}
Example response: 200
{
"jsonrpc": "2.0",
"result": {
"minValidatorStake": "2000000000000",
"minDelegatorStake": "25000000000"
},
"id": 1
}
platform.getRewardUTXOs
Returns the UTXOs that were rewarded after the provided transaction's staking or delegation period ended.
Method: POST
https://avax.nownodes.io/ext/bc/P
Example body (raw)
{
"jsonrpc": "2.0",
"method": "platform.getRewardUTXOs",
"params": {
"txID": "2nmH8LithVbdjaXsxVQCQfXtzN9hBbmebrsaEYnLM9T32Uy2Y5"
},
"id": 1
}
Example response: 200
{
"jsonrpc": "2.0",
"error": {
"code": -32000,
"message": "couldn't unmarshal an argument. Ensure arguments are valid and properly formatted. See documentation for example calls",
"data": null
},
"id": 1
}
platform.getStake
Get the amount of nAVAX staked by a set of addresses. The amount returned does not include staking rewards.
Method: POST
https://avax.nownodes.io/ext/bc/P
Example body (raw)
{
"jsonrpc": "2.0",
"method": "platform.getStake",
"params": {
"addresses": [
"P-avax1pmgmagjcljjzuz2ve339dx82khm7q8getlegte"
],
"validatorsOnly": true
},
"id": 1
}
Example response: 200
{
"jsonrpc": "2.0",
"result": {
"staked": "0",
"stakeds": {},
"stakedOutputs": [],
"encoding": "hex"
},
"id": 1
}
platform.getStakingAssetID
Retrieve an assetID for a Subnet’s staking asset.
Method: POST
https://avax.nownodes.io/ext/bc/P
Example body (raw)
{
"jsonrpc": "2.0",
"method": "platform.getStakingAssetID",
"params": {
"subnetID": "11111111111111111111111111111111LpoYY"
},
"id": 1
}
Example response: 200
{
"jsonrpc": "2.0",
"result": {
"assetID": "FvwEAhmxKfeiG8SnEvq42hc6whRyY3EFYAvebMqDNDGCgxN5Z"
},
"id": 1
}
platform.getSubnets
Get info about the Subnets.
Method: POST
https://avax.nownodes.io/ext/bc/P
Example body (raw)
{
"jsonrpc": "2.0",
"method": "platform.getSubnets",
"params": {"ids":["hW8Ma7dLMA7o4xmJf3AXBbo17bXzE7xnThUd3ypM4VAWo1sNJ"]},
"id": 1
}
Example response: 200
{
"jsonrpc": "2.0",
"result": {
"subnets": null
},
"id": 1
}
platform.getTimestamp
Get the current P-Chain timestamp.
Method: POST
https://avax.nownodes.io/ext/bc/P
Example body (raw)
{
"jsonrpc": "2.0",
"method": "platform.getTimestamp",
"params": {},
"id": 1
}
Example response: 200
{
"jsonrpc": "2.0",
"result": {
"timestamp": "2024-04-06T16:20:05Z"
},
"id": 1
}
platform.getTotalStake
Get the total amount of tokens staked on the requested Subnet.
Method: POST
https://avax.nownodes.io/ext/bc/P
Example body (raw)
{
"jsonrpc": "2.0",
"method": "platform.getTotalStake",
"params": {
"subnetID": "11111111111111111111111111111111LpoYY"
},
"id": 1
}
Example response: 200
{
"jsonrpc": "2.0",
"result": {
"stake": "247144907734746620",
"weight": "247144907734746620"
},
"id": 1
}
platform.getTx
Gets a transaction by its ID. Optional encoding
parameter to specify the format for the returned transaction. Can be either hex
or json
. Defaults to hex
.
Method: POST
https://avax.nownodes.io/ext/bc/P
Example body (raw)
{
"jsonrpc": "2.0",
"method": "platform.getTx",
"params": {
"txID":"28KVjSw5h3XKGuNpJXWY74EdnGq4TUWvCgEtJPymgQTvudiugb",
"encoding": "json"
},
"id": 1
}
Example response: 200
{
"jsonrpc": "2.0",
"result": {
"tx": {
"unsignedTx": {
"networkID": 1,
"blockchainID": "11111111111111111111111111111111LpoYY",
"outputs": [],
"inputs": [
{
"txID": "NXNJHKeaJyjjWVSq341t6LGQP5UNz796o1crpHPByv1TKp9ZP",
"outputIndex": 0,
"assetID": "FvwEAhmxKfeiG8SnEvq42hc6whRyY3EFYAvebMqDNDGCgxN5Z",
"fxID": "spdxUxVJQbX85MGxMHbKw1sHxMnSqJ3QBzDyDYEP3h6TLuxqQ",
"input": {
"amount": 20824279595,
"signatureIndices": [
0
]
}
},
{
"txID": "2ahK5SzD8iqi5KBqpKfxrnWtrEoVwQCqJsMoB9kvChCaHgAQC9",
"outputIndex": 1,
"assetID": "FvwEAhmxKfeiG8SnEvq42hc6whRyY3EFYAvebMqDNDGCgxN5Z",
"fxID": "spdxUxVJQbX85MGxMHbKw1sHxMnSqJ3QBzDyDYEP3h6TLuxqQ",
"input": {
"amount": 28119890783,
"signatureIndices": [
0
]
}
}
],
"memo": "0x",
"validator": {
"nodeID": "NodeID-VT3YhgFaWEzy4Ap937qMeNEDscCammzG",
"start": 1682945406,
"end": 1684155006,
"weight": 48944170378
},
"stake": [
{
"assetID": "FvwEAhmxKfeiG8SnEvq42hc6whRyY3EFYAvebMqDNDGCgxN5Z",
"fxID": "spdxUxVJQbX85MGxMHbKw1sHxMnSqJ3QBzDyDYEP3h6TLuxqQ",
"output": {
"addresses": [
"P-avax1tnuesf6cqwnjw7fxjyk7lhch0vhf0v95wj5jvy"
],
"amount": 48944170378,
"locktime": 0,
"threshold": 1
}
}
],
"rewardsOwner": {
"addresses": [
"P-avax19zfygxaf59stehzedhxjesads0p5jdvfeedal0"
],
"locktime": 0,
"threshold": 1
}
},
"credentials": [
{
"signatures": [
"0x6954e90b98437646fde0c1d54c12190fc23ae5e319c4d95dda56b53b4a23e43825251289cdc3728f1f1e0d48eac20e5c8f097baa9b49ea8a3cb6a41bb272d16601"
]
},
{
"signatures": [
"0x6954e90b98437646fde0c1d54c12190fc23ae5e319c4d95dda56b53b4a23e43825251289cdc3728f1f1e0d48eac20e5c8f097baa9b49ea8a3cb6a41bb272d16601"
]
}
],
"id": "28KVjSw5h3XKGuNpJXWY74EdnGq4TUWvCgEtJPymgQTvudiugb"
},
"encoding": "json"
},
"id": 1
}
platform.getTxStatus
Gets a transaction’s status by its ID. If the transaction was dropped, response will include a reason
field with more information why the transaction was dropped.
Method: POST
https://avax.nownodes.io/ext/bc/P
Example body (raw)
{
"jsonrpc": "2.0",
"method": "platform.getTxStatus",
"params": {
"txID":"TAG9Ns1sa723mZy1GSoGqWipK6Mvpaj7CAswVJGM6MkVJDF9Q"
},
"id": 1
}
Example response: 200
{
"jsonrpc": "2.0",
"result": {
"status": "Unknown"
},
"id": 1
}
platform.getUTXOs
Gets the UTXOs that reference a given set of addresses.
Method: POST
https://avax.nownodes.io/ext/bc/P
Example body (raw)
{
"jsonrpc":"2.0",
"id" :1,
"method" :"platform.getUTXOs",
"params" :{
"addresses":["P-avax18jma8ppw3nhx5r4ap8clazz0dps7rv5ukulre5", "P-avax1d09qn852zcy03sfc9hay2llmn9hsgnw4tp3dv6"],
"limit":5,
"encoding": "hex"
}
}
Example response: 200
{
"jsonrpc": "2.0",
"result": {
"numFetched": "0",
"utxos": [],
"endIndex": {
"address": "P-avax1d09qn852zcy03sfc9hay2llmn9hsgnw4tp3dv6",
"utxo": "11111111111111111111111111111111LpoYY"
},
"encoding": "hex"
},
"id": 1
}
platform.getValidatorsAt
Get the validators and their weights of a Subnet or the Primary Network at a given P-Chain height.
Method: POST
https://avax.nownodes.io/ext/bc/P
Example body (raw)
{
"jsonrpc": "2.0",
"method": "platform.getValidatorsAt",
"params": {
"height":1
},
"id": 1
}
Example response: 200
{
"jsonrpc": "2.0",
"result": {
"NodeID-12dyQ7nhRzsNSiFzEoW1RWK819Zkssf5g": {
"publicKey": null,
"weight": "2372886284241"
},
"NodeID-12qs7z78gQu9yo5vR4acLEbWwKDfmQYQq": {
"publicKey": null,
"weight": "2000000000000"
},
"NodeID-13XrVPjS5dVxBKaweeG94SjY1Q6yeM4EJ": {
"publicKey": null,
"weight": "2908268779599"
},
"NodeID-15AuPME9h4AS8CAEDsokNE5KMjLovnphr": {
"publicKey": null,
"weight": "2100000000000"
},
"NodeID-168kTGVaSDD9CsPQzbqMpQg6zUvKatqr6": {
"publicKey": null,
"weight": "62563537354271"
},
"NodeID-1A1GTyMcDcassSiTBZFVuoXs7AS5HcHu": {
"publicKey": null,
"weight": "2000000000000"
},
"NodeID-1JZW5ZTiUmUioMEXV5fYLVpVZwBAJwc8": {
"publicKey": null,
"weight": "2000000000000"
},
"NodeID-1Z67stQzn6v2hi1wD1Zd7nooPoqJE4es": {
"publicKey": null,
"weight": "386952348998053"
},
"NodeID-1aA7BtLfTX4SRXaWR8HttP4z2UapE1R9": {
"publicKey": null,
"weight": "2000000000000"
},
"NodeID-22wjev1roSt8jieZ4SW8rJLG3YiWyvbV3": {
"publicKey": null,
"weight": "10207000989907"
},
"NodeID-23Xaok4Hr7SgTcCjjMnVsYJaN5cSZLR3Z": {
"publicKey": null,
"weight": "2000000000000"
},
"NodeID-24gzuDUUhGEsAGbxhMZNJJ2x5G1wDVHEo": {
"publicKey": null,
"weight": "2000000000000"
},
"NodeID-25GWqcvqc8m2ZT5ULNWfan5SEJNFBZMcw": {
"publicKey": null,
"weight": "5664820906860"
},
"NodeID-25RzatyYmpsm3QbYj9QdSWqdFQLKxdMR3": {
"publicKey": null,
"weight": "2525000000000"
},
...
platform.issueTx
Issue a transaction to the Platform Chain.
Method: POST
https://avax.nownodes.io/ext/bc/P
Example body (raw)
{
"jsonrpc": "2.0",
"method": "platform.issueTx",
"params": {
"tx":"0x00000009de31b4d8b22991d51aa6aa1fc733f23a851a8c9400000000000186a0000000005f041280000000005f9ca900000030390000000000000001fceda8f90fcb5d30614b99d79fc4baa29307762668f16eb0259a57c2d3b78c875c86ec2045792d4df2d926c40f829196e0bb97ee697af71f5b0a966dabff749634c8b729855e937715b0e44303fd1014daedc752006011b730",
"encoding": "hex"
},
"id": 1
}
Example response: 200
{
"jsonrpc": "2.0",
"error": {
"code": -32000,
"message": "couldn't parse tx: couldn't parse tx: couldn't unmarshal struct: couldn't unmarshal interface: unknown type ID 646705",
"data": null
},
"id": 1
}
platform.listAddresses
List addresses controlled by the given user.
Method: POST
https://avax.nownodes.io/ext/bc/P
Example body (raw)
{
"jsonrpc": "2.0",
"method": "platform.listAddresses",
"params": {
"username":"myUsername",
"password":"myPassword"
},
"id": 1
}
Example response: 200
{
"jsonrpc": "2.0",
"error": {
"code": -32000,
"message": "problem retrieving user \"myUsername\": incorrect password for user \"myUsername\"",
"data": null
},
"id": 1
}
platform.sampleValidators
Sample validators from the specified Subnet.
Method: POST
https://avax.nownodes.io/ext/bc/P
Example body (raw)
{
"jsonrpc":"2.0",
"id" :1,
"method" :"platform.sampleValidators",
"params" :{
"size":2
}
}
Example response: 200
{
"jsonrpc": "2.0",
"result": {
"validators": [
"NodeID-5AzNzec73Pth9Acw6jVd2BYZWyY5KjV6y",
"NodeID-Le5rVEBBPdgYEcEJpvYeKo36hRs75WE5S"
]
},
"id": 1
}
platform.validatedBy
Get the Subnet that validates a given blockchain.
Method: POST
https://avax.nownodes.io/ext/bc/P
Example body (raw)
{
"jsonrpc": "2.0",
"method": "platform.validatedBy",
"params": {
"blockchainID": "KDYHHKjM4yTJTT8H8qPs5KXzE6gQH5TZrmP1qVr1P6qECj3XN"
},
"id": 1
}
Example response: 200
{
"jsonrpc": "2.0",
"error": {
"code": -32000,
"message": "problem retrieving blockchain \"KDYHHKjM4yTJTT8H8qPs5KXzE6gQH5TZrmP1qVr1P6qECj3XN\": not found",
"data": null
},
"id": 1
}
platform.validates
Get the IDs of the blockchains a Subnet validates.
Method: POST
https://avax.nownodes.io/ext/bc/P
Example body (raw)
{
"jsonrpc": "2.0",
"method": "platform.validates",
"params": {
"subnetID":"2bRCr6B4MiEfSjidDwxDpdCyviwnfUVqB2HGwhm947w9YYqb7r"
},
"id": 1
}
Example response: 200
{
"jsonrpc": "2.0",
"error": {
"code": -32000,
"message": "problem retrieving subnet \"2bRCr6B4MiEfSjidDwxDpdCyviwnfUVqB2HGwhm947w9YYqb7r\": not found",
"data": null
},
"id": 1
}
Last updated