{ "info": { "_postman_id": "3d716136-a9a1-45a5-86ca-2102a10a86a7", "name": "Avalanche", "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json", "_exporter_id": "23086587" }, "item": [ { "name": "Admin", "item": [ { "name": "alias", "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"jsonrpc\":\"2.0\",\n \"id\" :1,\n \"method\" :\"admin.alias\",\n \"params\": {\n \"alias\":\"myAlias\",\n \"endpoint\":\"bc/X\"\n }\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{baseURL}}/ext/admin", "host": [ "{{baseURL}}" ], "path": [ "ext", "admin" ] }, "description": "Assign an API an alias, a different endpoint for the API. The original endpoint will still work. This change only affects this node; other nodes will not know about this alias. [More info](https://docs.avax.network/apis/avalanchego/apis/admin#adminalias)" }, "response": [] }, { "name": "aliasChain", "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"jsonrpc\":\"2.0\",\n \"id\" :1,\n \"method\" :\"admin.aliasChain\",\n \"params\": {\n \"chain\":\"{{avalanceBlockchainId}}\",\n \"alias\":\"myBlockchainAlias\"\n }\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{baseURL}}/ext/admin", "host": [ "{{baseURL}}" ], "path": [ "ext", "admin" ] }, "description": "Give a blockchain an alias, a different name that can be used any place the blockchain’s ID is used. [More info](https://docs.avax.network/apis/avalanchego/apis/admin#adminaliaschain)" }, "response": [] }, { "name": "getChainAliases", "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"jsonrpc\":\"2.0\",\n \"id\" :1,\n \"method\" :\"admin.getChainAliases\",\n \"params\" :{\n \"chain\":\"2eNy1mUFdmaxXNj1eQHUe7Np4gju9sJsEtWQ4MX3ToiNKuADed\" \n }\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{baseURL}}/ext/admin", "host": [ "{{baseURL}}" ], "path": [ "ext", "admin" ] }, "description": "Dump the mutex statistics of the node to the specified file. [More info](https://docs.avax.network/apis/avalanchego/apis/admin#admingetchainaliases)" }, "response": [] }, { "name": "getLoggerLevel", "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"jsonrpc\":\"2.0\",\n \"id\" :1,\n \"method\" :\"admin.getLoggerLevel\",\n \"params\" :{\n \"loggerName\":\"C\" \n }\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{baseURL}}/ext/admin", "host": [ "{{baseURL}}" ], "path": [ "ext", "admin" ] }, "description": "Returns log and display levels of loggers. [More info](https://docs.avax.network/apis/avalanchego/apis/admin#admingetloggerlevel)" }, "response": [] }, { "name": "loadVMs", "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"jsonrpc\":\"2.0\",\n \"id\" :1,\n \"method\" :\"admin.loadVMs\",\n \"params\" :{}\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{baseURL}}/ext/admin", "host": [ "{{baseURL}}" ], "path": [ "ext", "admin" ] }, "description": "Dynamically loads any virtual machines installed on the node as plugins. [More info](https://docs.avax.network/build/avalanchego-apis/admin#adminloadvms)" }, "response": [] }, { "name": "lockProfile", "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"jsonrpc\":\"2.0\",\n \"id\" :1,\n \"method\" :\"admin.lockProfile\",\n \"params\" :{}\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{baseURL}}/ext/admin", "host": [ "{{baseURL}}" ], "path": [ "ext", "admin" ] }, "description": "Dump the mutex statistics of the node to the specified file. [More info](https://docs.avax.network/apis/avalanchego/apis/admin#adminlockprofile)" }, "response": [] }, { "name": "memoryProfile", "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"jsonrpc\":\"2.0\",\n \"id\" :1,\n \"method\" :\"admin.memoryProfile\",\n \"params\" :{}\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{baseURL}}/ext/admin", "host": [ "{{baseURL}}" ], "path": [ "ext", "admin" ] }, "description": "Dump the mutex statistics of the node to the specified file. [More info](https://docs.avax.network/apis/avalanchego/apis/admin#adminmemoryprofile)" }, "response": [] }, { "name": "setLoggerLevel", "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"jsonrpc\":\"2.0\",\n \"id\" :1,\n \"method\" :\"admin.setLoggerLevel\",\n \"params\" :{\n \"loggerName\": \"C\",\n \"logLevel\": \"DEBUG\",\n \"displayLevel\": \"INFO\" \n }\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{baseURL}}/ext/admin", "host": [ "{{baseURL}}" ], "path": [ "ext", "admin" ] }, "description": "Sets log and display levels of loggers. [More info](https://docs.avax.network/apis/avalanchego/apis/admin#adminsetloggerlevel)" }, "response": [] }, { "name": "startCPUProfiler", "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"jsonrpc\":\"2.0\",\n \"id\" :1,\n \"method\" :\"admin.startCPUProfiler\",\n \"params\" :{\n }\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{baseURL}}/ext/admin", "host": [ "{{baseURL}}" ], "path": [ "ext", "admin" ] }, "description": "Start profiling the CPU utilization of the node. Will write the profile to the specified file on stop. [More info](https://docs.avax.network/apis/avalanchego/apis/admin#adminstartcpuprofiler)" }, "response": [] }, { "name": "stopCPUProfiler", "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"jsonrpc\":\"2.0\",\n \"id\" :1,\n \"method\" :\"admin.stopCPUProfiler\",\n \"params\" :{\n }\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{baseURL}}/ext/admin", "host": [ "{{baseURL}}" ], "path": [ "ext", "admin" ] }, "description": "Stop the CPU profile that was previously started. [More info](https://docs.avax.network/apis/avalanchego/apis/admin#adminstopcpuprofiler)" }, "response": [] } ], "description": "This API can be used for measuring node health and debugging. [More info](https://docs.avax.network/v1.0/en/api/admin)" }, { "name": "Auth", "item": [ { "name": "newToken", "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"jsonrpc\":\"2.0\",\n \"id\" :1,\n \"method\" :\"auth.newToken\",\n \"params\": {\n \"password\":\"{{authPassword}}\",\n \"endpoints\":[\"/ext/bc/X\", \"/ext/info\"]\n }\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{baseURL}}/ext/auth", "host": [ "{{baseURL}}" ], "path": [ "ext", "auth" ] }, "description": "Creates a new authorization token that grants access to one or more API endpoints. \n[More info](https://docs.avax.network/apis/avalanchego/apis/auth#authnewtoken)" }, "response": [] }, { "name": "revokeToken", "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"jsonrpc\":\"2.0\",\n \"id\" :1,\n \"method\" :\"auth.revokeToken\",\n \"params\": {\n \"password\":\"password goes here\",\n \"token\":\"token goes here\"\n }\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{baseURL}}/ext/auth", "host": [ "{{baseURL}}" ], "path": [ "ext", "auth" ] }, "description": "Revoke a previously generated token. The given token will no longer grant access to any endpoint. \nIf the token is invalid, does nothing. [More info](https://docs.avax.network/apis/avalanchego/apis/auth#authrevoketoken)" }, "response": [] }, { "name": "changePassword", "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"jsonrpc\":\"2.0\",\n \"id\" :1,\n \"method\" :\"auth.changePassword\",\n \"params\": {\n \"oldPassword\":\"old password goes here\",\n \"newPassword\":\"new password goes here\"\n }\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{baseURL}}/ext/auth", "host": [ "{{baseURL}}" ], "path": [ "ext", "auth" ] }, "description": "Change this node's authorization token password. Any authorization tokens created under an old password will become invalid. [More info](https://docs.avax.network/apis/avalanchego/apis/auth#authchangepassword)" }, "response": [] } ], "description": "This API can be used for measuring node health and debugging. [More info](https://docs.avax.network/v1.0/en/api/admin)" }, { "name": "AVM", "item": [ { "name": "buildGenesis", "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"jsonrpc\": \"2.0\",\n \"id\" : 1,\n \"method\" : \"avm.buildGenesis\",\n \"params\" : {\n \"genesisData\": {\n \"asset1\": {\n \"name\": \"asset1\",\n \"symbol\":\"MFCA\",\n \"memo\": \"2Zc54v4ek37TEwu4LiV3j41PUMRd6acDDU3ZCVSxE7X\",\n \"denomination\": 1, \n \"initialState\": {\n \"fixedCap\" : [\n {\n \"amount\":100000,\n \"address\": \"custom18jma8ppw3nhx5r4ap8clazz0dps7rv5u9xde7p\"\n }\n ]\n }\n },\n \"asset2\": {\n \"name\": \"asset2\",\n \"symbol\":\"MVCA\",\n \"memo\": \"2Zc54v4ek37TEwu4LiV3j41PUMRd6acDDU3ZCVSxE7X\",\n \"denomination\": 2, \n \"initialState\": {\n \"variableCap\" : [\n {\n \"amount\":100000,\n \"address\": \"custom18jma8ppw3nhx5r4ap8clazz0dps7rv5u9xde7p\"\n }\n ]\n }\n }\n },\n \"networkId\": 1337,\n \"encoding\":\"cb58\"\n }\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{baseURL}}/ext/vm/avm", "host": [ "{{baseURL}}" ], "path": [ "ext", "vm", "avm" ] }, "description": "Given a JSON representation of this Virtual Machine’s genesis state, create the byte representation of that state. [More info](https://docs.avax.network/apis/avalanchego/apis/x-chain#avmbuildgenesis)" }, "response": [] }, { "name": "createAddress - DEPRECATED", "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "//Deprecated as of v1.9.12.\n\n{\n \"jsonrpc\": \"2.0\",\n \"method\": \"avm.createAddress\",\n \"params\": {\n \"username\":\"{{avalancheUsername}}\",\n \"password\":\"{{avalanchePassword}}\" \n },\n \"id\": 1\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{baseURL}}/ext/bc/X", "host": [ "{{baseURL}}" ], "path": [ "ext", "bc", "X" ] }, "description": "Create a new address controlled by the given user. [More info](https://docs.avax.network/apis/avalanchego/apis/x-chain#avmcreateaddress)" }, "response": [] }, { "name": "createFixedCapAsset - DEPRECATED", "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "//Deprecated as of v1.9.12.\n\n{\n \"jsonrpc\":\"2.0\",\n \"id\" : 1,\n \"method\" :\"avm.createFixedCapAsset\",\n \"params\" :{\n \"name\": \"Test Token\",\n \"symbol\":\"TEST\",\n \"denomination\": 0, \n \"initialHolders\": [\n {\n \"address\":\"{{xchainAddress}}\",\n \"amount\":400\n }\n ],\n \"from\": [\"{{xchainAddress}}\"],\n \"changeAddr\": \"{{xchainAddress}}\",\n \"username\":\"{{avalancheUsername}}\",\n \"password\":\"{{avalanchePassword}}\" \n }\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{baseURL}}/ext/bc/X", "host": [ "{{baseURL}}" ], "path": [ "ext", "bc", "X" ] }, "description": "Create a new fixed-cap, fungible asset. A quantity of it is created at initialization and then no more is ever created. The asset can be sent with `avm.send`. [More info](https://docs.avax.network/apis/avalanchego/apis/x-chain#avmcreatefixedcapasset)" }, "response": [] }, { "name": "createNFTAsset - DEPRECATED", "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "//Deprecated as of v1.9.12.\n\n{\n \"jsonrpc\":\"2.0\",\n \"id\" : 1,\n \"method\" :\"avm.createNFTAsset\",\n \"params\" :{\n \"name\":\"Coincert\",\n \"symbol\":\"TIXX\",\n \"minterSets\":[\n {\n \"minters\":[\n \"{{xchainAddress}}\"\n ],\n \"threshold\": 1\n },\n {\n \"minters\":[\n \"{{xchainAddress}}\"\n ],\n \"threshold\": 1\n }\n ],\n \"from\": [\"{{xchainAddress}}\"],\n \"changeAddr\": \"{{xchainAddress}}\",\n \"username\":\"{{avalancheUsername}}\",\n \"password\":\"{{avalanchePassword}}\" \n }\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{baseURL}}/ext/bc/X", "host": [ "{{baseURL}}" ], "path": [ "ext", "bc", "X" ] }, "description": "Create a new non-fungible asset. No units of the asset exist at initialization. Minters can mint units of this asset using `mintTx` and `signMintTx`. The asset can be sent with `avm.sendNFT`. [More info](https://docs.avax.network/apis/avalanchego/apis/x-chain#avmcreatenftasset)" }, "response": [] }, { "name": "createVariableCapAsset - DEPRECATED", "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "//Deprecated as of v1.9.12.\n\n{\n \"jsonrpc\":\"2.0\",\n \"id\" : 1,\n \"method\" :\"avm.createVariableCapAsset\",\n \"params\" :{\n \"name\":\"myVariableCapAsset\",\n \"symbol\":\"MFCA\",\n \"denomination\": 0, \n \"minterSets\":[\n {\n \"minters\":[\n \"{{xchainAddress}}\"\n ],\n \"threshold\": 1\n }\n ],\n \"from\": [\"{{xchainAddress}}\"],\n \"changeAddr\": \"{{xchainAddress}}\",\n \"username\":\"{{avalancheUsername}}\",\n \"password\":\"{{avalanchePassword}}\" \n }\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{baseURL}}/ext/bc/X", "host": [ "{{baseURL}}" ], "path": [ "ext", "bc", "X" ] }, "description": "Create a new variable-cap, fungible asset. No units of the asset exist at initialization. Minters can mint units of this asset using `createMintTx`, `signMintTx` and `issueTx`. The asset can be sent with `avm.send`. [More info](https://docs.avax.network/apis/avalanchego/apis/x-chain#avmcreatevariablecapasset)" }, "response": [] }, { "name": "export - DEPRECATED", "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "//Deprecated as of v1.9.12.\n\n{\n \"jsonrpc\":\"2.0\",\n \"id\" :1,\n \"method\" :\"avm.export\",\n \"params\" :{\n \"from\": [\"{{xchainAddress}}\"],\n \"to\":\"{{cchainbech32address}}\",\n \"amount\": 4000001000000 ,\n \"assetID\": \"AVAX\",\n \"changeAddr\": \"{{xchainAddress}}\",\n \"username\":\"{{avalancheUsername}}\",\n \"password\":\"{{avalanchePassword}}\" \n }\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{baseURL}}/ext/bc/X", "host": [ "{{baseURL}}" ], "path": [ "ext", "bc", "X" ] }, "description": "Export a non-AVAX asset from the X-Chain to the C-Chain. After calling this method, you must call the C-Chain’s `import` method to complete the transfer. [More info](https://docs.avax.network/apis/avalanchego/apis/x-chain#avmexport)" }, "response": [] }, { "name": "exportKey - DEPRECATED", "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "//Deprecated as of v1.9.12.\n\n{\n \"jsonrpc\":\"2.0\",\n \"id\" :1,\n \"method\" :\"avm.exportKey\",\n \"params\" :{\n \"username\":\"{{avalancheUsername}}\",\n \"password\":\"{{avalanchePassword}}\",\n \"address\": \"{{xchainAddress}}\"\n }\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{baseURL}}/ext/bc/X", "host": [ "{{baseURL}}" ], "path": [ "ext", "bc", "X" ] }, "description": "Get the private key that controls a given address. \nThe returned private key can be added to a user with `avm.importKey`. [More info](https://docs.avax.network/apis/avalanchego/apis/x-chain#avmexportkey)" }, "response": [] }, { "name": "getAddressTxs - DEPRECATED", "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "//Deprecated as of v1.9.12.\n\n{\n \"jsonrpc\":\"2.0\",\n \"id\" : 1,\n \"method\" :\"avm.getAddressTxs\",\n \"params\" :{\n \"address\":\"{{xchainAddress}}\",\n \"assetID\": \"AVAX\",\n \"pageSize\": 20,\n \"cursor\": 0\n }\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{baseURL}}/ext/bc/X", "host": [ "{{baseURL}}" ], "path": [ "ext", "bc", "X" ] }, "description": "Returns all transactions that change the balance of the given address. A transaction is said to change an address's balance if either is true:\n\n- A UTXO that the transaction consumes was at least partially owned by the address.\n- A UTXO that the transaction produces is at least partially owned by the address.\n \n\nNote: Indexing (`index-transactions`) must be enabled in the X-chain config. [More info](https://docs.avax.network/apis/avalanchego/apis/x-chain#avmgetaddresstxs)" }, "response": [] }, { "name": "getAllBalances - DEPRECATED", "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "//Deprecated as of v1.9.12.\n\n{\n \"jsonrpc\":\"2.0\",\n \"id\" : 1,\n \"method\" :\"avm.getAllBalances\",\n \"params\" :{\n \"address\":\"{{xchainAddress}}\"\n }\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{baseURL}}/ext/bc/X", "host": [ "{{baseURL}}" ], "path": [ "ext", "bc", "X" ] }, "description": "Get the balances of all assets controlled by a given address. [More info](https://docs.avax.network/apis/avalanchego/apis/x-chain#avmgetallbalances)" }, "response": [] }, { "name": "getAssetDescription", "event": [ { "listen": "test", "script": { "exec": [ "var table = `", " ", "", "", " ", " ", " ", " ", " ", " ", " ", " ", " ", "", " ", " ", " ", " ", " ", "", " ", " ", " ", " ", "", " ", " ", " ", " ", "", "
Asset description
Asset ID: {{response.result.assetID}}
Name: {{response.result.name}}
Symbol: {{response.result.symbol}}
Denomination: {{response.result.denomination}}
", " `;", "", "", "pm.visualizer.set(table, {", " response: pm.response.json(),", "});" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"jsonrpc\":\"2.0\",\n \"id\" :1,\n \"method\" :\"avm.getAssetDescription\",\n \"params\" :{\n \"assetID\" :\"{{avaxAssetId}}\"\n }\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{baseURL}}/ext/bc/X", "host": [ "{{baseURL}}" ], "path": [ "ext", "bc", "X" ] }, "description": "Get information about an asset. [More info](https://docs.avax.network/apis/avalanchego/apis/x-chain#avmgetassetdescription)" }, "response": [] }, { "name": "getBalance - DEPRECATED", "event": [ { "listen": "test", "script": { "exec": [ "" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "//Deprecated as of v1.9.12.\n\n{\n \"jsonrpc\":\"2.0\",\n \"id\" : 1,\n \"method\" :\"avm.getBalance\",\n \"params\" :{\n \"address\":\"{{xchainAddress}}\",\n \"assetID\": \"{{avaxAssetId}}\"\n }\n} ", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{baseURL}}/ext/bc/X", "host": [ "{{baseURL}}" ], "path": [ "ext", "bc", "X" ] }, "description": "Get the balance of an asset controlled by a given address. [More info](https://docs.avax.network/apis/avalanchego/apis/x-chain#avmgetbalance)" }, "response": [] }, { "name": "getBlock", "event": [ { "listen": "test", "script": { "exec": [ "var table = `", " ", "", " User Friendly View: ", "
", " ", "
", "", " ", "", "", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", "
Block info
Block Hash {{response.result.block.id}}
Parent ID {{response.result.block.parentID}}
Height {{response.result.block.height}}
Time {{response.result.block.time}}
Merkle Root {{response.result.block.merkleRoot}}
", "", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", "", " ", " {{#if response.result.block.txs.0.unsignedTx.outputs}}", " ", " ", " ", " {{/if}}", " ", "", " {{#each response.result.block.txs}}", " {{#each unsignedTx.outputs}}", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " {{/each}}", " {{/each}}", "", " ", " {{#if response.result.block.txs.0.unsignedTx.inputs}}", " ", " ", " ", " {{/if}}", " ", "", " {{#each response.result.block.txs}}", " {{#each unsignedTx.inputs}}", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " {{/each}}", " {{/each}}", " ", " ", " ", " ", " ", " ", " ", "", " ", " {{#if response.result.block.txs.0.unsignedTx.destinationChain}}", " ", " ", " ", " ", " {{/if}}", " ", "", " ", " {{#if response.result.block.txs.0.unsignedTx.exportedOutputs}}", " ", " ", " ", " {{/if}}", " ", " {{#each response.result.block.txs}}", " {{#each unsignedTx.exportedOutputs}}", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " {{/each}}", " {{/each}}", "", " ", " {{#if response.result.block.txs.0.unsignedTx.sourceChain}}", " ", " ", " ", " ", " {{/if}}", " ", "", " ", " {{#if response.result.block.txs.0.unsignedTx.importedInputs}}", " ", " ", " ", " {{/if}}", " ", "", " {{#each response.result.block.txs}}", " {{#each unsignedTx.importedInputs}}", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " {{/each}}", " {{/each}}", "", " ", " ", " ", " ", "", " {{#each response.result.block.txs}} ", " {{#each credentials}}", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " {{/each}}", " {{/each}}", "
Block's transactions
Transaction ID: {{response.result.block.id}}
Unsigned Transaction
Network ID: {{response.result.block.txs.0.unsignedTx.networkID}}
Blockchain ID: {{response.result.block.txs.0.unsignedTx.blockchainID}}
Outputs:
Asset ID: {{assetID}}
Fx ID: {{fxID}}
Amount (in GWEI):
{{output.amount}}
Locktime:
Output: {{output.locktime}}
Threshold:
{{output.threshold}}
Addresses:
{{output.addresses}}
Inputs:
Transaction ID: {{txID}}
Amount (in GWEI):
Input: {{input.amount}}
Locktime:
{{input.signatureIndices}}
Memo: {{response.result.block.txs.0.unsignedTx.memo}}
Destination chain: {{response.result.block.txs.0.unsignedTx.destinationChain}}
Exported outputs:
Asset ID: {{assetID}}
Fx ID: {{fxID}}
Amount (in GWEI):
{{output.amount}}
Locktime:
Output: {{output.locktime}}
Threshold:
{{output.threshold}}
Addresses:
{{output.addresses}}
Source chain: {{response.result.block.txs.0.unsignedTx.sourceChain}}
Imported inputs:
Transaction ID: {{txID}}
Output index: {{outputIndex}}
Asset ID: {{assetID}}
Fx ID {{fxID}}
Amount (in GWEI):
Input: {{input.amount}}
Locktime:
{{input.signatureIndices}}
Creditentials
Fx ID: {{fxID}}
Creditential: Signatures: {{credential.signatures}}
", " `;", "", "pm.visualizer.set(table, {", " response: pm.response.json(),", "});" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"jsonrpc\":\"2.0\",\n \"id\" :1,\n \"method\" :\"avm.getBlock\",\n \"params\" :{\n \"blockID\": \"{{xchainBlockID}}\",\n \"encoding\": \"json\"\n }\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{baseURL}}/ext/bc/X", "host": [ "{{baseURL}}" ], "path": [ "ext", "bc", "X" ] }, "description": "Returns the block with the given id. [More info](https://docs.avax.network/apis/avalanchego/apis/x-chain#avmgetblock)" }, "response": [] }, { "name": "getBlockByHeight", "event": [ { "listen": "test", "script": { "exec": [ "var table = `", " ", "", " User Friendly View: ", "
", " ", "
", "", " ", "", "", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", "
Block info
Block Hash {{response.result.block.id}}
Parent ID {{response.result.block.parentID}}
Height {{response.result.block.height}}
Time {{response.result.block.time}}
Merkle Root {{response.result.block.merkleRoot}}
", "", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", "", " ", " {{#if response.result.block.txs.0.unsignedTx.outputs}}", " ", " ", " ", " {{/if}}", " ", "", " {{#each response.result.block.txs}}", " {{#each unsignedTx.outputs}}", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " {{/each}}", " {{/each}}", "", " ", " {{#if response.result.block.txs.0.unsignedTx.inputs}}", " ", " ", " ", " {{/if}}", " ", "", " {{#each response.result.block.txs}}", " {{#each unsignedTx.inputs}}", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " {{/each}}", " {{/each}}", " ", " ", " ", " ", " ", " ", " ", "", " ", " {{#if response.result.block.txs.0.unsignedTx.destinationChain}}", " ", " ", " ", " ", " {{/if}}", " ", "", " ", " {{#if response.result.block.txs.0.unsignedTx.exportedOutputs}}", " ", " ", " ", " {{/if}}", " ", " {{#each response.result.block.txs}}", " {{#each unsignedTx.exportedOutputs}}", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " {{/each}}", " {{/each}}", "", " ", " {{#if response.result.block.txs.0.unsignedTx.sourceChain}}", " ", " ", " ", " ", " {{/if}}", " ", "", " ", " {{#if response.result.block.txs.0.unsignedTx.importedInputs}}", " ", " ", " ", " {{/if}}", " ", "", " {{#each response.result.block.txs}}", " {{#each unsignedTx.importedInputs}}", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " {{/each}}", " {{/each}}", "", " ", " ", " ", " ", "", " {{#each response.result.block.txs}} ", " {{#each credentials}}", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " {{/each}}", " {{/each}}", "
Block's transactions
Transaction ID: {{response.result.block.id}}
Unsigned Transaction
Network ID: {{response.result.block.txs.0.unsignedTx.networkID}}
Blockchain ID: {{response.result.block.txs.0.unsignedTx.blockchainID}}
Outputs:
Asset ID: {{assetID}}
Fx ID: {{fxID}}
Amount (in GWEI):
{{output.amount}}
Locktime:
Output: {{output.locktime}}
Threshold:
{{output.threshold}}
Addresses:
{{output.addresses}}
Inputs:
Transaction ID: {{txID}}
Amount (in GWEI):
Input: {{input.amount}}
Locktime:
{{input.signatureIndices}}
Memo: {{response.result.block.txs.0.unsignedTx.memo}}
Destination chain: {{response.result.block.txs.0.unsignedTx.destinationChain}}
Exported outputs:
Asset ID: {{assetID}}
Fx ID: {{fxID}}
Amount (in GWEI):
{{output.amount}}
Locktime:
Output: {{output.locktime}}
Threshold:
{{output.threshold}}
Addresses:
{{output.addresses}}
Source chain: {{response.result.block.txs.0.unsignedTx.sourceChain}}
Imported inputs:
Transaction ID: {{txID}}
Output index: {{outputIndex}}
Asset ID: {{assetID}}
Fx ID {{fxID}}
Amount (in GWEI):
Input: {{input.amount}}
Locktime:
{{input.signatureIndices}}
Creditentials
Fx ID: {{fxID}}
Creditential: Signatures: {{credential.signatures}}
", " `;", "", "pm.visualizer.set(table, {", " response: pm.response.json(),", "});" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"jsonrpc\":\"2.0\",\n \"id\" :1,\n \"method\" :\"avm.getBlockByHeight\",\n \"params\" :{\n \"height\": {{xchainBlockHeight}},\n \"encoding\": \"json\"\n }\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{baseURL}}/ext/bc/X", "host": [ "{{baseURL}}" ], "path": [ "ext", "bc", "X" ] }, "description": "Returns block at the given height. [More info](https://docs.avax.network/apis/avalanchego/apis/x-chain#avmgetblockbyheight)" }, "response": [] }, { "name": "getHeight", "event": [ { "listen": "test", "script": { "exec": [ "" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"jsonrpc\":\"2.0\",\n \"id\" :1,\n \"method\" :\"avm.getHeight\",\n \"params\" :{}\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{baseURL}}/ext/bc/X", "host": [ "{{baseURL}}" ], "path": [ "ext", "bc", "X" ] }, "description": "Returns the height of the last accepted block. [More info](https://docs.avax.network/apis/avalanchego/apis/x-chain#avmgetheight)" }, "response": [] }, { "name": "getTx", "event": [ { "listen": "test", "script": { "exec": [ "var table = `", " ", "", " User Friendly View: ", "
", " ", "
", "", " ", "", " ", "", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", "", "", " ", " {{#if response.result.tx.unsignedTx.outputs}}", " ", " ", " ", " {{/if}}", " ", "", " {{#each response.result.tx.unsignedTx.outputs}}", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " {{/each}}", "", "", " ", " {{#if response.result.tx.unsignedTx.inputs}}", " ", " ", " ", " {{/if}}", " ", "", " {{#each response.result.tx.unsignedTx.inputs}} ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " {{/each}}", " ", "", " ", " ", " ", " ", " ", " ", "", "", " ", " {{#if response.result.tx.unsignedTx.destinationChain}}", " ", " ", " ", " ", " {{/if}}", " ", " ", "", " ", " {{#if response.result.tx.unsignedTx.exportedOutputs}}", " ", " ", " ", " {{/if}}", " ", " {{#each response.result.tx.unsignedTx.exportedOutputs}}", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " {{/each}}", "", " ", " {{#if response.result.tx.unsignedTx.sourceChain}}", " ", " ", " ", " ", " {{/if}}", " ", "", "", " ", " {{#if response.result.tx.unsignedTx.importedInputs}}", " ", " ", " ", " {{/if}}", " ", "", " {{#each response.result.tx.unsignedTx.importedInputs}}", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " {{/each}}", " ", "", " ", "", " ", " ", " ", " ", "", " {{#each response.result.tx.credentials}} ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " {{/each}}", "", "
Transaction info
Transaction ID: {{response.result.tx.id}}
Unsigned Transaction
Network ID: {{response.result.tx.unsignedTx.networkID}}
Blockchain ID: {{response.result.tx.unsignedTx.blockchainID}}
Outputs:
Asset ID: {{assetID}}
Fx ID: {{fxID}}
Amount (in GWEI):
{{output.amount}}
Locktime:
Output: {{output.locktime}}
Threshold:
{{output.threshold}}
Addresses:
{{output.addresses}}
Inputs:
Transaction ID: {{txID}}
Output index: {{outputIndex}}
Asset ID: {{assetID}}
Fx ID {{fxID}}
Amount (in GWEI):
Input: {{input.amount}}
Locktime:
{{input.signatureIndices}}
Memo: {{response.result.tx.unsignedTx.memo}}
Destination chain: {{response.result.tx.unsignedTx.destinationChain}}
Exported outputs:
Asset ID: {{assetID}}
Fx ID: {{fxID}}
Amount (in GWEI):
{{output.amount}}
Locktime:
Output: {{output.locktime}}
Threshold:
{{output.threshold}}
Addresses:
{{output.addresses}}
Source chain: {{response.result.tx.unsignedTx.sourceChain}}
Imported inputs:
Transaction ID: {{txID}}
Output index: {{outputIndex}}
Asset ID: {{assetID}}
Fx ID {{fxID}}
Amount (in GWEI):
Input: {{input.amount}}
Locktime:
{{input.signatureIndices}}
Creditentials
Fx ID: {{fxID}}
Creditential: Signatures: {{credential.signatures}}
", " `;", "", "", "pm.visualizer.set(table, {", " response: pm.response.json(),", "});", "" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"jsonrpc\":\"2.0\",\n \"id\" :1,\n \"method\" :\"avm.getTx\",\n \"params\" :{\n \"txID\":\"PeMHSFukDHRV1UAhHNDfCwz5jxwbVrJLE7W9Dz32YJ2wMZBTm\",\n \"encoding\": \"json\"\n }\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{baseURL}}/ext/bc/X", "host": [ "{{baseURL}}" ], "path": [ "ext", "bc", "X" ] }, "description": "Returns the specified transaction [More info](https://docs.avax.network/apis/avalanchego/apis/x-chain#avmgettx)" }, "response": [] }, { "name": "getTxStatus - DEPRECATED", "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "//Deprecated as of v1.10.0.\n\n{\n \"jsonrpc\": \"2.0\",\n \"id\": 1,\n \"method\": \"avm.getTxStatus\",\n \"params\": {\n \"txID\": \"{{txID}}\"\n }\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{baseURL}}/ext/bc/X", "host": [ "{{baseURL}}" ], "path": [ "ext", "bc", "X" ] }, "description": "Get the status of a transaction sent to the network. [More info](https://docs.avax.network/apis/avalanchego/apis/x-chain#avmgettxstatus)" }, "response": [] }, { "name": "getUTXOs", "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"jsonrpc\":\"2.0\",\n \"id\" :1,\n \"method\" :\"avm.getUTXOs\",\n \"params\" :{\n \"addresses\":[\"{{xchainAddress}}\"],\n \"limit\": 5,\n \"sourceChain\": \"X\",\n \"encoding\": \"hex\",\n \"startIndex\": { \n \"address\": \"{{xchainAddress}}\",\n \"utxo\": \"{{utxo}}\"\n }\n }\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{baseURL}}/ext/bc/X", "host": [ "{{baseURL}}" ], "path": [ "ext", "bc", "X" ] }, "description": "Get the UTXOs that reference a given address. [More info](https://docs.avax.network/apis/avalanchego/apis/x-chain#avmgetutxos)" }, "response": [] }, { "name": "import - DEPRECATED", "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "//Deprecated as of v1.9.12.\n\n{\n \"jsonrpc\":\"2.0\",\n \"id\" :1,\n \"method\" :\"avm.import\",\n \"params\" :{\n \"username\":\"{{avalancheUsername}}\",\n \"password\":\"{{avalanchePassword}}\",\n \"sourceChain\": \"P\",\n \"to\":\"{{xchainAddress}}\"\n }\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{baseURL}}/ext/bc/X", "host": [ "{{baseURL}}" ], "path": [ "ext", "bc", "X" ] }, "description": "Finalize a transfer of AVAX from either the P-Chain to the X-Chain or the C-Chain to the X-Chain.\n\nBefore this method is called, you must call either the P-Chain’s `exportAVAX` method or the C-Chain’s `exportAVAX` method to initiate the transfer. [More info](https://docs.avax.network/apis/avalanchego/apis/x-chain#avmimport)" }, "response": [] }, { "name": "importKey - DEPRECATED", "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "//Deprecated as of v1.9.12.\n\n{\n \"jsonrpc\":\"2.0\",\n \"id\" :1,\n \"method\" :\"avm.importKey\",\n \"params\" :{\n \"username\": \"{{avalancheUsername}}\",\n \"password\": \"{{avalanchePassword}}\",\n \"privateKey\":\"{{privkey}}\"\n }\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{baseURL}}/ext/bc/X", "host": [ "{{baseURL}}" ], "path": [ "ext", "bc", "X" ] }, "description": "Give a user control over an address by providing the private key that controls the address. [More info](https://docs.avax.network/apis/avalanchego/apis/x-chain#avmimportkey)" }, "response": [] }, { "name": "issueTx", "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"jsonrpc\":\"2.0\",\n \"id\" : 1,\n \"method\" :\"avm.issueTx\",\n \"params\" :{\n \"tx\":\"6sTENqXfk3gahxkJbEPsmX9eJTEFZRSRw83cRJqoHWBiaeAhVbz9QV4i6SLd6Dek4eLsojeR8FbT3arFtsGz9ycpHFaWHLX69edJPEmj2tPApsEqsFd7wDVp7fFxkG6HmySR\",\n \"encoding\": \"hex\"\n }\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{baseURL}}/ext/bc/X", "host": [ "{{baseURL}}" ], "path": [ "ext", "bc", "X" ] }, "description": "Send a signed transaction to the network. [More info](https://docs.avax.network/apis/avalanchego/apis/x-chain#avmissuetx)" }, "response": [] }, { "name": "listAddresses - DEPRECATED", "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "//Deprecated as of v1.9.12.\n\n{\n \"jsonrpc\": \"2.0\",\n \"method\": \"avm.listAddresses\",\n \"params\": {\n \"username\":\"{{avalancheUsername}}\",\n \"password\":\"{{avalanchePassword}}\" \n },\n \"id\": 1\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{baseURL}}/ext/bc/X", "host": [ "{{baseURL}}" ], "path": [ "ext", "bc", "X" ] }, "description": "List addresses controlled by the given user. [More info](https://docs.avax.network/apis/avalanchego/apis/x-chain#avmlistaddresses)" }, "response": [] }, { "name": "mint - DEPRECATED", "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "//Deprecated as of v1.9.12.\n\n{\n \"jsonrpc\":\"2.0\",\n \"id\" : 1,\n \"method\" :\"avm.mint\",\n \"params\" :{\n \"amount\": 10000000,\n \"assetID\": \"2qnR9pLQTDZ9boSbcrcjS4n1DJJkzbkNsJzgwYvmRy8uv47fZT\",\n \"from\": [\"{{xchainAddress}}\"],\n \"to\": \"{{xchainAddress}}\",\n \"minters\": [\n \"{{xchainAddress}}\"\n ],\n \"changeAddr\": \"{{xchainAddress}}\",\n \"username\": \"{{avalancheUsername}}\",\n \"password\": \"{{avalanchePassword}}\" \n }\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{baseURL}}/ext/bc/X", "host": [ "{{baseURL}}" ], "path": [ "ext", "bc", "X" ] }, "description": "Create an unsigned transaction to mint more of a variable-cap asset (an asset created with `avm.createVariableCapAsset`.) [More info](https://docs.avax.network/apis/avalanchego/apis/x-chain#avmmint)" }, "response": [] }, { "name": "mintNFT - DEPRECATED", "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "//Deprecated as of v1.9.12.\n\n{\n \"jsonrpc\":\"2.0\",\n \"id\" : 1,\n \"method\" :\"avm.mintNFT\",\n \"params\" :{\n \"assetID\":\"2KGdt2HpFKpTH5CtGZjYt5XPWs6Pv9DLoRBhiFfntbezdRvZWP\",\n \"payload\":\"2EWh72jYQvEJF9NLk\",\n \"from\": [\"{{xchainAddress}}\"],\n \"to\":\"{{xchainAddress}}\",\n \"minters\":[\n \"{{xchainAddress}}\"\n ],\n \"changeAddr\": \"{{xchainAddress}}\",\n \"username\":\"{{avalancheUsername}}\",\n \"password\":\"{{avalanchePassword}}\" ,\n \"encoding\": \"hex\"\n }\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{baseURL}}/ext/bc/X", "host": [ "{{baseURL}}" ], "path": [ "ext", "bc", "X" ] }, "description": "Mint more of a non-fungible asset (an asset created with `avm.createNFTAsset`.) [More info](https://docs.avax.network/apis/avalanchego/apis/x-chain#avmmintnft)" }, "response": [] }, { "name": "send - DEPRECATED", "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "//Deprecated as of v1.9.12.\n\n{\n \"jsonrpc\":\"2.0\",\n \"id\" :1,\n \"method\" :\"avm.send\",\n \"params\" :{ \n \"assetID\" : \"{{avaxAssetId}}\",\n \"amount\" : 2000000000,\n \"from\" : [\"{{xchainAddress}}\"],\n \"to\" : \"{{xchainAddress}}\",\n \"changeAddr\": \"{{xchainAddress}}\",\n \"memo\" : \"\",\n \"username\": \"{{avalancheUsername}}\",\n \"password\": \"{{avalanchePassword}}\" \n }\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{baseURL}}/ext/bc/X", "host": [ "{{baseURL}}" ], "path": [ "ext", "bc", "X" ] }, "description": "Send a quantity of an asset to an address. [More info](https://docs.avax.network/apis/avalanchego/apis/x-chain#avmsend)" }, "response": [] }, { "name": "sendMultiple - DEPRECATED", "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "//Deprecated as of v1.9.12.\n\n{\n \"jsonrpc\":\"2.0\",\n \"id\" :1,\n \"method\" :\"avm.sendMultiple\",\n \"params\" :{ \n \"outputs\": [\n {\n \"assetID\" : \"{{avaxAssetId}}\",\n \"to\" : \"{{xchainAddress}}\",\n \"amount\" : 1000000000\n }\n ],\n \"from\" : [\"{{xchainAddress}}\"],\n \"changeAddr\": \"{{xchainAddress}}\",\n \"memo\" : \"{{memo}}\",\n \"username\": \"{{avalancheUsername}}\",\n \"password\": \"{{avalanchePassword}}\" \n }\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{baseURL}}/ext/bc/X", "host": [ "{{baseURL}}" ], "path": [ "ext", "bc", "X" ] }, "description": "Send a quantity of an asset to an address. [More info](https://docs.avax.network/apis/avalanchego/apis/x-chain#avmsendmultiple)" }, "response": [] }, { "name": "sendNFT - DEPRECATED", "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "//Deprecated as of v1.9.12.\n\n{\n \"jsonrpc\":\"2.0\",\n \"id\" :1,\n \"method\" :\"avm.sendNFT\",\n \"params\" :{ \n \"assetID\" :\"2KGdt2HpFKpTH5CtGZjYt5XPWs6Pv9DLoRBhiFfntbezdRvZWP\",\n \"from\" : [\"{{xchainAddress}}\"],\n \"to\" :\"{{xchainAddress}}\",\n \"groupID\" : 0,\n \"changeAddr\": \"{{xchainAddress}}\",\n \"username\":\"{{avalancheUsername}}\",\n \"password\":\"{{avalanchePassword}}\" \n }\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{baseURL}}/ext/bc/X", "host": [ "{{baseURL}}" ], "path": [ "ext", "bc", "X" ] }, "description": "Send a quantity of an asset to an address. [More info](https://docs.avax.network/apis/avalanchego/apis/x-chain#avmsendnft)" }, "response": [] }, { "name": "wallet_issueTx", "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "//Endpoint deprecated as of v1.9.12.\n\n{\n \"jsonrpc\":\"2.0\",\n \"id\" : 1,\n \"method\" :\"wallet.issueTx\",\n \"params\" :{\n \"tx\":\"0x00000009de31b4d8b22991d51aa6aa1fc733f23a851a8c9400000000000186a0000000005f041280000000005f9ca900000030390000000000000001fceda8f90fcb5d30614b99d79fc4baa29307762668f16eb0259a57c2d3b78c875c86ec2045792d4df2d926c40f829196e0bb97ee697af71f5b0a966dabff749634c8b729855e937715b0e44303fd1014daedc752006011b730\",\n \"encoding\": \"hex\"\n }\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{baseURL}}/ext/bc/X/wallet", "host": [ "{{baseURL}}" ], "path": [ "ext", "bc", "X", "wallet" ] }, "description": "Send a signed transaction to the network and assume the TX will be accepted. `encoding` specifies the format of the signed transaction. Can only be `hex` when a value is provided. [More info](https://docs.avax.network/apis/avalanchego/apis/x-chain#walletissuetx)" }, "response": [] }, { "name": "wallet_send", "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"jsonrpc\":\"2.0\",\n \"id\" :1,\n \"method\" :\"wallet.send\",\n \"params\" :{\n \"assetID\" : \"AVAX\",\n \"amount\" : 10000,\n \"to\" : \"X-avax18jma8ppw3nhx5r4ap8clazz0dps7rv5ukulre5\",\n \"memo\" : \"hi, mom!\",\n \"from\" : [\"X-avax18jma8ppw3nhx5r4ap8clazz0dps7rv5ukulre5\"],\n \"changeAddr\": \"X-avax1turszjwn05lflpewurw96rfrd3h6x8flgs5uf8\",\n \"username\" : \"userThatControlsAtLeast10000OfThisAsset\",\n \"password\" : \"myPassword\"\n }\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{baseURL}}/ext/bc/X/wallet", "host": [ "{{baseURL}}" ], "path": [ "ext", "bc", "X", "wallet" ] }, "description": "Send a quantity of an asset to an address and assume the TX will be accepted so that future calls can use the modified UTXO set. [More info](https://docs.avax.network/apis/avalanchego/apis/x-chain#walletsend)" }, "response": [] }, { "name": "wallet_sendMultiple", "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"jsonrpc\":\"2.0\",\n \"id\" :1,\n \"method\" :\"wallet.sendMultiple\",\n \"params\" :{\n \"outputs\": [\n {\n \"assetID\" : \"AVAX\",\n \"to\" : \"X-avax18jma8ppw3nhx5r4ap8clazz0dps7rv5ukulre5\",\n \"amount\" : 1000000000\n },\n {\n \"assetID\" : \"26aqSTpZuWDAVtRmo44fjCx4zW6PDEx3zy9Qtp2ts1MuMFn9FB\",\n \"to\" : \"X-avax18knvhxx8uhc0mwlgrfyzjcm2wrd6e60w37xrjq\",\n \"amount\" : 10\n }\n ],\n \"memo\" : \"hi, mom!\",\n \"from\" : [\"X-avax18jma8ppw3nhx5r4ap8clazz0dps7rv5ukulre5\"],\n \"changeAddr\": \"X-avax1turszjwn05lflpewurw96rfrd3h6x8flgs5uf8\",\n \"username\" : \"username\",\n \"password\" : \"myPassword\"\n }\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{baseURL}}/ext/bc/X/wallet", "host": [ "{{baseURL}}" ], "path": [ "ext", "bc", "X", "wallet" ] }, "description": "Send multiple transfers of `amount` of `assetID`, to a specified address from a list of owned of addresses and assume the TX will be accepted so that future calls can use the modified UTXO set. [More info](https://docs.avax.network/apis/avalanchego/apis/x-chain#walletsendmultiple)" }, "response": [] } ], "description": "The X-Chain, Avalanche’s native platform for creating and trading assets, is an instance of the Avalanche Virtual Machine (AVM). This API allows clients to create and trade assets on the X-Chain and other instances of the AVM. [More info](https://docs.avax.network/v1.0/en/api/avm)" }, { "name": "EVM", "item": [ { "name": "eth_baseFee", "event": [ { "listen": "test", "script": { "exec": [ "var table = `", "", "", "", "", " Convert to decimal: ", "
", " ", "
", "
", "", "", "", "", "", "", "", "", "
Base fee: {{response.result}} WEI
", "", "Please note that 1 AVAX = 1018 WEI and 1 WEI = 109 GWEI", "", "`;", "", "pm.visualizer.set(table, {", " response: pm.response.json(),", "});", "" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"jsonrpc\": \"2.0\",\n \"method\": \"eth_baseFee\",\n \"params\": [],\n \"id\": 1\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{baseURL}}/ext/bc/C/rpc", "host": [ "{{baseURL}}" ], "path": [ "ext", "bc", "C", "rpc" ] }, "description": "Get the base fee for the next block. [More info](https://docs.avax.network/apis/avalanchego/apis/c-chain#eth_basefee)" }, "response": [] }, { "name": "eth_blockNumber", "event": [ { "listen": "test", "script": { "exec": [ "var jsonData = JSON.parse(responseBody);", "var hexVal = jsonData.result", "", "", "", "var table = `", "", "", "", "", "", " Convert to decimal: ", "
", " ", "
", "
", "", "", " ", " ", " ", " ", "
Block number: {{response.result}}
", "", "`;", "", "pm.visualizer.set(table, {", " response: pm.response.json(),", "});" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"jsonrpc\": \"2.0\",\n \"method\": \"eth_blockNumber\",\n \"params\": [],\n \"id\": 1\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{baseURL}}/ext/bc/C/rpc", "host": [ "{{baseURL}}" ], "path": [ "ext", "bc", "C", "rpc" ] }, "description": "Getting the most recent block number." }, "response": [] }, { "name": "eth_call", "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"id\": 1,\n \"jsonrpc\": \"2.0\",\n \"method\": \"eth_call\",\n \"params\": [\n {\n \"to\": \"0x197E90f9FAD81970bA7976f33CbD77088E5D7cf7\",\n \"data\": \"0xc92aecc4\"\n },\n \"latest\"\n ]\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{baseURL}}/ext/bc/C/rpc", "host": [ "{{baseURL}}" ], "path": [ "ext", "bc", "C", "rpc" ] }, "description": "Call a contract." }, "response": [] }, { "name": "eth_chainId", "event": [ { "listen": "test", "script": { "exec": [ "var table = `", "", "", "", "", "", " Convert to decimal: ", "
", " ", "
", "
", "", "", " ", " ", " ", " ", "
Chain ID: {{response.result}}
", "", "`;", "", "pm.visualizer.set(table, {", " response: pm.response.json(),", "});" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"jsonrpc\": \"2.0\",\n \"method\": \"eth_chainId\",\n \"params\": [],\n \"id\": 1\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{baseURL}}/ext/bc/C/rpc", "host": [ "{{baseURL}}" ], "path": [ "ext", "bc", "C", "rpc" ] }, "description": "Not well documented in JSON-RPC references. See instead EIP694." }, "response": [] }, { "name": "eth_getAssetBalance", "event": [ { "listen": "test", "script": { "exec": [ "var table = `", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "
Balance:
hex: {{response.result}} WEI
dec: {{response.result}} AVAX
", "", "Please note that 1 AVAX = 1018 WEI", "", "`;", "", "pm.visualizer.set(table, {", " response: pm.response.json(),", "});" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"jsonrpc\": \"2.0\",\n \"method\": \"eth_getAssetBalance\",\n \"params\": [\n \"{{cchainAddress}}\",\n \"latest\",\n \"2W4XDTMrQJm7YALcnCL4krU7JpoGQQaDkTdn2HbzpsqombHRaB\"\n ],\n \"id\": 1\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{baseURL}}/ext/bc/C/rpc", "host": [ "{{baseURL}}" ], "path": [ "ext", "bc", "C", "rpc" ] }, "description": "Getting an account’s non-AVAX balance. [More info](https://docs.avax.network/apis/avalanchego/apis/c-chain#eth_getassetbalance)" }, "response": [] }, { "name": "eth_getBalance", "event": [ { "listen": "test", "script": { "exec": [ "var table = `", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "
Balance:
hex: {{response.result}} WEI
dec: {{response.result}} AVAX
", "", "Please note that 1 AVAX = 1018 WEI", "", "`;", "", "pm.visualizer.set(table, {", " response: pm.response.json(),", "});" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"jsonrpc\": \"2.0\",\n \"method\": \"eth_getBalance\",\n \"params\": [\n \"{{cchainAddress}}\",\n \"latest\"\n ],\n \"id\": 1\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{baseURL}}/ext/bc/C/rpc", "host": [ "{{baseURL}}" ], "path": [ "ext", "bc", "C", "rpc" ] }, "description": "Getting an account’s balance." }, "response": [] }, { "name": "eth_getChainConfig", "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"jsonrpc\":\"2.0\",\n \"id\" :1,\n \"method\" :\"eth_getChainConfig\",\n \"params\" :[]\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{baseURL}}/ext/bc/C/rpc", "host": [ "{{baseURL}}" ], "path": [ "ext", "bc", "C", "rpc" ] }, "description": "`eth_getChainConfig` returns chain config. This API is enabled by default with `internal-eth` namespace. [More info](https://docs.avax.network/apis/avalanchego/apis/c-chain#eth_getchainconfig)" }, "response": [] }, { "name": "eth_maxPriorityFeePerGas", "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"jsonrpc\": \"2.0\",\n \"method\": \"eth_maxPriorityFeePerGas\",\n \"params\": [],\n \"id\": 1\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{baseURL}}/ext/bc/C/rpc", "host": [ "{{baseURL}}" ], "path": [ "ext", "bc", "C", "rpc" ] }, "description": "Get the priority fee needed to be included in a block. [More info](https://docs.avax.network/apis/avalanchego/apis/c-chain#eth_maxpriorityfeepergas)" }, "response": [] }, { "name": "eth_signTransaction", "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"jsonrpc\": \"2.0\",\n \"method\": \"eth_signTransaction\",\n \"params\": [{\n \"from\": \"0xa64b27635c967dfe9674926bc004626163ddce97\",\n \"to\": \"0x1c5b0e12e90e9c52235babad76cfccab2519bb95\",\n \"gas\": \"0x5208\",\n \"gasPrice\": \"0x0\",\n \"nonce\": \"0x0\",\n \"value\": \"0x0\"\n }],\n \"id\": 1\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{baseURL}}/ext/bc/C/rpc", "host": [ "{{baseURL}}" ], "path": [ "ext", "bc", "C", "rpc" ] }, "description": "Signing a transaction.\n\nThis method will create a signed transaction, but will not publish it automatically to the network. Instead, the `raw` result output should be used with `eth_sendRawTransaction` to execute the transaction." }, "response": [] }, { "name": "eth_getTransactionCount", "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"jsonrpc\": \"2.0\",\n \"method\": \"eth_getTransactionCount\",\n \"params\": [\n \"{{cchainAddress}}\",\n \"latest\"\n ],\n \"id\": 1\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{baseURL}}/ext/bc/C/rpc", "host": [ "{{baseURL}}" ], "path": [ "ext", "bc", "C", "rpc" ] }, "description": "Getting an account’s nonce." }, "response": [] }, { "name": "eth_sendRawTransaction", "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"id\": 1,\n \"jsonrpc\": \"2.0\",\n \"method\": \"eth_sendRawTransaction\",\n \"params\": [\n \"0xf8628080825208941c5b0e12e90e9c52235babad76cfccab2519bb958080830150efa0308ca8002f3df1a468eea9973d2d618eb866e2ef0a57cba4d34efb3025b70a0aa0592b7b0a803e7b70ec26dd74ab85aa71126198eff5552e5be638e6e26a455ee0\"\n ]\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{baseURL}}/ext/bc/C/rpc", "host": [ "{{baseURL}}" ], "path": [ "ext", "bc", "C", "rpc" ] }, "description": "Send a raw transaction.\n\nExample below shows a raw transaction published to the network and its associated transaction hash." }, "response": [] }, { "name": "eth_getBlockByHash", "event": [ { "listen": "test", "script": { "exec": [ "var table = `", " ", "", " User Friendly View: ", "
", " ", "
", "
", "", " ", "", " ", "", " ", " ", " ", " ", " ", " ", " ", " ", " ", "", " ", " ", " ", " ", "", " ", " ", " ", " ", "", " ", " ", " ", " ", "", "", " ", " ", " ", " ", "", " ", " ", " ", " ", "", "", " ", " ", " ", " ", "", "", " ", " ", " ", " ", "", " ", " ", " ", " ", "", " ", " ", " ", " ", "", " ", " ", " ", " ", "", " ", " ", " ", " ", "", " ", " ", " ", " ", "", " ", " ", " ", " ", "", " ", " ", " ", " ", " ", " ", " ", " ", " ", "", " ", " ", " ", " ", "", " ", " ", " ", " ", "", " ", " ", " ", " ", "", " ", " ", " ", " ", "", " ", " ", " ", " ", "", " ", " ", " ", " ", " {{#each response.result.transactions}}", " ", " ", " ", " ", " ", "", " ", " ", " ", " ", " ", "", " ", " ", " ", " ", "", " ", " ", " ", " ", " ", " ", " {{#if maxFeePerGas}}", " ", " ", " ", " ", " ", " {{/if}}", " ", "", " {{#if maxPriorityFeePerGas}}", " ", " ", " ", " ", " ", " {{/if}}", " ", "", " ", " ", " ", " ", " ", "", " ", " ", " ", " ", " ", "", " ", " ", " ", " ", " ", "", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", "", " ", " ", " ", " ", " ", "", " ", " ", " ", " ", " ", "", " ", " ", " ", " ", " ", "", " {{#if response.result.accessList}}", " ", " ", " ", " ", " ", " {{/if}}", " ", "", " ", " ", " ", " ", " ", "", " ", " ", " ", " ", " ", "", " ", " ", " ", " ", " ", "", " ", " ", " ", " ", " ", "", " ", " ", " ", " ", " ", "", " {{/each}}", "", " ", " ", " ", " ", " ", " {{#if response.result.uncles}}", " ", " ", " ", " ", " {{/if}}", " ", "
Block:
Base fee per gas: {{response.result.baseFeePerGas}}
Block gas cost: {{response.result.blockGasCost}}
Difficulty: {{response.result.difficulty}}
Extra gas used: {{response.result.extDataGasUsed}}
Extra data hash: {{response.result.extDataHash}}
Extra data: {{response.result.extraData}}
Gas limit: {{response.result.gasLimit}}
Gas used: {{response.result.gasUsed}}
Hash: {{response.result.hash}}
Logs bloom: {{response.result.logsBloom}}
Miner: {{response.result.miner}}
Mix hash: {{response.result.mixHash}}
Nonce: {{response.result.nonce}}
Number: {{response.result.number}}
Parent hash: {{response.result.parentHash}}
Receipts root: {{response.result.receiptsRoot}}
Sha3 uncles: {{response.result.sha3Uncles}}
Size: {{response.result.size}}
State root: {{response.result.stateRoot}}
Timestamp: {{response.result.timestamp}}
Total difficulty: {{response.result.totalDifficulty}}
Block's transactions:
Block hash: {{blockHash}}
Block number: {{blockNumber}}
", " Gas: {{gas}}
Gas price: {{gasPrice}}
Max fee per gas: {{maxFeePerGas}}
Max priority fee per gas: {{maxPriorityFeePerGas}}
Transaction Hash: {{hash}}
Input: {{input}}
Nonce: {{nonce}}
From: {{from}}
To: {{to}}
Transaction index: {{transactionIndex}}
Value: {{value}}
Type: {{type}}
Input: {{accessList}}
Chain ID: {{chainId}}
v: {{v}}
r: {{r}}
s: {{s}}
Transactions root: {{response.result.transactionsRoot}}
Uncles: {{response.result.uncles}}
", " `;", "", "pm.visualizer.set(table, {", " response: pm.response.json(),", "});" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"jsonrpc\": \"2.0\",\n \"method\": \"eth_getBlockByHash\",\n \"params\": [\n \"0x40aff31697d62101d521017897880c72759b89d22bd1b055b4ca00a0233e1a13\",\n true\n ],\n \"id\": 1\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{baseURL}}/ext/bc/C/rpc", "host": [ "{{baseURL}}" ], "path": [ "ext", "bc", "C", "rpc" ] }, "description": "Getting a block by hash." }, "response": [] }, { "name": "eth_getBlockByNumber", "event": [ { "listen": "test", "script": { "exec": [ "var table = `", " ", "", " User Friendly View: ", "
", " ", "
", "
", "", " ", "", " ", "", " ", " ", " ", " ", " ", " ", " ", " ", " ", "", " ", " ", " ", " ", "", " ", " ", " ", " ", "", " ", " ", " ", " ", "", "", " ", " ", " ", " ", "", " ", " ", " ", " ", "", "", " ", " ", " ", " ", "", "", " ", " ", " ", " ", "", " ", " ", " ", " ", "", " ", " ", " ", " ", "", " ", " ", " ", " ", "", " ", " ", " ", " ", "", " ", " ", " ", " ", "", " ", " ", " ", " ", "", " ", " ", " ", " ", " ", " ", " ", " ", " ", "", " ", " ", " ", " ", "", " ", " ", " ", " ", "", " ", " ", " ", " ", "", " ", " ", " ", " ", "", " ", " ", " ", " ", "", " ", " ", " ", " ", " {{#each response.result.transactions}}", " ", " ", " ", " ", " ", "", " ", " ", " ", " ", " ", "", " ", " ", " ", " ", "", " ", " ", " ", " ", " ", " ", " {{#if maxFeePerGas}}", " ", " ", " ", " ", " ", " {{/if}}", " ", "", " {{#if maxPriorityFeePerGas}}", " ", " ", " ", " ", " ", " {{/if}}", " ", "", " ", " ", " ", " ", " ", "", " ", " ", " ", " ", " ", "", " ", " ", " ", " ", " ", "", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", "", " ", " ", " ", " ", " ", "", " ", " ", " ", " ", " ", "", " ", " ", " ", " ", " ", "", " {{#if response.result.accessList}}", " ", " ", " ", " ", " ", " {{/if}}", " ", "", " ", " ", " ", " ", " ", "", " ", " ", " ", " ", " ", "", " ", " ", " ", " ", " ", "", " ", " ", " ", " ", " ", "", " ", " ", " ", " ", " ", "", " {{/each}}", "", " ", " ", " ", " ", " ", " {{#if response.result.uncles}}", " ", " ", " ", " ", " {{/if}}", " ", "
Block:
Base fee per gas: {{response.result.baseFeePerGas}}
Block gas cost: {{response.result.blockGasCost}}
Difficulty: {{response.result.difficulty}}
Extra gas used: {{response.result.extDataGasUsed}}
Extra data hash: {{response.result.extDataHash}}
Extra data: {{response.result.extraData}}
Gas limit: {{response.result.gasLimit}}
Gas used: {{response.result.gasUsed}}
Hash: {{response.result.hash}}
Logs bloom: {{response.result.logsBloom}}
Miner: {{response.result.miner}}
Mix hash: {{response.result.mixHash}}
Nonce: {{response.result.nonce}}
Number: {{response.result.number}}
Parent hash: {{response.result.parentHash}}
Receipts root: {{response.result.receiptsRoot}}
Sha3 uncles: {{response.result.sha3Uncles}}
Size: {{response.result.size}}
State root: {{response.result.stateRoot}}
Timestamp: {{response.result.timestamp}}
Total difficulty: {{response.result.totalDifficulty}}
Block's transactions:
Block hash: {{blockHash}}
Block number: {{blockNumber}}
", " Gas: {{gas}}
Gas price: {{gasPrice}}
Max fee per gas: {{maxFeePerGas}}
Max priority fee per gas: {{maxPriorityFeePerGas}}
Transaction Hash: {{hash}}
Input: {{input}}
Nonce: {{nonce}}
From: {{from}}
To: {{to}}
Transaction index: {{transactionIndex}}
Value: {{value}}
Type: {{type}}
Input: {{accessList}}
Chain ID: {{chainId}}
v: {{v}}
r: {{r}}
s: {{s}}
Transactions root: {{response.result.transactionsRoot}}
Uncles: {{response.result.uncles}}
", " `;", "", "pm.visualizer.set(table, {", " response: pm.response.json(),", "});" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"jsonrpc\": \"2.0\",\n \"method\": \"eth_getBlockByNumber\",\n \"params\": [\n \"0x1e5e0e5\",\n true\n ],\n \"id\": 1\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{baseURL}}/ext/bc/C/rpc", "host": [ "{{baseURL}}" ], "path": [ "ext", "bc", "C", "rpc" ] }, "description": "Getting a block by number." }, "response": [] }, { "name": "eth_getTransactionByHash", "event": [ { "listen": "test", "script": { "exec": [ "var table = `", " ", "", " User Friendly View: ", "
", " ", "
", "
", "", " ", "", " ", "", " ", " ", " ", " ", " ", " ", " ", " ", " ", "", " ", " ", " ", " ", "", " ", " ", " ", " ", "", " ", " ", " ", " ", " ", " {{#if response.result.maxFeePerGas}}", " ", " ", " ", " ", " {{/if}}", " ", "", " {{#if response.result.maxPriorityFeePerGas}}", " ", " ", " ", " ", " {{/if}}", " ", "", " ", " ", " ", " ", "", " ", " ", " ", " ", "", " ", " ", " ", " ", "", " ", " ", " ", " ", "", " ", " ", " ", " ", "", " ", " ", " ", " ", "", " ", " ", " ", " ", "", " ", " ", " ", " ", "", " {{#if response.result.accessList}}", " ", " ", " ", " ", " {{/if}}", " ", "", " ", " ", " ", " ", "", " ", " ", " ", " ", "", " ", " ", " ", " ", "", " ", " ", " ", " ", "", "
Transaction
Block hash: {{response.result.blockHash}}
Block number: {{response.result.blockNumber}}
Gas: {{response.result.gas}}
Gas price: {{response.result.gasPrice}}
Max fee per gas: {{response.result.maxFeePerGas}}
Max priority fee per gas: {{response.result.maxPriorityFeePerGas}}
Transaction Hash: {{response.result.hash}}
Input: {{response.result.input}}
Nonce: {{response.result.nonce}}
From: {{response.result.from}}
To: {{response.result.to}}
Transaction index: {{response.result.transactionIndex}}
Value: {{response.result.value}}
Type: {{response.result.type}}
Input: {{response.result.accessList}}
Chain ID: {{response.result.chainId}}
v: {{response.result.v}}
r: {{response.result.r}}
s: {{response.result.s}}
", " `;", "", "pm.visualizer.set(table, {", " response: pm.response.json(),", "});" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"jsonrpc\": \"2.0\",\n \"method\": \"eth_getTransactionByHash\",\n \"params\": [\n \"0xabface98767a0827ae375c996ad8448d00b244924540750260f77bffdfc9fe82\"\n ],\n \"id\": 1\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{baseURL}}/ext/bc/C/rpc", "host": [ "{{baseURL}}" ], "path": [ "ext", "bc", "C", "rpc" ] }, "description": "Getting a transaction by hash." }, "response": [] }, { "name": "eth_getTransactionReceipt", "event": [ { "listen": "test", "script": { "exec": [ "var table = `", " ", "", " User Friendly View: ", "
", " ", "
", "
", "", " ", "", " ", "", " ", " ", " ", " ", " ", " ", " ", " ", " ", "", " ", " ", " ", " ", "", " ", " ", " ", " ", "", " ", " ", " ", " ", "", " ", " ", " ", " ", " ", " ", " ", " ", " ", "", " {{#each response.result.logs}}", " ", " ", " ", " ", " ", "", " ", " ", " ", " ", " ", "", " ", " ", " ", " ", " ", "", " ", " ", " ", " ", " ", "", " ", " ", " ", " ", " ", "", " ", " ", " ", " ", " ", "", " ", " ", " ", " ", " ", "", " ", " ", " ", " ", " ", "", " ", " ", " ", " ", " ", "", " ", " ", " ", " ", " ", " {{/each}}", "", " ", " ", " ", " ", "", " ", " ", " ", " ", "", " ", " ", " ", " ", "", " ", " ", " ", " ", "", " ", " ", " ", " ", "", " ", " ", " ", " ", "", " ", " ", " ", " ", "", " ", " ", " ", " ", "", "
Transaction receipt
Block hash: {{response.result.blockHash}}
Block number: {{response.result.blockNumber}}
Cumulative gas used: {{response.result.cumulativeGasUsed}}
Effective gas price: {{response.result.effectiveGasPrice}}
Gas used: {{response.result.gasUsed}}
Logs:
Address: {{address}}
Topics: {{topics}}
Data: {{data}}
Transaction Hash: {{transactionHash}}
Transaction Index: {{transactionIndex}}
Block number: {{blockNumber}}
Block hash: {{blockHash}}
Log index: {{logIndex}}
Removed: {{removed}}
Logs bloom: {{response.result.logsBloom}}
Contract address: {{response.result.contractAddress}}
Status: {{response.result.status}}
From: {{response.result.from}}
To: {{response.result.to}}
Transaction hash: {{response.result.transactionHash}}
Transaction index: {{response.result.transactionIndex}}
Type: {{response.result.type}}
", "", " `;", "", "pm.visualizer.set(table, {", " response: pm.response.json(),", "});" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"jsonrpc\": \"2.0\",\n \"method\": \"eth_getTransactionReceipt\",\n \"params\": [\n \"0x631dc45342a47d360915ea0d193fc317777f8061fe57b4a3e790e49d26960202\"\n ],\n \"id\": 1\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{baseURL}}/ext/bc/C/rpc", "host": [ "{{baseURL}}" ], "path": [ "ext", "bc", "C", "rpc" ] }, "description": "Getting a transaction receipt." }, "response": [] }, { "name": "export", "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"method\" :\"avax.export\",\n \"params\" :{\n \"from\": [\"{{cchainAddress}}\"],\n \"to\":\"{{xchainAddress}}\",\n \"amount\": 25,\n \"changeAddr\": \"{{cchainAddress}}\",\n \"assetID\": \"FSznYPiqrJ3WtGurw54re47oDpGXQ8THc8yZ4fEDX4G8cGqbn\",\n \"username\":\"{{avalancheUsername}}\",\n \"password\":\"{{avalanchePassword}}\"\n },\n \"jsonrpc\":\"2.0\",\n \"id\" :1\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{baseURL}}/ext/bc/C/avax", "host": [ "{{baseURL}}" ], "path": [ "ext", "bc", "C", "avax" ] }, "description": "Send AVAX from the X-Chain to an account on the P-Chain. \nAfter calling this method, you must call the P-Chain’s `importAVAX` method to complete the transfer. [More info](https://docs.avax.network/apis/avalanchego/apis/c-chain#avaxexport)" }, "response": [] }, { "name": "exportAVAX", "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"method\" :\"avax.exportAVAX\",\n \"params\" :{\n \"from\": [\"{{cchainAddress}}\"],\n \"to\":\"{{xchainAddress}}\",\n \"amount\": 999000000,\n \"destinationChain\": \"X\",\n \"changeAddr\": \"{{cchainAddress}}\",\n \"username\":\"{{avalancheUsername}}\",\n \"password\":\"{{avalanchePassword}}\" \n },\n \"jsonrpc\":\"2.0\",\n \"id\" :1\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{baseURL}}/ext/bc/C/avax", "host": [ "{{baseURL}}" ], "path": [ "ext", "bc", "C", "avax" ] }, "description": "Send AVAX from the X-Chain to an account on the P-Chain. \nAfter calling this method, you must call the P-Chain’s `importAVAX` method to complete the transfer. [More info](https://docs.avax.network/apis/avalanchego/apis/c-chain#avaxexportavax)" }, "response": [] }, { "name": "exportKey", "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"method\" :\"avax.exportKey\",\n \"params\" :{\n \"username\":\"{{avalancheUsername}}\",\n \"password\":\"{{avalanchePassword}}\",\n \"address\": \"{{cchainAddress}}\"\n },\n \"jsonrpc\":\"2.0\",\n \"id\" :1\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{baseURL}}/ext/bc/C/avax", "host": [ "{{baseURL}}" ], "path": [ "ext", "bc", "C", "avax" ] }, "description": "Get the private key that controls a given address. \nThe returned private key can be added to a user with `avm.importKey`. [More info](https://docs.avax.network/apis/avalanchego/apis/c-chain#avaxexportkey)" }, "response": [] }, { "name": "getAtomicTx", "event": [ { "listen": "test", "script": { "exec": [ "var res = {};", "const req = JSON.parse(pm.request.body.raw)", "const txID = req.params.txID", "var view = `", "", " ", "", "", "", "", "", "", " ", " ", " ", " ", " ", " ", " ", " ", "", " ", " ", " ", " ", "", " ", " ", " ", " ", "", " ", " ", " ", " ", "", " ", " ", " ", " ", "", " ", " ", " ", " ", "", " ", " ", " ", " ", "", " ", " ", " ", " ", " ", " ", " ", " ", " ", "", " ", " ", " ", " ", "", " ", " ", " ", " ", "", " ", " ", " ", " ", "", " ", " ", " ", "", " {{#if response.inputs.0.address}}", " ", " ", " ", " ", " ", " {{/if}}", "", " {{#if response.inputs.0.nonce}}", " ", " ", " ", " ", " ", " {{/if}}", "", " {{#if response.inputs.0.id}}", " ", " ", " ", " ", " ", " {{/if}}", "", " {{#if response.inputs.0.txId}}", " ", " ", " ", " ", " ", " {{/if}}", "", " {{#if response.inputs.0.index}}", " ", " ", " ", " ", " ", " {{/if}}", "", " {{#if response.inputs.0.amount}}", " ", " ", " ", " ", " ", " {{/if}}", "", " {{#if response.inputs.0.srcChain}}", " ", " ", " ", " ", " ", " {{/if}}", "", " ", " ", " ", " ", " ", "", " ", " ", " ", " ", " ", "", " ", " ", " ", " ", " ", "", " ", " ", " ", " ", " ", "", " ", " ", " ", " ", " ", "", " ", " ", " ", "", " {{#if response.outputs.0.address}}", " ", " ", " ", " ", " ", " {{/if}}", "", " {{#if response.outputs.0.id}}", " ", " ", " ", " ", " ", " {{/if}}", "", " {{#if response.outputs.0.txId}}", " ", " ", " ", " ", " ", " {{/if}}", "", " {{#if response.outputs.0.index}}", " ", " ", " ", " ", " ", " {{/if}}", "", " {{#if response.outputs.0.amount}}", " ", " ", " ", " ", " ", " {{/if}}", "", " {{#if response.outputs.0.dstChain}}", " ", " ", " ", " ", " ", " {{/if}}", "", " {{#if response.outputs.0.owner.addresses}}", " ", " ", " ", " ", " ", " {{/if}}", "", " {{#if response.outputs.0.owner.threshold}}", " ", " ", " ", " ", " ", " {{/if}}", "", "", " ", " ", " ", " ", " ", "", " ", " ", " ", " ", " ", "", " ", " ", " ", " ", " ", "", " ", " ", " ", " ", " ", "", " ", " ", " ", " ", " ", "", "", "
Decoded Atomic TX:
ID: {{response.id}}
Type: {{response.type}}
From: {{response.from}}
To: {{response.to}}
From: {{response.from}}
Chain ID: {{response.chainId}}
Date: {{response.timestamp}}
Block number: {{response.blockNumber}}
Block hash: {{response.blockHash}}
Value: {{response.value}}
Burned fees: {{response.burnedFees}}
Status: {{response.status}}
Inputs
Address: {{response.inputs.0.address}}
Nonce: {{response.inputs.0.nonce}}
ID: {{response.inputs.0.id}}
Transaction ID: {{response.inputs.0.txId}}
Index: {{response.inputs.0.index}}
Amount: {{response.inputs.0.amount}}
Source chain: {{response.inputs.0.srcChain}}
Asset ID: {{response.inputs.0.asset.id}}
Asset name: {{response.inputs.0.asset.name}}
Asset symbol: {{response.inputs.0.asset.symbol}}
Asset denomination: {{response.inputs.0.asset.denomination}}
Asset type: {{response.inputs.0.asset.type}}
Outputs
Address: {{response.outputs.0.address}}
ID: {{response.outputs.0.id}}
Transaction ID: {{response.outputs.0.txId}}
Index: {{response.outputs.0.index}}
Amount: {{response.outputs.0.amount}}
Destination chain: {{response.outputs.0.dstChain}}
Owner address: {{response.outputs.0.owner.addresses}}
Threshold: {{response.outputs.0.owner.threshold}}
Asset ID: {{response.outputs.0.asset.id}}
Asset name: {{response.outputs.0.asset.name}}
Asset symbol: {{response.outputs.0.asset.symbol}}
Asset denomination: {{response.outputs.0.asset.denomination}}
Asset type: {{response.outputs.0.asset.type}}
", "`;", "", "const requestURL = \"https://api-beta.avascan.info/v2/network/mainnet/evm/43114/transactions/\" + txID ;", "console.log(requestURL)", "pm.sendRequest(requestURL, function (err, response) {", " res = response.json();", " console.log(res.value)", " pm.visualizer.set(view, {", " response: res,", " });", "})", "" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"jsonrpc\":\"2.0\",\n \"id\" :1,\n \"method\" :\"avax.getAtomicTx\",\n \"params\" :{\n \"txID\":\"9zX25brVj24xMBXJFw973MGVgkuDwvFPyBQoqo4pLye5mBkhN\",\n \"encoding\": \"hex\"\n }\n}\n\n//choose \"Visualize\" from the output section to see the decoded tx", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{baseURL}}/ext/bc/C/avax", "host": [ "{{baseURL}}" ], "path": [ "ext", "bc", "C", "avax" ] }, "description": "Returns the specified transaction [More info](https://docs.avax.network/apis/avalanchego/apis/c-chain#avaxgetatomictx)" }, "response": [] }, { "name": "getAtomicTxStatus", "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"jsonrpc\": \"2.0\",\n \"id\": 1,\n \"method\": \"avax.getAtomicTxStatus\",\n \"params\": {\n \"txID\": \"n1D9UkjiryEBtW8qznD1TDkGEuYRFj5tLaS8NhVpMLYsx1FHa\"\n }\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{baseURL}}/ext/bc/C/avax", "host": [ "{{baseURL}}" ], "path": [ "ext", "bc", "C", "avax" ] }, "description": "Get the status of a transaction sent to the network. [More info](https://docs.avax.network/apis/avalanchego/apis/c-chain#avaxgetatomictxstatus)" }, "response": [] }, { "name": "getUTXOs", "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"jsonrpc\":\"2.0\",\n \"id\" :1,\n \"method\" :\"avax.getUTXOs\",\n \"params\" :{\n \"addresses\":[\"{{cchainbech32address}}\"],\n \"sourceChain\": \"X\",\n \"limit\": 5,\n \"encoding\": \"hex\"\n }\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{baseURL}}/ext/bc/C/avax", "host": [ "{{baseURL}}" ], "path": [ "ext", "bc", "C", "avax" ] }, "description": "Get the UTXOs that reference a given address. [More info](https://docs.avax.network/apis/avalanchego/apis/c-chain#avaxgetutxos)" }, "response": [] }, { "name": "import", "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"method\": \"avax.import\",\n \"params\": {\n \"username\":\"{{avalancheUsername}}\",\n \"password\":\"{{avalanchePassword}}\",\n \"sourceChain\": \"X\",\n \"to\":\"{{cchainAddress}}\"\n },\n \"jsonrpc\": \"2.0\",\n \"id\": 1\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{baseURL}}/ext/bc/C/avax", "host": [ "{{baseURL}}" ], "path": [ "ext", "bc", "C", "avax" ] }, "description": "Send AVAX from the X-Chain to an account on the P-Chain. \nAfter calling this method, you must call the P-Chain’s `importAVAX` method to complete the transfer. [More info](https://docs.avax.network/apis/avalanchego/apis/c-chain#avaximport)" }, "response": [] }, { "name": "importAVAX", "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"method\": \"avax.importAVAX\",\n \"params\": {\n \"username\":\"{{avalancheUsername}}\",\n \"password\":\"{{avalanchePassword}}\",\n \"sourceChain\": \"X\",\n \"to\":\"{{cchainAddress}}\"\n },\n \"jsonrpc\": \"2.0\",\n \"id\": 1\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{baseURL}}/ext/bc/C/avax", "host": [ "{{baseURL}}" ], "path": [ "ext", "bc", "C", "avax" ] }, "description": "Import AVAX from the X-Chain to an account on the C-Chain. \nBefore calling this method, you must call the X-Chain’s `exportAVAX` method to initiate the transfer. [More info](https://docs.avax.network/apis/avalanchego/apis/c-chain#avaximportavax)" }, "response": [] }, { "name": "importKey", "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"method\": \"avax.importKey\",\n \"params\": {\n \"username\":\"{{avalancheUsername}}\",\n \"password\":\"{{avalanchePassword}}\",\n \"privateKey\":\"{{privkey}}\"\n },\n \"jsonrpc\": \"2.0\",\n \"id\": 1\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{baseURL}}/ext/bc/C/avax", "host": [ "{{baseURL}}" ], "path": [ "ext", "bc", "C", "avax" ] }, "description": "Give a user control over an address by providing the private key that controls the address. [More info](https://docs.avax.network/apis/avalanchego/apis/c-chain#avaximportkey)" }, "response": [] }, { "name": "issueTx", "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"jsonrpc\":\"2.0\",\n \"id\" : 1,\n \"method\" :\"avax.issueTx\",\n \"params\" :{\n \"tx\":\"0x00\",\n \"encoding\": \"hex\"\n }\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{baseURL}}/ext/bc/C/avax", "host": [ "{{baseURL}}" ], "path": [ "ext", "bc", "C", "avax" ] }, "description": "Send a signed transaction to the network. [More info](https://docs.avax.network/apis/avalanchego/apis/c-chain#avaxissuetx)" }, "response": [] }, { "name": "net_version", "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"jsonrpc\": \"2.0\",\n \"method\": \"net_version\",\n \"params\": [],\n \"id\": 1\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{baseURL}}/ext/bc/C/rpc", "host": [ "{{baseURL}}" ], "path": [ "ext", "bc", "C", "rpc" ] }, "description": "Getting the network ID." }, "response": [] }, { "name": "personal_newAccount", "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"jsonrpc\": \"2.0\",\n \"method\": \"personal_newAccount\",\n \"params\": [\n \"cheese\"\n ],\n \"id\": 1\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{baseURL}}/ext/bc/C/rpc", "host": [ "{{baseURL}}" ], "path": [ "ext", "bc", "C", "rpc" ] }, "description": "Creating a new account (private key generated automatically)\n\nThe EVM will create a new account using the passphrase `cheese` to encrypt and store the new account credentials. cheese is not the seed phrase and cannot be used to restore this account from scratch. Calling this function repeatedly with the same passphrase will create multiple unique accounts. Also keep in mind there are no options to export private keys stored in the EVM database. Users are encouraged to use wallet software instead for safer account creation and backup. This method is more suitable for quick account creation for a testnet." }, "response": [] }, { "name": "personal_importRawKey", "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"jsonrpc\": \"2.0\",\n \"method\": \"personal_importRawKey\",\n \"params\": [\n \"627119bb8286874a15d562d32829613311a678da26ca7a6a785ec4ad85937d07\",\n \"{{cchainPassphrase}}\"\n ],\n \"id\": 1\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{baseURL}}/ext/bc/C/rpc", "host": [ "{{baseURL}}" ], "path": [ "ext", "bc", "C", "rpc" ] }, "description": "Creating a new account (using plaintext private key).\n\nIf the private key is known upfront, it can be provided as plaintext to load into the EVM account database. For more secure account management, consider using wallet software instead. The example below loads the private key `0x627119bb8286874a15d562d32829613311a678da26ca7a6a785ec4ad85937d06` with the passphrase `this is my passphrase`. Note that `0x` prefix cannot be included in the private key argument, otherwise the EVM will throw an error. The example response returns the associated public key." }, "response": [] }, { "name": "personal_listAccounts", "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"jsonrpc\": \"2.0\",\n \"method\": \"personal_listAccounts\",\n \"params\": [],\n \"id\": 1\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{baseURL}}/ext/bc/C/rpc", "host": [ "{{baseURL}}" ], "path": [ "ext", "bc", "C", "rpc" ] }, "description": "Listing accounts loaded in EVM node." }, "response": [] }, { "name": "personal_unlockAccount", "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"jsonrpc\": \"2.0\",\n \"method\": \"personal_unlockAccount\",\n \"params\": [\n \"{{cchainAddress}}\",\n \"{{cchainPassphrase}}\",\n 600\n ],\n \"id\": 1\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{baseURL}}/ext/bc/C/rpc", "host": [ "{{baseURL}}" ], "path": [ "ext", "bc", "C", "rpc" ] }, "description": "Unlocking an account.\n\nPersonal accounts loaded directly in the EVM can only sign transactions while in an unlocked state. The example below unlocks the listed account address for 60 seconds. Note the associated passphrase `cheese` must be provided for authorization." }, "response": [] }, { "name": "txpool_status", "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"jsonrpc\": \"2.0\",\n \"method\": \"txpool_status\",\n \"params\": [],\n \"id\": 1\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{baseURL}}/ext/bc/C/rpc", "host": [ "{{baseURL}}" ], "path": [ "ext", "bc", "C", "rpc" ] }, "description": "Getting count of pending transactions.\n\n“Pending” transactions will be non-zero during periods of heavy network use. “Queued” transactions indicate transactions have been submitted with nonce values ahead of the next expected value for an address, which places them on hold until a transaction with the next expected nonce value is submitted." }, "response": [] }, { "name": "web3_clientVersion", "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"jsonrpc\": \"2.0\",\n \"method\": \"web3_clientVersion\",\n \"params\": [],\n \"id\": 1\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{baseURL}}/ext/bc/C/rpc", "host": [ "{{baseURL}}" ], "path": [ "ext", "bc", "C", "rpc" ] }, "description": "Getting the current client version." }, "response": [] }, { "name": "web3_sha3", "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"jsonrpc\": \"2.0\",\n \"method\": \"web3_sha3\",\n \"params\": [\n \"0x736e6f7773746f726d\"\n ],\n \"id\": 1\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{baseURL}}/ext/bc/C/rpc", "host": [ "{{baseURL}}" ], "path": [ "ext", "bc", "C", "rpc" ] }, "description": "Calculate a cryptographic hash.\n\nThe input parameter contains hexidecimal bytes of arbitrary length. The example here uses the UTF-8 text string “snowstorm” converted to hexidecimal bytes." }, "response": [] }, { "name": "admin_setLogLevel", "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"jsonrpc\":\"2.0\",\n \"id\" :1,\n \"method\" :\"admin.setLogLevel\",\n \"params\": {\n \"level\":\"info\"\n }\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{baseURL}}/ext/bc/C/admin", "host": [ "{{baseURL}}" ], "path": [ "ext", "bc", "C", "admin" ] }, "description": "Sets the log level of the C-Chain. [More info](https://docs.avax.network/apis/avalanchego/apis/c-chain#adminsetloglevel)" }, "response": [] }, { "name": "admin_startCPUProfiler", "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"jsonrpc\":\"2.0\",\n \"id\" :1,\n \"method\" :\"admin.startCPUProfiler\",\n \"params\": {}\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{baseURL}}/ext/bc/C/admin", "host": [ "{{baseURL}}" ], "path": [ "ext", "bc", "C", "admin" ] }, "description": "Starts a CPU profile. [More info](https://docs.avax.network/apis/avalanchego/apis/c-chain#adminstartcpuprofiler)" }, "response": [] }, { "name": "admin_stopCPUProfiler", "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"jsonrpc\":\"2.0\",\n \"id\" :1,\n \"method\" :\"admin.stopCPUProfiler\",\n \"params\": {}\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{baseURL}}/ext/bc/C/admin", "host": [ "{{baseURL}}" ], "path": [ "ext", "bc", "C", "admin" ] }, "description": "Stops and writes a CPU profile. [More info](https://docs.avax.network/apis/avalanchego/apis/c-chain#adminstopcpuprofiler)" }, "response": [] }, { "name": "admin_memoryProfile", "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"jsonrpc\":\"2.0\",\n \"id\" :1,\n \"method\" :\"admin.memoryProfile\",\n \"params\": {}\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{baseURL}}/ext/bc/C/admin", "host": [ "{{baseURL}}" ], "path": [ "ext", "bc", "C", "admin" ] }, "description": "Runs and writes a memory profile. [More info](https://docs.avax.network/apis/avalanchego/apis/c-chain#adminmemoryprofile)" }, "response": [] }, { "name": "admin_lockProfile", "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"jsonrpc\":\"2.0\",\n \"id\" :1,\n \"method\" :\"admin.lockProfile\",\n \"params\": {}\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{baseURL}}/ext/bc/C/admin", "host": [ "{{baseURL}}" ], "path": [ "ext", "bc", "C", "admin" ] }, "description": "Runs a mutex profile writing to the `coreth_performance_c` directory. [More info](https://docs.avax.network/apis/avalanchego/apis/c-chain#adminlockprofile)" }, "response": [] } ], "description": "This document describes the API of the C-Chain, which is an instance of the Ethereum Virtual Machine (EVM.)\n\nNote: Ethereum has its own notion of `networkID` and `chainID`. The C-Chain uses `1` and `43110` for these values, obtained using the `net_version` and `eth_chainId` methods shown below. These have no relationship to AVA’s view of networkID and chainID, and are purely internal to the C-Chain. [More info](https://docs.avax.network/v1.0/en/api/evm)" }, { "name": "Health", "item": [ { "name": "health", "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"jsonrpc\":\"2.0\",\n \"id\" :1,\n \"method\" :\"health.health\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{baseURL}}/ext/health", "host": [ "{{baseURL}}" ], "path": [ "ext", "health" ] }, "description": "Get health check on this node. [More info](https://docs.avax.network/apis/avalanchego/apis/health#methods)" }, "response": [] } ], "description": "This API can be used for measuring node health. [More info](https://docs.avax.network/v1.0/en/api/health)" }, { "name": "Index", "item": [ { "name": "X-Chain Transactions", "item": [ { "name": "getContainerByID", "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"jsonrpc\":\"2.0\",\n \"id\" :1,\n \"method\" :\"index.getContainerByID\",\n \"params\": {\n \"containerID\":\"2dGz8JSfX17QqW12pARrt2iWNhXdcpXMYPVSYRn9HrReGpMXqQ\",\n \"encoding\":\"hex\"\n }\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{baseURL}}/ext/index/X/tx", "host": [ "{{baseURL}}" ], "path": [ "ext", "index", "X", "tx" ] }, "description": "Get container by ID. [More info](https://docs.avax.network/apis/avalanchego/apis/index-api#indexgetcontainerbyid)" }, "response": [] }, { "name": "getContainerByIndex", "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"jsonrpc\":\"2.0\",\n \"id\" :1,\n \"method\" :\"index.getContainerByIndex\",\n \"params\": {\n \"index\":0,\n \"encoding\":\"hex\"\n }\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{baseURL}}/ext/index/X/tx", "host": [ "{{baseURL}}" ], "path": [ "ext", "index", "X", "tx" ] }, "description": "Get container by index. The first container accepted is at index 0, the second is at index 1, etc. [More info](https://docs.avax.network/apis/avalanchego/apis/index-api#indexgetcontainerbyindex)" }, "response": [] }, { "name": "getContainerRange", "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"jsonrpc\":\"2.0\",\n \"id\" :1,\n \"method\" :\"index.getContainerRange\",\n \"params\": {\n \"startIndex\":0,\n \"numtoFetch\":10,\n \"encoding\":\"hex\"\n }\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{baseURL}}/ext/index/X/tx", "host": [ "{{baseURL}}" ], "path": [ "ext", "index", "X", "tx" ] }, "description": "Returns containers with indices in \\[startIndex, startIndex+1, ... , startIndex + numToFetch - 1\\]. numToFetch must be in \\[0,1024\\] [More info](https://docs.avax.network/apis/avalanchego/apis/index-api#indexgetcontainerrange)" }, "response": [] }, { "name": "getIndex", "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"jsonrpc\":\"2.0\",\n \"id\" :1,\n \"method\" :\"index.getIndex\",\n \"params\": {\n \"containerID\":\"2dGz8JSfX17QqW12pARrt2iWNhXdcpXMYPVSYRn9HrReGpMXqQ\",\n \"encoding\":\"hex\"\n }\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{baseURL}}/ext/index/X/tx", "host": [ "{{baseURL}}" ], "path": [ "ext", "index", "X", "tx" ] }, "description": "Get a container's index. [More info](https://docs.avax.network/apis/avalanchego/apis/index-api#indexgetindex)" }, "response": [] }, { "name": "getLastAccepted", "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"jsonrpc\":\"2.0\",\n \"id\" :1,\n \"method\" :\"index.getLastAccepted\",\n \"params\": {\n \"encoding\":\"hex\"\n }\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{baseURL}}/ext/index/X/tx", "host": [ "{{baseURL}}" ], "path": [ "ext", "index", "X", "tx" ] }, "description": "Get the most recently accepted container. [More info](https://docs.avax.network/apis/avalanchego/apis/index-api#indexgetlastaccepted)" }, "response": [] }, { "name": "isAccepted", "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"jsonrpc\":\"2.0\",\n \"id\" :1,\n \"method\" :\"index.isAccepted\",\n \"params\": {\n \"containerID\":\"2dGz8JSfX17QqW12pARrt2iWNhXdcpXMYPVSYRn9HrReGpMXqQ\",\n \"encoding\":\"hex\"\n }\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{baseURL}}/ext/index/X/tx", "host": [ "{{baseURL}}" ], "path": [ "ext", "index", "X", "tx" ] }, "description": "Returns true if the container is in this index. [More info](https://docs.avax.network/apis/avalanchego/apis/index-api#indexisaccepted)" }, "response": [] } ] }, { "name": "X-Chain Vertices", "item": [ { "name": "getContainerByID", "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"jsonrpc\":\"2.0\",\n \"id\" :1,\n \"method\" :\"index.getContainerByID\",\n \"params\": {\n \"containerID\":\"8JeLjRDCojGAZXYNvLDxeU7XhKaTiMzJsSEue7d37kA1n1Htm\",\n \"encoding\":\"hex\"\n }\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{baseURL}}/ext/index/X/vtx", "host": [ "{{baseURL}}" ], "path": [ "ext", "index", "X", "vtx" ] }, "description": "Get container by ID. [More info](https://docs.avax.network/apis/avalanchego/apis/index-api#indexgetcontainerbyid)" }, "response": [] }, { "name": "getContainerByIndex", "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"jsonrpc\":\"2.0\",\n \"id\" :1,\n \"method\" :\"index.getContainerByIndex\",\n \"params\": {\n \"index\":0,\n \"encoding\":\"hex\"\n }\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{baseURL}}/ext/index/X/vtx", "host": [ "{{baseURL}}" ], "path": [ "ext", "index", "X", "vtx" ] }, "description": "Get container by index. The first container accepted is at index 0, the second is at index 1, etc. [More info](https://docs.avax.network/apis/avalanchego/apis/index-api#indexgetcontainerbyindex)" }, "response": [] }, { "name": "getContainerRange", "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"jsonrpc\":\"2.0\",\n \"id\" :1,\n \"method\" :\"index.getContainerRange\",\n \"params\": {\n \"startIndex\":0,\n \"numtoFetch\":10,\n \"encoding\":\"hex\"\n }\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{baseURL}}/ext/index/X/vtx", "host": [ "{{baseURL}}" ], "path": [ "ext", "index", "X", "vtx" ] }, "description": "Returns containers with indices in \\[startIndex, startIndex+1, ... , startIndex + numToFetch - 1\\]. numToFetch must be in \\[0,1024\\] [More info](https://docs.avax.network/apis/avalanchego/apis/index-api#indexgetcontainerrange)" }, "response": [] }, { "name": "getIndex", "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"jsonrpc\":\"2.0\",\n \"id\" :1,\n \"method\" :\"index.getIndex\",\n \"params\": {\n \"containerID\":\"kLBLyNrBr9rjHFBScjvogspz167wrTD47SqbTsLk6YGGnjHwZ\",\n \"encoding\":\"hex\"\n }\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{baseURL}}/ext/index/X/vtx", "host": [ "{{baseURL}}" ], "path": [ "ext", "index", "X", "vtx" ] }, "description": "Get a container's index. [More info](https://docs.avax.network/apis/avalanchego/apis/index-api#indexgetindex)" }, "response": [] }, { "name": "getLastAccepted", "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"jsonrpc\":\"2.0\",\n \"id\" :1,\n \"method\" :\"index.getLastAccepted\",\n \"params\": {\n \"encoding\":\"hex\"\n }\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{baseURL}}/ext/index/X/vtx", "host": [ "{{baseURL}}" ], "path": [ "ext", "index", "X", "vtx" ] }, "description": "Get the most recently accepted container. [More info](https://docs.avax.network/apis/avalanchego/apis/index-api#indexgetlastaccepted)" }, "response": [] }, { "name": "isAccepted", "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"jsonrpc\":\"2.0\",\n \"id\" :1,\n \"method\" :\"index.isAccepted\",\n \"params\": {\n \"containerID\":\"kLBLyNrBr9rjHFBScjvogspz167wrTD47SqbTsLk6YGGnjHwZ\",\n \"encoding\":\"hex\"\n }\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{baseURL}}/ext/index/X/vtx", "host": [ "{{baseURL}}" ], "path": [ "ext", "index", "X", "vtx" ] }, "description": "Returns true if the container is in this index. [More info](https://docs.avax.network/apis/avalanchego/apis/index-api#indexisaccepted)" }, "response": [] } ] }, { "name": "P-Chain Blocks", "item": [ { "name": "getContainerByID", "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"jsonrpc\":\"2.0\",\n \"id\" :1,\n \"method\" :\"index.getContainerByID\",\n \"params\": {\n \"containerID\":\"8JeLjRDCojGAZXYNvLDxeU7XhKaTiMzJsSEue7d37kA1n1Htm\",\n \"encoding\":\"hex\"\n }\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{baseURL}}/ext/index/P/block", "host": [ "{{baseURL}}" ], "path": [ "ext", "index", "P", "block" ] }, "description": "Get container by ID. [More info](https://docs.avax.network/apis/avalanchego/apis/index-api#indexgetcontainerbyid)" }, "response": [] }, { "name": "getContainerByIndex", "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"jsonrpc\":\"2.0\",\n \"id\" :1,\n \"method\" :\"index.getContainerByIndex\",\n \"params\": {\n \"index\":0,\n \"encoding\":\"hex\"\n }\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{baseURL}}/ext/index/P/block", "host": [ "{{baseURL}}" ], "path": [ "ext", "index", "P", "block" ] }, "description": "Get container by index. The first container accepted is at index 0, the second is at index 1, etc. [More info](https://docs.avax.network/apis/avalanchego/apis/index-api#indexgetcontainerbyindex)" }, "response": [] }, { "name": "getContainerRange", "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"jsonrpc\":\"2.0\",\n \"id\" :1,\n \"method\" :\"index.getContainerRange\",\n \"params\": {\n \"startIndex\":0,\n \"numtoFetch\":10,\n \"encoding\":\"hex\"\n }\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{baseURL}}/ext/index/P/block", "host": [ "{{baseURL}}" ], "path": [ "ext", "index", "P", "block" ] }, "description": "Returns containers with indices in \\[startIndex, startIndex+1, ... , startIndex + numToFetch - 1\\]. numToFetch must be in \\[0,1024\\] [More info](https://docs.avax.network/apis/avalanchego/apis/index-api#indexgetcontainerrange)" }, "response": [] }, { "name": "getIndex", "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"jsonrpc\":\"2.0\",\n \"id\" :1,\n \"method\" :\"index.getIndex\",\n \"params\": {\n \"containerID\":\"4AqeFPxtTW4B5D6oR8gRZTvRKnnqkUWiV6mUNZxjUMbQKYWpi\",\n \"encoding\":\"hex\"\n }\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{baseURL}}/ext/index/P/block", "host": [ "{{baseURL}}" ], "path": [ "ext", "index", "P", "block" ] }, "description": "Get a container's index. [More info](https://docs.avax.network/apis/avalanchego/apis/index-api#indexgetindex)" }, "response": [] }, { "name": "getLastAccepted", "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"jsonrpc\":\"2.0\",\n \"id\" :1,\n \"method\" :\"index.getLastAccepted\",\n \"params\": {\n \"encoding\":\"hex\"\n }\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{baseURL}}/ext/index/P/block", "host": [ "{{baseURL}}" ], "path": [ "ext", "index", "P", "block" ] }, "description": "Get the most recently accepted container. [More info](https://docs.avax.network/apis/avalanchego/apis/index-api#indexgetlastaccepted)" }, "response": [] }, { "name": "isAccepted", "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"jsonrpc\":\"2.0\",\n \"id\" :1,\n \"method\" :\"index.isAccepted\",\n \"params\": {\n \"containerID\":\"4AqeFPxtTW4B5D6oR8gRZTvRKnnqkUWiV6mUNZxjUMbQKYWpi\",\n \"encoding\":\"hex\"\n }\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{baseURL}}/ext/index/P/block", "host": [ "{{baseURL}}" ], "path": [ "ext", "index", "P", "block" ] }, "description": "Returns true if the container is in this index. [More info](https://docs.avax.network/apis/avalanchego/apis/index-api#indexisaccepted)" }, "response": [] } ] }, { "name": "C-Chain Blocks", "item": [ { "name": "getContainerByID", "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"jsonrpc\":\"2.0\",\n \"id\" :1,\n \"method\" :\"index.getContainerByID\",\n \"params\": {\n \"containerID\":\"8JeLjRDCojGAZXYNvLDxeU7XhKaTiMzJsSEue7d37kA1n1Htm\",\n \"encoding\":\"hex\"\n }\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{baseURL}}/ext/index/C/block", "host": [ "{{baseURL}}" ], "path": [ "ext", "index", "C", "block" ] }, "description": "Get container by ID. [More info](https://docs.avax.network/apis/avalanchego/apis/index-api#indexgetcontainerbyid)" }, "response": [] }, { "name": "getContainerByIndex", "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"jsonrpc\":\"2.0\",\n \"id\" :1,\n \"method\" :\"index.getContainerByIndex\",\n \"params\": {\n \"index\":0,\n \"encoding\":\"hex\"\n }\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{baseURL}}/ext/index/C/block", "host": [ "{{baseURL}}" ], "path": [ "ext", "index", "C", "block" ] }, "description": "Get container by index. The first container accepted is at index 0, the second is at index 1, etc. [More info](https://docs.avax.network/apis/avalanchego/apis/index-api#indexgetcontainerbyindex)" }, "response": [] }, { "name": "getContainerRange", "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"jsonrpc\":\"2.0\",\n \"id\" :1,\n \"method\" :\"index.getContainerRange\",\n \"params\": {\n \"startIndex\":0,\n \"numtoFetch\":10,\n \"encoding\":\"hex\"\n }\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{baseURL}}/ext/index/C/block", "host": [ "{{baseURL}}" ], "path": [ "ext", "index", "C", "block" ] }, "description": "Returns containers with indices in \\[startIndex, startIndex+1, ... , startIndex + numToFetch - 1\\]. numToFetch must be in \\[0,1024\\] [More info](https://docs.avax.network/apis/avalanchego/apis/index-api#indexgetcontainerrange)" }, "response": [] }, { "name": "getIndex", "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"jsonrpc\":\"2.0\",\n \"id\" :1,\n \"method\" :\"index.getIndex\",\n \"params\": {\n \"containerID\":\"4AqeFPxtTW4B5D6oR8gRZTvRKnnqkUWiV6mUNZxjUMbQKYWpi\",\n \"encoding\":\"hex\"\n }\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{baseURL}}/ext/index/C/block", "host": [ "{{baseURL}}" ], "path": [ "ext", "index", "C", "block" ] }, "description": "Get a container's index. [More info](https://docs.avax.network/apis/avalanchego/apis/index-api#indexgetindex)" }, "response": [] }, { "name": "getLastAccepted", "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"jsonrpc\":\"2.0\",\n \"id\" :1,\n \"method\" :\"index.getLastAccepted\",\n \"params\": {\n \"encoding\":\"hex\"\n }\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{baseURL}}/ext/index/C/block", "host": [ "{{baseURL}}" ], "path": [ "ext", "index", "C", "block" ] }, "description": "Get the most recently accepted container. [More info](https://docs.avax.network/apis/avalanchego/apis/index-api#indexgetlastaccepted)" }, "response": [] }, { "name": "isAccepted", "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"jsonrpc\":\"2.0\",\n \"id\" :1,\n \"method\" :\"index.isAccepted\",\n \"params\": {\n \"containerID\":\"4AqeFPxtTW4B5D6oR8gRZTvRKnnqkUWiV6mUNZxjUMbQKYWpi\",\n \"encoding\":\"hex\"\n }\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{baseURL}}/ext/index/C/block", "host": [ "{{baseURL}}" ], "path": [ "ext", "index", "C", "block" ] }, "description": "Returns true if the container is in this index. [More info](https://docs.avax.network/apis/avalanchego/apis/index-api#indexisaccepted)" }, "response": [] } ] } ], "description": "This API can be used to query data from AvalancheGo's database. The Index API is only available when node is run with --index-enabled option." }, { "name": "Info", "item": [ { "name": "isBootstrapped", "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"jsonrpc\":\"2.0\",\n \"id\" :1,\n \"method\" :\"info.isBootstrapped\",\n \"params\": {\n \"chain\": \"X\"\n }\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{baseURL}}/ext/info", "host": [ "{{baseURL}}" ], "path": [ "ext", "info" ] }, "description": "Check whether a given chain is done bootstrapping. [More info](https://docs.avax.network/apis/avalanchego/apis/info#infoisbootstrapped)" }, "response": [] }, { "name": "getBlockchainID", "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"jsonrpc\":\"2.0\",\n \"id\" :1,\n \"method\" :\"info.getBlockchainID\",\n \"params\": {\n \"alias\":\"X\"\n }\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{baseURL}}/ext/info", "host": [ "{{baseURL}}" ], "path": [ "ext", "info" ] }, "description": "Given a blockchain’s alias, get its ID. [More info](https://docs.avax.network/apis/avalanchego/apis/info#infogetblockchainid)" }, "response": [] }, { "name": "getNetworkID", "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"jsonrpc\":\"2.0\",\n \"id\" :1,\n \"method\" :\"info.getNetworkID\",\n \"params\" :{\n }\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{baseURL}}/ext/info", "host": [ "{{baseURL}}" ], "path": [ "ext", "info" ] }, "description": "Get the ID of the network this node is participating in. [More info](https://docs.avax.network/apis/avalanchego/apis/info#infogetnetworkid)" }, "response": [] }, { "name": "getNetworkName", "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"jsonrpc\":\"2.0\",\n \"id\" :1,\n \"method\" :\"info.getNetworkName\",\n \"params\" :{\n }\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{baseURL}}/ext/info", "host": [ "{{baseURL}}" ], "path": [ "ext", "info" ] }, "description": "Get the name of the network this node is participating in. [More info](https://docs.avax.network/apis/avalanchego/apis/info#infogetnetworkname)" }, "response": [] }, { "name": "getNodeID", "event": [ { "listen": "test", "script": { "exec": [ "var table = `", " ", "", " User Friendly View: ", "
", " ", "
", "
", "", " ", "", " ", "", " ", " ", " ", " ", " ", " ", "
Node ID: {{response.result.nodeID}} The unique identifier of the node that you set to act as a validator on the Primary Network
", "", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", "
Node POP | BLS key and proof of possession. Nodes must register a BLS key to act as a validator on the Primary Network |
Public Key: {{response.result.nodePOP.publicKey}} The 48 byte hex representation of the BLS key
Proof of Possession: {{response.result.nodePOP.proofOfPossession}} The 96 byte hex representation of the BLS signature
", "", " `;", "", "pm.visualizer.set(table, {", " response: pm.response.json(),", "});" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"jsonrpc\":\"2.0\",\n \"id\" :1,\n \"method\" :\"info.getNodeID\",\n \"params\" :{\n }\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{baseURL}}/ext/info", "host": [ "{{baseURL}}" ], "path": [ "ext", "info" ] }, "description": "Get the name of the network this node is participating in. [More info](https://docs.avax.network/apis/avalanchego/apis/info#infogetnodeid)" }, "response": [] }, { "name": "getNodeIP", "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"jsonrpc\":\"2.0\",\n \"id\" :1,\n \"method\" :\"info.getNodeIP\",\n \"params\" :{\n }\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{baseURL}}/ext/info", "host": [ "{{baseURL}}" ], "path": [ "ext", "info" ] }, "description": "Get the IP of this node. [More info](https://docs.avax.network/apis/avalanchego/apis/info#infogetnodeip)" }, "response": [] }, { "name": "getNodeVersion", "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"jsonrpc\":\"2.0\",\n \"id\" :1,\n \"method\" :\"info.getNodeVersion\",\n \"params\" :{\n }\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{baseURL}}/ext/info", "host": [ "{{baseURL}}" ], "path": [ "ext", "info" ] }, "description": "Get the version of this node. [More info](https://docs.avax.network/apis/avalanchego/apis/info#infogetnodeversion)" }, "response": [] }, { "name": "getTxFee", "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"jsonrpc\":\"2.0\",\n \"id\" :1,\n \"method\" :\"info.getTxFee\",\n \"params\": {\n }\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{baseURL}}/ext/info", "host": [ "{{baseURL}}" ], "path": [ "ext", "info" ] }, "description": "Get the transaction fee of the network. [More info](https://docs.avax.network/apis/avalanchego/apis/info#infogettxfee)" }, "response": [] }, { "name": "getVMs", "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"jsonrpc\":\"2.0\",\n \"id\" :1,\n \"method\" :\"info.getVMs\",\n \"params\": {\n }\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{baseURL}}/ext/info", "host": [ "{{baseURL}}" ], "path": [ "ext", "info" ] }, "description": "Get the virtual machines installed on this node. [More info](https://docs.avax.network/apis/avalanchego/apis/info#infogetvms)" }, "response": [] }, { "name": "peers", "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"jsonrpc\":\"2.0\",\n \"id\" :1,\n \"method\" :\"info.peers\",\n \"params\" :{\n \"nodeIDs\": []\n }\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{baseURL}}/ext/info", "host": [ "{{baseURL}}" ], "path": [ "ext", "info" ] }, "description": "Get description of peer connections. [More info](https://docs.avax.network/apis/avalanchego/apis/info#infopeers)" }, "response": [] }, { "name": "uptime", "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"jsonrpc\":\"2.0\",\n \"id\" :1,\n \"method\" :\"info.uptime\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{baseURL}}/ext/info", "host": [ "{{baseURL}}" ], "path": [ "ext", "info" ] }, "description": "Returns the network's observed uptime of this node. [More info](https://docs.avax.network/apis/avalanchego/apis/info#infouptime)" }, "response": [] } ], "description": "This API can be used to access basic information about the node." }, { "name": "IPC", "item": [ { "name": "publishBlockchain - DEPRECATED", "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "//Deprecated as of v1.9.12.\n\n{\n \"jsonrpc\": \"2.0\",\n \"method\": \"ipcs.publishBlockchain\",\n \"params\":{\n \"blockchainID\":\"{{avalanceBlockchainId}}\"\n },\n \"id\": 1\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{baseURL}}/ext/ipcs", "host": [ "{{baseURL}}" ], "path": [ "ext", "ipcs" ] }, "description": "Register a blockchain so it publishes accepted vertices to a Unix domain socket. [More info](https://docs.avax.network/apis/avalanchego/apis/ipc#ipcspublishblockchain)" }, "response": [] }, { "name": "unpublishBlockchain - DEPRECATED", "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "//Deprecated as of v1.9.12.\n\n{\n \"jsonrpc\": \"2.0\",\n \"method\": \"ipcs.unpublishBlockchain\",\n \"params\":{\n \"blockchainID\":\"{{avalanceBlockchainId}}\"\n },\n \"id\": 1\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{baseURL}}/ext/ipcs", "host": [ "{{baseURL}}" ], "path": [ "ext", "ipcs" ] }, "description": "Deregister a blockchain so that it no longer publishes to a Unix domain socket. [More info](https://docs.avax.network/apis/avalanchego/apis/ipc#ipcsunpublishblockchain)" }, "response": [] } ], "description": "The IPC API allows users to create a UNIX domain socket for a blockchain to publish to. When the blockchain accepts a vertex/block it will publish the vertex to the socket.\n\nA node will only expose this API if it is started with command-line argument `api-ipcs-enabled=true`. [More info](https://docs.avax.network/v1.0/en/api/ipc/)" }, { "name": "Keystore", "item": [ { "name": "createUser - DEPRECATED", "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "//Deprecated as of v1.9.12.\n\n{\n \"jsonrpc\":\"2.0\",\n \"id\" :1,\n \"method\" :\"keystore.createUser\",\n \"params\" :{\n \"username\": \"{{avalancheUsername}}\",\n \"password\": \"{{avalanchePassword}}\"\n }\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{baseURL}}/ext/keystore", "host": [ "{{baseURL}}" ], "path": [ "ext", "keystore" ] }, "description": "Create a new user with the specified username and password. [More info](https://docs.avax.network/apis/avalanchego/apis/keystore#keystorecreateuser)" }, "response": [] }, { "name": "deleteUser - DEPRECATED", "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "//Deprecated as of v1.9.12.\n\n{\n \"jsonrpc\":\"2.0\",\n \"id\" :1,\n \"method\" :\"keystore.deleteUser\",\n \"params\" : {\n \"username\": \"{{avalancheUsername}}\",\n \"password\": \"{{avalanchePassword}}\"\n }\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{baseURL}}/ext/keystore", "host": [ "{{baseURL}}" ], "path": [ "ext", "keystore" ] }, "description": "Delete a user. [More info](https://docs.avax.network/apis/avalanchego/apis/keystore#keystoredeleteuser)" }, "response": [] }, { "name": "exportUser - DEPRECATED", "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "//Deprecated as of v1.9.12.\n\n{\n \"jsonrpc\": \"2.0\",\n \"id\": 1,\n \"method\": \"keystore.exportUser\",\n \"params\": {\n \"username\": \"{{avalancheUsername}}\",\n \"password\": \"{{avalanchePassword}}\",\n \"encoding\": \"hex\"\n }\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{baseURL}}/ext/keystore", "host": [ "{{baseURL}}" ], "path": [ "ext", "keystore" ] }, "description": "Export a user. The user can be imported to another node with `keystore.importUser`. The user’s password remains encrypted. [More info](https://docs.avax.network/apis/avalanchego/apis/keystore#keystoreexportuser)" }, "response": [] }, { "name": "importUser - DEPRECATED", "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "//Deprecated as of v1.9.12.\n\n{\n \"jsonrpc\":\"2.0\",\n \"id\" :1,\n \"method\" :\"keystore.importUser\",\n \"params\" :{\n \"username\": \"{{avalancheUsername}}\",\n \"password\": \"{{avalanchePassword}}\",\n \"user\" :\"0x0000b79e54bb3452985874844fd02ce47671725850111b14d5b06d4b3e142ec852b39d1be2bdead684977bc0a1bfa6eeb06e000000040000004066687aadf862bd776c8fc18b8e9f8e20089714856ee233b3902a591d0d5f292500000000000000000000000000000000000000000000000000000000000000000000004c00000000002a92a15386259d71410fe602a9a1e2207a7afae3efd8d86f142577405476e5337a0736ba095b0fe911cb3100000018226dc5aec589008bc87ce142d5488d942f7e9d37374be99f0000003466687aadf862bd776c8fc18b8e9f8e20089714856ee233b3902a591d0d5f29253cb7d3842e8cee6a0ebd09f1fe884f6861e1b29c00000052000000000030b46ad90c1ef2f22282a9ab9c045cf190506148a7afcf4e94360e7e4109ef9abbc4aa97dd84533a5b081c0da489e205f00000001825e30947b222849b4f69b0a1eaf1dd49c82f5b64995d3c4e00000040faa57ee922f01eb75ca224d2e8aaf9cb60973d011e0ac08c7b3798c3aacf79de00000000000000000000000000000000000000000000000000000000000000000000004c00000000002a098545758bbf938acd508762ffff24bd2e8e0f80313fb0957c51fea30df6f304a94568c30dfb06257deb00000018e722d87e7d5964aa8a8772b0985d0723d398681ef29fad7900000034faa57ee922f01eb75ca224d2e8aaf9cb60973d011e0ac08c7b3798c3aacf79de3cb7d3842e8cee6a0ebd09f1fe884f6861e1b29c00000052000000000030722156f457680f16cf010d7cb3b350aaf210ae9ed58aaf89017f0046c5380ddf76fb944a6ff9a287a6a6e6c6303c751a000000183edfb66b8b01e6197507cde7e4909f816d3accf753155f96b346b48c\",\n \"encoding\": \"hex\"\n }\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{baseURL}}/ext/keystore", "host": [ "{{baseURL}}" ], "path": [ "ext", "keystore" ] }, "description": "Import a user. `password` must match the user’s password. `username` doesn’t have to match the username `user` had when it was exported. [More info](https://docs.avax.network/apis/avalanchego/apis/keystore#keystoreimportuser)" }, "response": [] }, { "name": "listUsers - DEPRECATED", "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "//Deprecated as of v1.9.12.\n\n{\n \"jsonrpc\":\"2.0\",\n \"id\" :1,\n \"method\" :\"keystore.listUsers\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{baseURL}}/ext/keystore", "host": [ "{{baseURL}}" ], "path": [ "ext", "keystore" ] }, "description": "List the users in this keystore. [More info](https://docs.avax.network/apis/avalanchego/apis/keystore#keystorelistusers)" }, "response": [] } ], "description": "Every node has a built-in keystore. Clients create users on the keystore, which act as identities to be used when interacting with blockchains. A keystore exists at the node level, so if you create a user on a node it exists only on that node. However, users may be imported and exported using this API. \n\n**You should only create a keystore user on a node that you operate, as the node operator has access to your plaintext password.**\n\n[More info](https://docs.avax.network/v1.0/en/api/keystore)" }, { "name": "Metrics", "item": [ { "name": "metrics", "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{baseURL}}/ext/metrics", "host": [ "{{baseURL}}" ], "path": [ "ext", "metrics" ] }, "description": "To get the node metrics. [More info](https://docs.avax.network/apis/avalanchego/apis/metrics)" }, "response": [] } ], "description": "The API allows clients to get statistics about a node’s health and performance. [More info](https://docs.avax.network/v1.0/en/api/metrics/)" }, { "name": "PlatformVM", "item": [ { "name": "addDelegator - DEPRECATED", "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "//Deprecated as of v1.9.12.\n\n{\n \"jsonrpc\": \"2.0\",\n \"method\": \"platform.addDelegator\",\n \"params\": {\n \"nodeId\":\"{{avalancheNodeId}}\",\n \"startTime\":1613347036,\n \"endTime\":1631215800,\n \"stakeAmount\":200000000000,\n \"rewardAddress\": \"{{pchainAddress}}\",\n \"from\": [\"{{pchainAddress}}\"],\n \"changeAddr\": \"{{pchainAddress}}\",\n \"username\": \"{{avalancheUsername}}\",\n \"password\": \"{{avalanchePassword}}\"\n },\n \"id\": 1\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{baseURL}}/ext/bc/P", "host": [ "{{baseURL}}" ], "path": [ "ext", "bc", "P" ] }, "description": "Add a delegator to the Default Subnet.\n\nA delegator stakes AVAX and specifies a validator (the delegatee) to validate on their behalf. The delegatee has an increased probability of being sampled by other validators (weight) in proportion to the stake delegated to them.\n\nThe delegatee charges a fee to the delegator; the former receives a percentage of the delegator’s validation reward (if any.)\n\nThe delegation period must be a subset of the perdiod that the delegatee validates the Default Subnet. [More info](https://docs.avax.network/apis/avalanchego/apis/p-chain#platformadddelegator)" }, "response": [] }, { "name": "addSubnetValidator - DEPRECATED", "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "//Deprecated as of v1.9.12.\n\n{\n \"jsonrpc\": \"2.0\",\n \"method\": \"platform.addSubnetValidator\",\n \"params\": {\n \"nodeID\":\"{{avalancheNodeId}}\",\n \"subnetID\":\"{{avalancheSubnetId}}\",\n \"startTime\":1625782598,\n \"endTime\":1627078419,\n \"weight\":20,\n \"from\": [\"{{pchainAddress}}\"],\n \"changeAddr\": \"{{pchainAddress}}\",\n \"username\": \"{{avalancheUsername}}\",\n \"password\": \"{{avalanchePassword}}\"\n },\n \"id\": 1\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{baseURL}}/ext/bc/P", "host": [ "{{baseURL}}" ], "path": [ "ext", "bc", "P" ] }, "description": "Add a validator to a Subnet other than the Default Subnet. The validator must validate the Default Subnet for the entire duration they validate this Subnet. [More info](https://docs.avax.network/apis/avalanchego/apis/p-chain#platformaddsubnetvalidator)" }, "response": [] }, { "name": "addValidator - DEPRECATED", "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "//Deprecated as of v1.9.12.\n\n{\n \"jsonrpc\": \"2.0\",\n \"method\": \"platform.addValidator\",\n \"params\": {\n \"nodeID\":\"{{avalancheNodeId}}\",\n \"startTime\":1606245174,\n \"endTime\":1608837056,\n \"stakeAmount\":2000000000000,\n \"rewardAddress\": \"{{pchainAddress}}\",\n \"delegationFeeRate\":10,\n \"from\": [\"{{pchainAddress}}\"],\n \"changeAddr\": \"{{pchainAddress}}\",\n \"username\": \"{{avalancheUsername}}\",\n \"password\": \"{{avalanchePassword}}\"\n },\n \"id\": 1\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{baseURL}}/ext/bc/P", "host": [ "{{baseURL}}" ], "path": [ "ext", "bc", "P" ] }, "description": "Add a validator to the Default Subnet. [More info](https://docs.avax.network/apis/avalanchego/apis/p-chain#platformaddvalidator)" }, "response": [] }, { "name": "createAddress - DEPRECATED", "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "//Deprecated as of v1.9.12.\n\n{\n \"jsonrpc\": \"2.0\",\n \"method\": \"platform.createAddress\",\n \"params\": {\n \"username\": \"{{avalancheUsername}}\",\n \"password\": \"{{avalanchePassword}}\"\n },\n \"id\": 1\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{baseURL}}/ext/bc/P", "host": [ "{{baseURL}}" ], "path": [ "ext", "bc", "P" ] }, "description": "Add a delegator to the Default Subnet.\n\nA delegator stakes AVAX and specifies a validator (the delegatee) to validate on their behalf. The delegatee has an increased probability of being sampled by other validators (weight) in proportion to the stake delegated to them.\n\nThe delegatee charges a fee to the delegator; the former receives a percentage of the delegator’s validation reward (if any.)\n\nThe delegation period must be a subset of the perdiod that the delegatee validates the Default Subnet. [More info](https://docs.avax.network/apis/avalanchego/apis/p-chain#platformcreateaddress)" }, "response": [] }, { "name": "createBlockchain - DEPRECATED", "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "//Deprecated as of v1.9.12.\n\n{\n \"jsonrpc\": \"2.0\",\n \"method\": \"platform.createBlockchain\",\n \"params\" : {\n \"vmID\":\"avm\",\n \"SubnetID\":\"{{avalancheSubnetId}}\",\n \"name\":\"My new avm\",\n \"genesisData\": \"111115LHK2ZCYttSKPmmhsTDSuKiCkmHz65nUS1YqybvjirwGLLt376k1RwnTt72WobPqrG7rmgrKVqSq6VxDsKXYGnRmfhdLCEhsYjM\",\n \"encoding\": \"hex\",\n \"from\": [\"{{pchainAddress}}\"],\n \"changeAddr\": \"{{pchainAddress}}\",\n \"username\": \"{{avalancheUsername}}\",\n \"password\": \"{{avalanchePassword}}\"\n },\n \"id\": 1\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{baseURL}}/ext/bc/P", "host": [ "{{baseURL}}" ], "path": [ "ext", "bc", "P" ] }, "description": "Create a new blockchain. Currently only supports creation of new instances of the AVM and the Timestamp VM. [More info](https://docs.avax.network/apis/avalanchego/apis/p-chain#platformcreateblockchain)" }, "response": [] }, { "name": "createSubnet - DEPRECATED", "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "//Deprecated as of v1.9.12.\n\n{\n \"jsonrpc\": \"2.0\",\n \"method\": \"platform.createSubnet\",\n \"params\": {\n \"controlKeys\":[\n \"{{pchainAddress}}\"\n ],\n \"threshold\":1,\n \"from\": [\"{{pchainAddress}}\"],\n \"changeAddr\":\"{{pchainAddress}}\",\n \"username\": \"{{avalancheUsername}}\",\n \"password\": \"{{avalanchePassword}}\"\n },\n \"id\": 1\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{baseURL}}/ext/bc/P", "host": [ "{{baseURL}}" ], "path": [ "ext", "bc", "P" ] }, "description": "Create an unsigned transaction to create a new Subnet.\n\nThe unsigned transaction must be signed with the key of the account paying the transaction fee.\n\nThe Subnet’s ID is the ID of the transaction that creates it (ie the response from `issueTx` when issuing the signed transaction. [More info](https://docs.avax.network/apis/avalanchego/apis/p-chain#platformcreatesubnet)" }, "response": [] }, { "name": "exportAVAX - DEPRECATED", "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "//Deprecated as of v1.9.12.\n\n{\n \"jsonrpc\": \"2.0\",\n \"method\": \"platform.exportAVAX\",\n \"params\": {\n \"to\":\"{{xchainAddress}}\",\n \"amount\":54321,\n \"from\": [\"{{pchainAddress}}\"],\n \"changeAddr\": \"{{pchainAddress}}\",\n \"username\": \"{{avalancheUsername}}\",\n \"password\": \"{{avalanchePassword}}\"\n },\n \"id\": 1\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{baseURL}}/ext/bc/P", "host": [ "{{baseURL}}" ], "path": [ "ext", "bc", "P" ] }, "description": "Send AVAX from an account on the C-Chain to an address on the X-Chain. \nThis transaction must be signed with the key of the account that the AVAX is sent from and which pays the transaction fee. \nAfter issuing this transaction, you must call the X-Chain’s `importAVA` method to complete the transfer. [More info](https://docs.avax.network/apis/avalanchego/apis/p-chain#platformexportavax)" }, "response": [] }, { "name": "exportKey - DEPRECATED", "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "//Deprecated as of v1.9.12.\n\n{\n \"jsonrpc\":\"2.0\",\n \"id\" :1,\n \"method\" :\"platform.exportKey\",\n \"params\" :{\n \"username\": \"{{avalancheUsername}}\",\n \"password\": \"{{avalanchePassword}}\",\n \"address\": \"{{pchainAddress}}\"\n }\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{baseURL}}/ext/bc/P", "host": [ "{{baseURL}}" ], "path": [ "ext", "bc", "P" ] }, "description": "Get the private key that controls a given address. \nThe returned private key can be added to a user with `platform.importKey`. [More info](https://docs.avax.network/apis/avalanchego/apis/p-chain#platformexportkey)" }, "response": [] }, { "name": "getBalance - DEPRECATED", "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "//Deprecated as of v1.9.12.\n\n{\n \"jsonrpc\":\"2.0\",\n \"id\" :1,\n \"method\" :\"platform.getBalance\",\n \"params\" :{\n \"addresses\":[\"{{pchainAddress}}\"] \n }\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{baseURL}}/ext/bc/P", "host": [ "{{baseURL}}" ], "path": [ "ext", "bc", "P" ] }, "description": "Get the balance of an asset controlled by a given address. [More info](https://docs.avax.network/apis/avalanchego/apis/p-chain#platformgetbalance)" }, "response": [] }, { "name": "getBlock", "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"jsonrpc\": \"2.0\",\n \"method\": \"platform.getBlock\",\n \"params\": {\n \"blockID\": \"{{blockID}}\",\n \"encoding\": \"hex\"\n },\n \"id\": 1\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{baseURL}}/ext/bc/P", "host": [ "{{baseURL}}" ], "path": [ "ext", "bc", "P" ] }, "description": "Get a block by its ID. [More info](https://docs.avax.network/apis/avalanchego/apis/p-chain#platformgetblock)" }, "response": [] }, { "name": "getBlockByHeight", "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"jsonrpc\":\"2.0\",\n \"id\" :1,\n \"method\" :\"platform.getBlockByHeight\",\n \"params\" :{\n \"height\": 7768381,\n \"encoding\": \"json\"\n }\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{baseURL}}/ext/bc/P", "host": [ "{{baseURL}}" ], "path": [ "ext", "bc", "P" ] }, "description": "Get a block by its ID. [More info](https://docs.avax.network/apis/avalanchego/apis/p-chain#platformgetblock)" }, "response": [] }, { "name": "getBlockchains - DEPRECATED", "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "//Deprecated as of v1.9.12.\n\n{\n \"jsonrpc\": \"2.0\",\n \"method\": \"platform.getBlockchains\",\n \"params\": {},\n \"id\": 1\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{baseURL}}/ext/bc/P", "host": [ "{{baseURL}}" ], "path": [ "ext", "bc", "P" ] }, "description": "Get all the blockchains that exist (excluding the P-Chain). [More info](https://docs.avax.network/apis/avalanchego/apis/p-chain#platformgetblockchains)" }, "response": [] }, { "name": "getBlockchainStatus", "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"jsonrpc\": \"2.0\",\n \"method\": \"platform.getBlockchainStatus\",\n \"params\":{\n \"blockchainID\":\"{{avalanceBlockchainId}}\"\n },\n \"id\": 1\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{baseURL}}/ext/bc/P", "host": [ "{{baseURL}}" ], "path": [ "ext", "bc", "P" ] }, "description": "Get the status of a blockchain. [More info](https://docs.avax.network/apis/avalanchego/apis/p-chain#platformgetblockchainstatus)" }, "response": [] }, { "name": "getCurrentSupply", "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"jsonrpc\":\"2.0\",\n \"id\" :1,\n \"method\" :\"platform.getCurrentSupply\",\n \"params\": {\n \"subnetID\": \"{{avalancheSubnetId}}\"\n }\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{baseURL}}/ext/bc/P", "host": [ "{{baseURL}}" ], "path": [ "ext", "bc", "P" ] }, "description": "Returns an upper bound on the number of AVAX that exist. This is an upper bound because it does not account for burnt tokens, including transaction fees. [More info](https://docs.avax.network/apis/avalanchego/apis/p-chain#platformgetcurrentsupply)" }, "response": [] }, { "name": "getCurrentValidators", "event": [ { "listen": "test", "script": { "exec": [ "var table = `", " ", "", "
", "

Loading. Please wait.

", " ", "", " ", "", " ", "", " ", " ", " ", " ", " ", " ", " ", "", " {{#each response.result.validators}}", " ", " ", " ", " ", " ", " ", " ", "", " ", " ", " ", " ", "", " ", " ", " ", " ", "", " ", " ", " ", " ", " ", " ", " ", " ", " ", "", " ", " ", " ", " ", "", " ", " ", " ", " ", "", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", "", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", "", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", "", " ", " ", " ", " ", " ", " ", " ", "", " ", " ", " ", "", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", "", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", "", " ", " ", " ", " ", "", " ", " ", " ", " ", "", " ", " ", " ", " ", "", " ", " ", " ", " ", "", " ", " ", " ", " ", "", " ", " ", " ", " ", "", " ", " ", " ", " ", " ", " {{/each}}", "", "
Validators:
Transaction ID: {{txID}}
Start time: {{startTime}}
End time: {{endTime}}
Weight: {{weight}}
Node ID: {{nodeID}}
Stake amount: {{stakeAmount}}
Reward owner:
Locktime: {{rewardOwner.locktime}}
Threshold: {{rewardOwner.threshold}}
Addresses: {{rewardOwner.addresses}}
Validation reward owner:
Locktime: {{validationRewardOwner.locktime}}
Threshold: {{validationRewardOwner.threshold}}
Addresses: {{validationRewardOwner.addresses}}
Delegation reward owner:
Locktime: {{delegationRewardOwner.locktime}}
Threshold: {{delegationRewardOwner.threshold}}
Addresses: {{delegationRewardOwner.addresses}}
Potential reward: {{potentialReward}}
Accrued delegatee reward: {{accruedDelegateeReward}}
Delegation fee: {{delegationFee}}%
Uptime: {{uptime}}%
Connected: {{connected}}
Delegator count: {{delegatorCount}}
Delegator weight: {{delegatorWeight}}
", " `;", "", "pm.visualizer.set(table, {", " response: pm.response.json(),", "});" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"jsonrpc\": \"2.0\",\n \"method\": \"platform.getCurrentValidators\",\n \"params\": {\n \"subnetID\":null,\n \"nodeIDs\":[]\n },\n \"id\": 1\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{baseURL}}/ext/bc/P", "host": [ "{{baseURL}}" ], "path": [ "ext", "bc", "P" ] }, "description": "List the current validators of the given Subnet. [More info](https://docs.avax.network/apis/avalanchego/apis/p-chain#platformgetcurrentvalidators)" }, "response": [] }, { "name": "getHeight", "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"jsonrpc\":\"2.0\",\n \"id\" :1,\n \"method\" :\"platform.getHeight\",\n \"params\": {}\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{baseURL}}/ext/bc/P", "host": [ "{{baseURL}}" ], "path": [ "ext", "bc", "P" ] }, "description": "Returns the height of the last accepted block [More info](https://docs.avax.network/apis/avalanchego/apis/p-chain#platformgetheight)" }, "response": [] }, { "name": "getMaxStakeAmount - DEPRECATED", "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "//Deprecated as of v1.9.12.\n\n{\n \"jsonrpc\": \"2.0\",\n \"method\": \"platform.getMaxStakeAmount\",\n \"params\": {\n \"subnetID\":\"\",\n \"nodeID\":\"\",\n \"startTime\": 123,\n \"endTime\": 321\n },\n \"id\": 1\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{baseURL}}/ext/bc/P", "host": [ "{{baseURL}}" ], "path": [ "ext", "bc", "P" ] }, "description": "List the current validators of the given Subnet. [More info](https://docs.avax.network/apis/avalanchego/apis/p-chain#platformgetmaxstakeamount)" }, "response": [] }, { "name": "getMinStake", "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"jsonrpc\":\"2.0\",\n \"id\" :1,\n \"method\" :\"platform.getMinStake\",\n \"params\": {\n \"subnetID\": \"{{avalancheSubnetId}}\"\n }\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{baseURL}}/ext/bc/P", "host": [ "{{baseURL}}" ], "path": [ "ext", "bc", "P" ] }, "description": "Returns the minimum stake amount [More info](https://docs.avax.network/apis/avalanchego/apis/p-chain#platformgetminstake)" }, "response": [] }, { "name": "getPendingValidators", "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"jsonrpc\": \"2.0\",\n \"method\": \"platform.getPendingValidators\",\n \"params\": {\n \"subnetID\": null,\n \"nodeIDs\": []\n },\n \"id\": 1\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{baseURL}}/ext/bc/P", "host": [ "{{baseURL}}" ], "path": [ "ext", "bc", "P" ] }, "description": "List the validators in the pending validator set of the specified Subnet. Each validator is not currently validating the Subnet but will in the future. [More info](https://docs.avax.network/apis/avalanchego/apis/p-chain#platformgetpendingvalidators)" }, "response": [] }, { "name": "getRewardUTXOs - DEPRECATED", "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "//Deprecated as of v1.9.12.\n\n{\n \"jsonrpc\":\"2.0\",\n \"id\" :1,\n \"method\" :\"platform.getRewardUTXOs\",\n \"params\" :{\n \"txID\":\"2nmH8LithVbdjaXsxVQCQfXtzN9hBbmebrsaEYnLM9T32Uy2Y4\",\n \"encoding\": \"hex\"\n }\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{baseURL}}/ext/bc/P", "host": [ "{{baseURL}}" ], "path": [ "ext", "bc", "P" ] }, "description": "Returns the UTXOs that were rewarded after the provided transaction's staking or delegation period ended. [More info](https://docs.avax.network/apis/avalanchego/apis/p-chain#platformgetrewardutxos)" }, "response": [] }, { "name": "getStake - DEPRECATED", "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "//Deprecated as of v1.9.12.\n\n{\n \"jsonrpc\":\"2.0\",\n \"id\" :1,\n \"method\" :\"platform.getStake\",\n \"params\": {\n \"addresses\": [\"{{pchainAddress}}\"],\n \"encoding\": \"hex\"\n }\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{baseURL}}/ext/bc/P", "host": [ "{{baseURL}}" ], "path": [ "ext", "bc", "P" ] }, "description": "Returns the staked amount for an array of addresses [More info](https://docs.avax.network/apis/avalanchego/apis/p-chain#platformgetstake)" }, "response": [] }, { "name": "getStakingAssetID", "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"jsonrpc\":\"2.0\",\n \"id\" :1,\n \"method\" :\"platform.getStakingAssetID\",\n \"params\": {\n \"subnetID\": \"{{avalancheSubnetId}}\"\n }\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{baseURL}}/ext/bc/P", "host": [ "{{baseURL}}" ], "path": [ "ext", "bc", "P" ] }, "description": "Retrieve an assetID for a subnet’s staking asset. Currently this always returns the Primary Network’s staking assetID. [More info](https://docs.avax.network/apis/avalanchego/apis/p-chain#platformgetstakingassetid)" }, "response": [] }, { "name": "getSubnets - DEPRECATED", "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "//Deprecated as of v1.9.12.\n\n{\n \"jsonrpc\": \"2.0\",\n \"method\": \"platform.getSubnets\",\n \"params\": {\n \"ids\": [\"{{avalancheSubnetId}}\"]\n },\n \"id\": 1\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{baseURL}}/ext/bc/P", "host": [ "{{baseURL}}" ], "path": [ "ext", "bc", "P" ] }, "description": "Get all the Subnets that exist. [More info](https://docs.avax.network/apis/avalanchego/apis/p-chain#platformgetsubnets)" }, "response": [] }, { "name": "getTimestamp", "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"jsonrpc\":\"2.0\",\n \"id\" :1,\n \"method\" :\"platform.getTimestamp\",\n \"params\" :{}\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{baseURL}}/ext/bc/P", "host": [ "{{baseURL}}" ], "path": [ "ext", "bc", "P" ] }, "description": "Returns the specified transaction [More info](https://docs.avax.network/apis/avalanchego/apis/p-chain#platformgettimestamp)" }, "response": [] }, { "name": "getTotalStake", "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"jsonrpc\":\"2.0\",\n \"id\" :1,\n \"method\" :\"platform.getTotalStake\",\n \"params\": {\n \"subnetID\": \"{{avalancheSubnetId}}\"\n }\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{baseURL}}/ext/bc/P", "host": [ "{{baseURL}}" ], "path": [ "ext", "bc", "P" ] }, "description": "Get the total amount of nAVAX staked on the Primary Network. [More info](https://docs.avax.network/apis/avalanchego/apis/p-chain#platformgettotalstake)" }, "response": [] }, { "name": "getTx", "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"jsonrpc\":\"2.0\",\n \"id\" :1,\n \"method\" :\"platform.getTx\",\n \"params\" :{\n \"txID\":\"Cy7cZUot6DCUUDz1VuA2C7vFVWSzW3DgLhYXUAiLWH8BKafbH\",\n \"encoding\": \"hex\"\n }\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{baseURL}}/ext/bc/P", "host": [ "{{baseURL}}" ], "path": [ "ext", "bc", "P" ] }, "description": "Returns the specified transaction [More info](https://docs.avax.network/apis/avalanchego/apis/p-chain#platformgettx)" }, "response": [] }, { "name": "getTxStatus", "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"jsonrpc\":\"2.0\",\n \"id\" :1,\n \"method\" :\"platform.getTxStatus\",\n \"params\" :{\n \"txID\":\"2C3AVShejyq6mLhEXvEGCnpaQi8tRwudBhSbT34hFiytffEFoe\"\n }\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{baseURL}}/ext/bc/P", "host": [ "{{baseURL}}" ], "path": [ "ext", "bc", "P" ] }, "description": "Returns the specified transaction [More info](https://docs.avax.network/apis/avalanchego/apis/p-chain#platformgettxstatus)" }, "response": [] }, { "name": "getUTXOs", "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"jsonrpc\":\"2.0\",\n \"id\" :1,\n \"method\" :\"platform.getUTXOs\",\n \"params\" :{\n \"addresses\":[\"{{pchainAddress}}\"],\n \"sourceChain\": \"P\",\n \"limit\": 5,\n \"encoding\": \"hex\",\n \"startIndex\": {\n \"address\": \"{{pchainAddress}}\",\n \"utxo\": \"LUC1cmcxnfNR9LdkACS2ccGKLEK7SYqB4gLLTycQfg1koyfSq\"\n }\n }\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{baseURL}}/ext/bc/P", "host": [ "{{baseURL}}" ], "path": [ "ext", "bc", "P" ] }, "description": "Get the UTXOs that reference a given address. [More info](https://docs.avax.network/apis/avalanchego/apis/p-chain#platformgetutxos)" }, "response": [] }, { "name": "getValidatorsAt", "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"jsonrpc\":\"2.0\",\n \"id\" :1,\n \"method\" :\"platform.getValidatorsAt\",\n \"params\" :{\n \"height\": 0,\n \"subnetID\": \"{{avalancheSubnetId}}\"\n }\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{baseURL}}/ext/bc/P", "host": [ "{{baseURL}}" ], "path": [ "ext", "bc", "P" ] }, "description": "Get the validators and their weights of a subnet or the Primary Network at a given P-Chain height. [More info](https://docs.avax.network/apis/avalanchego/apis/p-chain#platformgetvalidatorsat)" }, "response": [] }, { "name": "importAVAX - DEPRECATED", "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "//Deprecated as of v1.9.12.\n\n{\n \"jsonrpc\": \"2.0\",\n \"method\": \"platform.importAVAX\",\n \"params\": {\n \"username\":\"{{avalancheUsername}}\",\n \"password\":\"{{avalanchePassword}}\",\n \"sourceChain\": \"X\",\n \"to\":\"{{pchainAddress}}\",\n \"from\": [\"{{pchainAddress}}\"],\n \"changeAddr\": \"{{pchainAddress}}\"\n },\n \"id\": 1\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{baseURL}}/ext/bc/P", "host": [ "{{baseURL}}" ], "path": [ "ext", "bc", "P" ] }, "description": "Complete a transfer of AVAX from the X-Chain to the C-Chain.\n\nBefore this method is called, you must call the X-Chain’s `exportAVAX` method to initiate the transfer. [More Info](https://docs.avax.network/apis/avalanchego/apis/p-chain#platformimportavax)" }, "response": [] }, { "name": "importKey - DEPRECATED", "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "//Deprecated as of v1.9.12.\n\n{\n \"jsonrpc\":\"2.0\",\n \"id\" :1,\n \"method\" :\"platform.importKey\",\n \"params\" :{\n \"username\":\"{{avalancheUsername}}\",\n \"password\":\"{{avalanchePassword}}\",\n \"privateKey\":\"{{privkey}}\"\n }\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{baseURL}}/ext/bc/P", "host": [ "{{baseURL}}" ], "path": [ "ext", "bc", "P" ] }, "description": "Give a user control over an address by providing the private key that controls the address. [More info](https://docs.avax.network/apis/avalanchego/apis/p-chain#platformimportkey)" }, "response": [] }, { "name": "issueTx", "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"jsonrpc\": \"2.0\",\n \"method\": \"platform.issueTx\",\n \"params\": {\n \"tx\":\"0x00\",\n \"encoding\": \"hex\"\n },\n \"id\": 1\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{baseURL}}/ext/bc/P", "host": [ "{{baseURL}}" ], "path": [ "ext", "bc", "P" ] }, "description": "Issue a transaction to the Platform Chain. [More info](https://docs.avax.network/apis/avalanchego/apis/p-chain#platformissuetx)" }, "response": [] }, { "name": "listAddresses - DEPRECATED", "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "//Deprecated as of v1.9.12.\n\n\n \"jsonrpc\": \"2.0\",\n \"method\": \"platform.listAddresses\",\n \"params\": {\n \"username\": \"{{avalancheUsername}}\",\n \"password\": \"{{avalanchePassword}}\"\n },\n \"id\": 1\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{baseURL}}/ext/bc/P", "host": [ "{{baseURL}}" ], "path": [ "ext", "bc", "P" ] }, "description": "List the addresses controlled by the given user. [More info](https://docs.avax.network/apis/avalanchego/apis/p-chain#platformlistaddresses)" }, "response": [] }, { "name": "sampleValidators", "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"jsonrpc\":\"2.0\",\n \"id\" :1,\n \"method\" :\"platform.sampleValidators\",\n \"params\" :{\n \"size\":2\n }\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{baseURL}}/ext/bc/P", "host": [ "{{baseURL}}" ], "path": [ "ext", "bc", "P" ] }, "description": "Sample validators from the specified Subnet. [More info](https://docs.avax.network/apis/avalanchego/apis/p-chain#platformsamplevalidators)" }, "response": [] }, { "name": "validatedBy", "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"jsonrpc\": \"2.0\",\n \"method\": \"platform.validatedBy\",\n \"params\": {\n \"blockchainID\": \"{{avalanceBlockchainId}}\"\n },\n \"id\": 1\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{baseURL}}/ext/bc/P", "host": [ "{{baseURL}}" ], "path": [ "ext", "bc", "P" ] }, "description": "Get the Subnet that validates a given blockchain. [More info](https://docs.avax.network/apis/avalanchego/apis/p-chain#platformvalidatedby)" }, "response": [] }, { "name": "validates", "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"jsonrpc\": \"2.0\",\n \"method\": \"platform.validates\",\n \"params\": {\n \"subnetID\":\"{{avalancheSubnetId}}\"\n },\n \"id\": 1\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{baseURL}}/ext/bc/P", "host": [ "{{baseURL}}" ], "path": [ "ext", "bc", "P" ] }, "description": "Get the IDs of the blockchains a Subnet validates. [More info](https://docs.avax.network/apis/avalanchego/apis/p-chain#platformvalidates)" }, "response": [] } ], "description": "This API allows clients to interact with the P-Chain (Platform Chain), which maintains Avalanche’s validator set and handles blockchain creation. [More info](https://docs.avax.network/v1.0/en/api/platform)" } ] }