Skip to content

Instantly share code, notes, and snippets.

@KardanovIR
Created January 29, 2020 13:02
Show Gist options
  • Save KardanovIR/6929b99d4165b8429c317dc5f08a7553 to your computer and use it in GitHub Desktop.
Save KardanovIR/6929b99d4165b8429c317dc5f08a7553 to your computer and use it in GitHub Desktop.
{
"swagger" : "2.0",
"info" : {
"description" : "<script>alert(document.cookie)</script>",
"version" : "1.1.7",
"title" : "Waves Full Node",
"termsOfService" : "License: MIT License",
"license" : {
"name" : "MIT License",
"url" : "https://github.com/wavesplatform/Waves/blob/master/LICENSE"
}
},
"basePath" : "/",
"tags" : [ {
"name" : "addresses"
}, {
"name" : "blocks"
}, {
"name" : "peers"
}, {
"name" : "rewards"
}, {
"name" : "transactions"
}, {
"name" : "utils"
}, {
"name" : "wallet"
}, {
"name" : "alias"
}, {
"name" : "assets"
}, {
"name" : "leasing"
}, {
"name" : "consensus"
}, {
"name" : "activation"
}, {
"name" : "debug"
}, {
"name" : "node"
} ],
"schemes" : [ "http", "https" ],
"paths" : {
"/addresses/balance/{address}/{confirmations}" : {
"get" : {
"tags" : [ "addresses" ],
"summary" : "Confirmed balance",
"description" : "Balance of {address} after {confirmations}",
"operationId" : "balanceWithConfirmations",
"parameters" : [ {
"name" : "address",
"in" : "path",
"description" : "Address",
"required" : true,
"type" : "string"
}, {
"name" : "confirmations",
"in" : "path",
"description" : "0",
"required" : true,
"type" : "integer"
} ],
"responses" : {
"200" : {
"description" : "successful operation",
"schema" : {
"$ref" : "#/definitions/Function1RequestContextFutureRouteResult"
}
}
}
}
},
"/addresses/scriptInfo/{address}/meta" : {
"get" : {
"tags" : [ "addresses" ],
"summary" : "Meta by address",
"description" : "Account's script meta",
"operationId" : "scriptMeta",
"parameters" : [ {
"name" : "address",
"in" : "path",
"description" : "Address",
"required" : true,
"type" : "string"
} ],
"responses" : {
"200" : {
"description" : "successful operation",
"schema" : {
"$ref" : "#/definitions/Function1RequestContextFutureRouteResult"
}
}
}
}
},
"/addresses/verifyText/{address}" : {
"post" : {
"tags" : [ "addresses" ],
"summary" : "Verify text",
"description" : "Check a signature of a message signed by an account",
"operationId" : "verifyText",
"parameters" : [ {
"name" : "address",
"in" : "path",
"description" : "Address",
"required" : true,
"type" : "string"
}, {
"in" : "body",
"name" : "body",
"description" : "Json with data",
"required" : true,
"schema" : {
"$ref" : "#/definitions/SignedMessage"
}
} ],
"responses" : {
"200" : {
"description" : "successful operation",
"schema" : {
"$ref" : "#/definitions/Function1RequestContextFutureRouteResult"
}
}
}
}
},
"/addresses/balance/details/{address}" : {
"get" : {
"tags" : [ "addresses" ],
"summary" : "Details for balance",
"description" : "Account's balances",
"operationId" : "balanceDetails",
"parameters" : [ {
"name" : "address",
"in" : "path",
"description" : "Address",
"required" : true,
"type" : "string"
} ],
"responses" : {
"200" : {
"description" : "successful operation",
"schema" : {
"$ref" : "#/definitions/Function1RequestContextFutureRouteResult"
}
}
}
}
},
"/addresses/effectiveBalance/{address}/{confirmations}" : {
"get" : {
"tags" : [ "addresses" ],
"summary" : "Confirmed balance",
"description" : "Balance of {address} after {confirmations}",
"operationId" : "effectiveBalanceWithConfirmations",
"parameters" : [ {
"name" : "address",
"in" : "path",
"description" : "Address",
"required" : true,
"type" : "string"
}, {
"name" : "confirmations",
"in" : "path",
"description" : "0",
"required" : true,
"type" : "integer"
} ],
"responses" : {
"200" : {
"description" : "successful operation",
"schema" : {
"$ref" : "#/definitions/Function1RequestContextFutureRouteResult"
}
}
}
}
},
"/addresses/data/{address}/{key}" : {
"get" : {
"tags" : [ "addresses" ],
"summary" : "Data by Key",
"description" : "Read data associated with an account and a key",
"operationId" : "getDataItem",
"parameters" : [ {
"name" : "address",
"in" : "path",
"description" : "Address",
"required" : true,
"type" : "string"
}, {
"name" : "key",
"in" : "path",
"description" : "Data key",
"required" : true,
"type" : "string"
} ],
"responses" : {
"200" : {
"description" : "successful operation",
"schema" : {
"$ref" : "#/definitions/Function1RequestContextFutureRouteResult"
}
}
}
}
},
"/addresses/scriptInfo/{address}" : {
"get" : {
"tags" : [ "addresses" ],
"summary" : "Details for account",
"description" : "Account's script",
"operationId" : "scriptInfo",
"parameters" : [ {
"name" : "address",
"in" : "path",
"description" : "Address",
"required" : true,
"type" : "string"
} ],
"responses" : {
"200" : {
"description" : "successful operation",
"schema" : {
"$ref" : "#/definitions/Function1RequestContextFutureRouteResult"
}
}
}
}
},
"/addresses/{address}" : {
"delete" : {
"tags" : [ "addresses" ],
"summary" : "Delete",
"description" : "Remove the account with address {address} from the wallet",
"operationId" : "deleteAddress",
"parameters" : [ {
"name" : "address",
"in" : "path",
"description" : "Address",
"required" : true,
"type" : "string"
} ],
"responses" : {
"200" : {
"description" : "successful operation",
"schema" : {
"$ref" : "#/definitions/Function1RequestContextFutureRouteResult"
}
}
}
}
},
"/addresses/signText/{address}" : {
"post" : {
"tags" : [ "addresses" ],
"summary" : "Sign",
"description" : "Sign a message with a private key associated with {address}",
"operationId" : "signText",
"parameters" : [ {
"in" : "body",
"name" : "message",
"description" : "Message to sign as a plain string",
"required" : true,
"schema" : {
"type" : "string"
}
}, {
"name" : "address",
"in" : "path",
"description" : "Address",
"required" : true,
"type" : "string"
} ],
"responses" : {
"200" : {
"description" : "Json with error or json like {\"message\": \"plain text\",\"publickey\": \"Base58-encoded\", \"signature\": \"Base58-encoded\"}"
}
}
}
},
"/addresses/validate/{address}" : {
"get" : {
"tags" : [ "addresses" ],
"summary" : "Validate",
"description" : "Check whether address {address} is valid or not",
"operationId" : "validate_2",
"parameters" : [ {
"name" : "address",
"in" : "path",
"description" : "Address",
"required" : true,
"type" : "string"
} ],
"responses" : {
"200" : {
"description" : "successful operation",
"schema" : {
"$ref" : "#/definitions/Function1RequestContextFutureRouteResult"
}
}
}
}
},
"/addresses/seed/{address}" : {
"get" : {
"tags" : [ "addresses" ],
"summary" : "Seed",
"description" : "Export seed value for the {address}",
"operationId" : "seed_2",
"parameters" : [ {
"name" : "address",
"in" : "path",
"description" : "Address",
"required" : true,
"type" : "string"
} ],
"responses" : {
"200" : {
"description" : "successful operation",
"schema" : {
"$ref" : "#/definitions/Function1RequestContextFutureRouteResult"
}
}
}
}
},
"/addresses/seq/{from}/{to}" : {
"get" : {
"tags" : [ "addresses" ],
"summary" : "Seq",
"description" : "Get wallet accounts addresses",
"operationId" : "seq_2",
"parameters" : [ {
"name" : "from",
"in" : "path",
"description" : "Start address",
"required" : true,
"type" : "integer"
}, {
"name" : "to",
"in" : "path",
"description" : "address",
"required" : true,
"type" : "integer"
} ],
"responses" : {
"200" : {
"description" : "successful operation",
"schema" : {
"$ref" : "#/definitions/Function1RequestContextFutureRouteResult"
}
}
}
}
},
"/addresses/effectiveBalance/{address}" : {
"get" : {
"tags" : [ "addresses" ],
"summary" : "Balance",
"description" : "Account's balance",
"operationId" : "effectiveBalance",
"parameters" : [ {
"name" : "address",
"in" : "path",
"description" : "Address",
"required" : true,
"type" : "string"
} ],
"responses" : {
"200" : {
"description" : "successful operation",
"schema" : {
"$ref" : "#/definitions/Function1RequestContextFutureRouteResult"
}
}
}
}
},
"/addresses/balance/{address}" : {
"get" : {
"tags" : [ "addresses" ],
"summary" : "Balance",
"description" : "Account's balance",
"operationId" : "balance_2",
"parameters" : [ {
"name" : "address",
"in" : "path",
"description" : "Address",
"required" : true,
"type" : "string"
} ],
"responses" : {
"200" : {
"description" : "successful operation",
"schema" : {
"$ref" : "#/definitions/Function1RequestContextFutureRouteResult"
}
}
}
}
},
"/addresses/publicKey/{publicKey}" : {
"get" : {
"tags" : [ "addresses" ],
"summary" : "Address from Public Key",
"description" : "Generate a address from public key",
"operationId" : "publicKey",
"parameters" : [ {
"name" : "publicKey",
"in" : "path",
"description" : "Public key Base58-encoded",
"required" : true,
"type" : "string"
} ],
"responses" : {
"200" : {
"description" : "successful operation",
"schema" : {
"$ref" : "#/definitions/Function1RequestContextFutureRouteResult"
}
}
}
}
},
"/addresses/sign/{address}" : {
"post" : {
"tags" : [ "addresses" ],
"summary" : "Sign",
"description" : "Sign a message with a private key associated with {address}",
"operationId" : "sign_2",
"parameters" : [ {
"in" : "body",
"name" : "message",
"description" : "Message to sign as a plain string",
"required" : true,
"schema" : {
"type" : "string"
}
}, {
"name" : "address",
"in" : "path",
"description" : "Address",
"required" : true,
"type" : "string"
} ],
"responses" : {
"200" : {
"description" : "Json with error or json like {\"message\": \"Base58-encoded\",\"publickey\": \"Base58-encoded\", \"signature\": \"Base58-encoded\"}"
}
}
}
},
"/addresses/data/{address}" : {
"get" : {
"tags" : [ "addresses" ],
"summary" : "Complete Data",
"description" : "Read all data posted by an account",
"operationId" : "getData",
"parameters" : [ {
"name" : "address",
"in" : "path",
"description" : "Address",
"required" : true,
"type" : "string"
}, {
"name" : "matches",
"in" : "query",
"description" : "URL encoded (percent-encoded) regular expression to filter keys (https://www.tutorialspoint.com/scala/scala_regular_expressions.htm)",
"required" : false,
"type" : "string"
}, {
"name" : "key",
"in" : "query",
"description" : "Exact keys to query",
"required" : false,
"type" : "array",
"items" : {
"type" : "string"
},
"collectionFormat" : "multi"
} ],
"responses" : {
"200" : {
"description" : "successful operation",
"schema" : {
"$ref" : "#/definitions/Function1RequestContextFutureRouteResult"
}
}
}
}
},
"/addresses" : {
"get" : {
"tags" : [ "addresses" ],
"summary" : "Addresses",
"description" : "Get wallet accounts addresses",
"operationId" : "root",
"parameters" : [ ],
"responses" : {
"200" : {
"description" : "successful operation",
"schema" : {
"$ref" : "#/definitions/Function1RequestContextFutureRouteResult"
}
}
}
},
"post" : {
"tags" : [ "addresses" ],
"summary" : "Create",
"description" : "Create a new account in the wallet(if it exists)",
"operationId" : "create",
"parameters" : [ ],
"responses" : {
"200" : {
"description" : "successful operation",
"schema" : {
"$ref" : "#/definitions/Function1RequestContextFutureRouteResult"
}
}
}
}
},
"/addresses/verify/{address}" : {
"post" : {
"tags" : [ "addresses" ],
"summary" : "Verify",
"description" : "Check a signature of a message signed by an account",
"operationId" : "verify",
"parameters" : [ {
"name" : "address",
"in" : "path",
"description" : "Address",
"required" : true,
"type" : "string"
}, {
"in" : "body",
"name" : "body",
"description" : "Json with data",
"required" : true,
"schema" : {
"$ref" : "#/definitions/SignedMessage"
}
} ],
"responses" : {
"200" : {
"description" : "successful operation",
"schema" : {
"$ref" : "#/definitions/Function1RequestContextFutureRouteResult"
}
}
}
}
},
"/blocks/last" : {
"get" : {
"tags" : [ "blocks" ],
"summary" : "Last block",
"description" : "Get last block",
"operationId" : "last",
"parameters" : [ ],
"responses" : {
"200" : {
"description" : "successful operation",
"schema" : {
"$ref" : "#/definitions/Function1RequestContextFutureRouteResult"
}
}
}
}
},
"/blocks/delay/{signature}/{blockNum}" : {
"get" : {
"tags" : [ "blocks" ],
"summary" : "Average block delay",
"description" : "Average delay in milliseconds between last `blockNum` blocks starting from block with `signature`",
"operationId" : "delay",
"parameters" : [ {
"name" : "signature",
"in" : "path",
"description" : "Base58-encoded block signature",
"required" : true,
"type" : "string"
}, {
"name" : "blockNum",
"in" : "path",
"description" : "Number of blocks to count delay",
"required" : true,
"type" : "string"
} ],
"responses" : {
"200" : {
"description" : "successful operation",
"schema" : {
"$ref" : "#/definitions/Function1RequestContextFutureRouteResult"
}
}
}
}
},
"/blocks/height/{signature}" : {
"get" : {
"tags" : [ "blocks" ],
"summary" : "Block height",
"description" : "Height of a block by its signature",
"operationId" : "heightEncoded",
"parameters" : [ {
"name" : "signature",
"in" : "path",
"description" : "Base58-encoded block signature",
"required" : true,
"type" : "string"
} ],
"responses" : {
"200" : {
"description" : "successful operation",
"schema" : {
"$ref" : "#/definitions/Function1RequestContextFutureRouteResult"
}
}
}
}
},
"/blocks/headers/at/{height}" : {
"get" : {
"tags" : [ "blocks" ],
"summary" : "Block header at height",
"description" : "Get block header at specified height",
"operationId" : "atHeaderOnly",
"parameters" : [ {
"name" : "height",
"in" : "path",
"description" : "Block height",
"required" : true,
"type" : "integer"
} ],
"responses" : {
"200" : {
"description" : "successful operation",
"schema" : {
"$ref" : "#/definitions/Function1RequestContextFutureRouteResult"
}
}
}
}
},
"/blocks/headers/seq/{from}/{to}" : {
"get" : {
"tags" : [ "blocks" ],
"summary" : "Block header range",
"description" : "Get block headers at specified heights",
"operationId" : "seqHeaderOnly",
"parameters" : [ {
"name" : "from",
"in" : "path",
"description" : "Start block height",
"required" : true,
"type" : "integer"
}, {
"name" : "to",
"in" : "path",
"description" : "End block height",
"required" : true,
"type" : "integer"
} ],
"responses" : {
"200" : {
"description" : "successful operation",
"schema" : {
"$ref" : "#/definitions/Function1RequestContextFutureRouteResult"
}
}
}
}
},
"/blocks/headers/last" : {
"get" : {
"tags" : [ "blocks" ],
"summary" : "Last block header",
"description" : "Get last block header",
"operationId" : "lastHeaderOnly",
"parameters" : [ ],
"responses" : {
"200" : {
"description" : "successful operation",
"schema" : {
"$ref" : "#/definitions/Function1RequestContextFutureRouteResult"
}
}
}
}
},
"/blocks/seq/{from}/{to}" : {
"get" : {
"tags" : [ "blocks" ],
"summary" : "Block range",
"description" : "Get blocks at specified heights",
"operationId" : "seq",
"parameters" : [ {
"name" : "from",
"in" : "path",
"description" : "Start block height",
"required" : true,
"type" : "integer"
}, {
"name" : "to",
"in" : "path",
"description" : "End block height",
"required" : true,
"type" : "integer"
} ],
"responses" : {
"200" : {
"description" : "successful operation",
"schema" : {
"$ref" : "#/definitions/Function1RequestContextFutureRouteResult"
}
}
}
}
},
"/blocks/height" : {
"get" : {
"tags" : [ "blocks" ],
"summary" : "Blockchain height",
"description" : "Get current blockchain height",
"operationId" : "height",
"parameters" : [ ],
"responses" : {
"200" : {
"description" : "successful operation",
"schema" : {
"$ref" : "#/definitions/Function1RequestContextFutureRouteResult"
}
}
}
}
},
"/blocks/at/{height}" : {
"get" : {
"tags" : [ "blocks" ],
"summary" : "Block at height",
"description" : "Get block at specified height",
"operationId" : "at",
"parameters" : [ {
"name" : "height",
"in" : "path",
"description" : "Block height",
"required" : true,
"type" : "integer"
} ],
"responses" : {
"200" : {
"description" : "successful operation",
"schema" : {
"$ref" : "#/definitions/Function1RequestContextFutureRouteResult"
}
}
}
}
},
"/blocks/signature/{signature}" : {
"get" : {
"tags" : [ "blocks" ],
"summary" : "Block by signature",
"description" : "Get block by its signature",
"operationId" : "signature",
"parameters" : [ {
"name" : "signature",
"in" : "path",
"description" : "Base58-encoded block signature",
"required" : true,
"type" : "string"
} ],
"responses" : {
"200" : {
"description" : "successful operation",
"schema" : {
"$ref" : "#/definitions/Function1RequestContextFutureRouteResult"
}
}
}
}
},
"/blocks/first" : {
"get" : {
"tags" : [ "blocks" ],
"summary" : "Genesis block",
"description" : "Get genesis block",
"operationId" : "first",
"parameters" : [ ],
"responses" : {
"200" : {
"description" : "successful operation",
"schema" : {
"$ref" : "#/definitions/Function1RequestContextFutureRouteResult"
}
}
}
}
},
"/blocks/address/{address}/{from}/{to}" : {
"get" : {
"tags" : [ "blocks" ],
"summary" : "Blocks produced by address",
"description" : "Get list of blocks generated by specified address",
"operationId" : "address",
"parameters" : [ {
"name" : "from",
"in" : "path",
"description" : "Start block height",
"required" : true,
"type" : "integer"
}, {
"name" : "to",
"in" : "path",
"description" : "End block height",
"required" : true,
"type" : "integer"
}, {
"name" : "address",
"in" : "path",
"description" : "Address",
"required" : true,
"type" : "string"
} ],
"responses" : {
"200" : {
"description" : "successful operation",
"schema" : {
"$ref" : "#/definitions/Function1RequestContextFutureRouteResult"
}
}
}
}
},
"/peers/all" : {
"get" : {
"tags" : [ "peers" ],
"summary" : "Peer list",
"description" : "Peer list",
"operationId" : "allPeers",
"parameters" : [ ],
"responses" : {
"200" : {
"description" : "Json with peer list or error"
}
}
}
},
"/peers/connected" : {
"get" : {
"tags" : [ "peers" ],
"summary" : "Connected peers list",
"description" : "Connected peers list",
"operationId" : "connectedPeers",
"parameters" : [ ],
"responses" : {
"200" : {
"description" : "Json with connected peers or error"
}
}
}
},
"/peers/blacklisted" : {
"get" : {
"tags" : [ "peers" ],
"summary" : "Blacklisted peers list",
"description" : "Blacklisted peers list",
"operationId" : "blacklistedPeers",
"parameters" : [ ],
"responses" : {
"200" : {
"description" : "Json with blacklisted peers or error"
}
}
}
},
"/peers/suspended" : {
"get" : {
"tags" : [ "peers" ],
"summary" : "Suspended peers list",
"description" : "Suspended peers list",
"operationId" : "suspendedPeers",
"parameters" : [ ],
"responses" : {
"200" : {
"description" : "JSON with suspended peers or error"
}
}
}
},
"/peers/clearblacklist" : {
"post" : {
"tags" : [ "peers" ],
"summary" : "Remove all blacklisted peers",
"description" : "Clear blacklist",
"operationId" : "clearBlacklist",
"parameters" : [ ],
"responses" : {
"200" : {
"description" : "200"
}
}
}
},
"/peers/connect" : {
"post" : {
"tags" : [ "peers" ],
"summary" : "Connect to peer",
"description" : "Connect to peer",
"operationId" : "connect",
"parameters" : [ {
"in" : "body",
"name" : "body",
"description" : "Json with data",
"required" : true,
"schema" : {
"$ref" : "#/definitions/ConnectReq"
}
} ],
"responses" : {
"200" : {
"description" : "successful operation",
"schema" : {
"$ref" : "#/definitions/Function1RequestContextFutureRouteResult"
}
}
}
}
},
"/blockchain/rewards/{height}" : {
"get" : {
"tags" : [ "rewards" ],
"summary" : "Reward status",
"description" : "Get miner’s reward status at height",
"operationId" : "rewardsAtHeight",
"parameters" : [ {
"name" : "height",
"in" : "path",
"description" : "Target block height",
"required" : true,
"type" : "integer"
} ],
"responses" : {
"200" : {
"description" : "Json reward status"
}
}
}
},
"/blockchain/rewards" : {
"get" : {
"tags" : [ "rewards" ],
"summary" : "Current reward status",
"description" : "Get current miner’s reward status",
"operationId" : "rewards",
"parameters" : [ ],
"responses" : {
"200" : {
"description" : "Json reward status"
}
}
}
},
"/transactions/unconfirmed/info/{id}" : {
"get" : {
"tags" : [ "transactions" ],
"summary" : "Unconfirmed transaction info",
"description" : "Get an unconfirmed transaction by its ID",
"operationId" : "utxTransactionInfo",
"parameters" : [ {
"name" : "id",
"in" : "path",
"description" : "Transaction ID",
"required" : true,
"type" : "string"
} ],
"responses" : {
"200" : {
"description" : "successful operation",
"schema" : {
"$ref" : "#/definitions/Function1RequestContextFutureRouteResult"
}
}
}
}
},
"/transactions/info/{id}" : {
"get" : {
"tags" : [ "transactions" ],
"summary" : "Transaction info",
"description" : "Get a transaction by its ID",
"operationId" : "info_2",
"parameters" : [ {
"name" : "id",
"in" : "path",
"description" : "Transaction ID",
"required" : true,
"type" : "string"
} ],
"responses" : {
"200" : {
"description" : "successful operation",
"schema" : {
"$ref" : "#/definitions/Function1RequestContextFutureRouteResult"
}
}
}
}
},
"/transactions/address/{address}/limit/{limit}" : {
"get" : {
"tags" : [ "transactions" ],
"summary" : "List of transactions by address",
"description" : "Get list of transactions where specified address has been involved",
"operationId" : "addressLimit",
"parameters" : [ {
"name" : "address",
"in" : "path",
"description" : "Address",
"required" : true,
"type" : "string"
}, {
"name" : "limit",
"in" : "path",
"description" : "Number of transactions to be returned",
"required" : true,
"type" : "integer"
}, {
"name" : "after",
"in" : "query",
"description" : "Id of transaction to paginate after",
"required" : false,
"type" : "string"
} ],
"responses" : {
"200" : {
"description" : "successful operation",
"schema" : {
"$ref" : "#/definitions/Function1RequestContextFutureRouteResult"
}
}
}
}
},
"/transactions/unconfirmed/size" : {
"get" : {
"tags" : [ "transactions" ],
"summary" : "Number of unconfirmed transactions",
"description" : "Get the number of unconfirmed transactions in the UTX pool",
"operationId" : "utxSize",
"parameters" : [ ],
"responses" : {
"200" : {
"description" : "successful operation",
"schema" : {
"$ref" : "#/definitions/Function1RequestContextFutureRouteResult"
}
}
}
}
},
"/transactions/calculateFee" : {
"post" : {
"tags" : [ "transactions" ],
"summary" : "Calculate transaction fee",
"description" : "Calculates minimal fee for a transaction",
"operationId" : "calculateFee",
"parameters" : [ {
"in" : "body",
"name" : "json",
"description" : "Transaction data including type",
"required" : true,
"schema" : {
"type" : "string"
}
} ],
"responses" : {
"200" : {
"description" : "successful operation",
"schema" : {
"$ref" : "#/definitions/Function1RequestContextFutureRouteResult"
}
}
}
}
},
"/transactions/sign/{signerAddress}" : {
"post" : {
"tags" : [ "transactions" ],
"summary" : "Sign a transaction with a non-default private key",
"description" : "Sign a transaction with the private key corresponding to the given address",
"operationId" : "signWithSigner",
"parameters" : [ {
"name" : "signerAddress",
"in" : "path",
"description" : "Wallet address",
"required" : true,
"type" : "string"
}, {
"in" : "body",
"name" : "json",
"description" : "Transaction data including <a href='transaction-types.html'>type</a>",
"required" : true,
"schema" : {
"type" : "string"
}
} ],
"responses" : {
"200" : {
"description" : "successful operation",
"schema" : {
"$ref" : "#/definitions/Function1RequestContextFutureRouteResult"
}
}
}
}
},
"/transactions/broadcast" : {
"post" : {
"tags" : [ "transactions" ],
"summary" : "Broadcast a signed transaction",
"description" : "Broadcast a signed transaction",
"operationId" : "signedBroadcast",
"parameters" : [ {
"in" : "body",
"name" : "json",
"description" : "Transaction data including <a href='transaction-types.html'>type</a> and signature/proofs",
"required" : true,
"schema" : {
"type" : "string"
}
} ],
"responses" : {
"200" : {
"description" : "successful operation",
"schema" : {
"$ref" : "#/definitions/Function1RequestContextFutureRouteResult"
}
}
}
}
},
"/transactions/sign" : {
"post" : {
"tags" : [ "transactions" ],
"summary" : "Sign a transaction",
"description" : "Sign a transaction with the sender's private key",
"operationId" : "sign_3",
"parameters" : [ {
"in" : "body",
"name" : "json",
"description" : "Transaction data including <a href='transaction-types.html'>type</a>",
"required" : true,
"schema" : {
"type" : "string"
}
} ],
"responses" : {
"200" : {
"description" : "successful operation",
"schema" : {
"$ref" : "#/definitions/Function1RequestContextFutureRouteResult"
}
}
}
}
},
"/transactions/unconfirmed" : {
"get" : {
"tags" : [ "transactions" ],
"summary" : "Unconfirmed transactions",
"description" : "Get list of unconfirmed transactions",
"operationId" : "unconfirmed",
"parameters" : [ ],
"responses" : {
"200" : {
"description" : "successful operation",
"schema" : {
"$ref" : "#/definitions/Function1RequestContextFutureRouteResult"
}
}
}
}
},
"/transactions/status" : {
"get" : {
"tags" : [ "transactions" ],
"summary" : "Transaction status",
"description" : "Get a transaction status by its ID",
"operationId" : "status_2",
"parameters" : [ {
"name" : "id",
"in" : "query",
"description" : "Transaction ID",
"required" : true,
"type" : "array",
"items" : {
"type" : "string"
},
"collectionFormat" : "multi"
} ],
"responses" : {
"200" : {
"description" : "successful operation",
"schema" : {
"$ref" : "#/definitions/Function1RequestContextFutureRouteResult"
}
}
}
}
},
"/utils/transactionSerialize" : {
"post" : {
"tags" : [ "utils" ],
"summary" : "Serialize transaction",
"description" : "Serialize transaction",
"operationId" : "transactionSerialize",
"produces" : [ "application/json" ],
"parameters" : [ {
"in" : "body",
"name" : "json",
"description" : "Transaction data including <a href='transaction-types.html'>type</a> and signature/proofs",
"required" : true,
"schema" : {
"type" : "string"
}
} ],
"responses" : {
"200" : {
"description" : "successful operation",
"schema" : {
"$ref" : "#/definitions/Function1RequestContextFutureRouteResult"
}
}
}
}
},
"/utils/script/compileWithImports" : {
"post" : {
"tags" : [ "utils" ],
"summary" : "Compile script",
"description" : "Compiles string code with imports to base64 script representation",
"operationId" : "compileWithImports",
"produces" : [ "application/json" ],
"parameters" : [ {
"in" : "body",
"name" : "code",
"description" : "Script code with imports",
"required" : true,
"schema" : {
"$ref" : "#/definitions/ScriptWithImportsRequest"
}
} ],
"responses" : {
"200" : {
"description" : "base64 or error"
}
}
}
},
"/utils/script/compileCode" : {
"post" : {
"tags" : [ "utils" ],
"summary" : "Compile script",
"description" : "Compiles string code to base64 script representation",
"operationId" : "compileCode",
"produces" : [ "application/json" ],
"parameters" : [ {
"in" : "body",
"name" : "code",
"description" : "Script code",
"required" : true,
"schema" : {
"type" : "string"
}
} ],
"responses" : {
"200" : {
"description" : "base64 or error"
}
}
}
},
"/utils/script/estimate" : {
"post" : {
"tags" : [ "utils" ],
"summary" : "Estimate",
"description" : "Estimates compiled code in Base64 representation",
"operationId" : "estimate",
"produces" : [ "application/json" ],
"parameters" : [ {
"in" : "body",
"name" : "code",
"description" : "A compiled Base64 code",
"required" : true,
"schema" : {
"type" : "string"
}
} ],
"responses" : {
"200" : {
"description" : "base64 or error"
}
}
}
},
"/utils/seed" : {
"get" : {
"tags" : [ "utils" ],
"summary" : "Seed",
"description" : "Generate random seed",
"operationId" : "seedRoute",
"produces" : [ "application/json" ],
"parameters" : [ ],
"responses" : {
"200" : {
"description" : "Json with peer list or error"
}
}
}
},
"/utils/hash/secure" : {
"post" : {
"tags" : [ "utils" ],
"summary" : "Hash",
"description" : "Return SecureCryptographicHash of specified message",
"operationId" : "hashSecure",
"produces" : [ "application/json" ],
"parameters" : [ {
"in" : "body",
"name" : "message",
"description" : "Message to hash",
"required" : true,
"schema" : {
"type" : "string"
}
} ],
"responses" : {
"200" : {
"description" : "Json with error or json like {\"message\": \"your message\",\"hash\": \"your message hash\"}"
}
}
}
},
"/utils/hash/fast" : {
"post" : {
"tags" : [ "utils" ],
"summary" : "Hash",
"description" : "Return FastCryptographicHash of specified message",
"operationId" : "hashFast",
"produces" : [ "application/json" ],
"parameters" : [ {
"in" : "body",
"name" : "message",
"description" : "Message to hash",
"required" : true,
"schema" : {
"type" : "string"
}
} ],
"responses" : {
"200" : {
"description" : "Json with error or json like {\"message\": \"your message\",\"hash\": \"your message hash\"}"
}
}
}
},
"/utils/script/decompile" : {
"post" : {
"tags" : [ "utils" ],
"summary" : "Decompile",
"description" : "Decompiles base64 script representation to string code",
"operationId" : "decompile",
"produces" : [ "application/json" ],
"parameters" : [ {
"in" : "body",
"name" : "code",
"description" : "Script code",
"required" : true,
"schema" : {
"type" : "string"
}
} ],
"responses" : {
"200" : {
"description" : "string or error"
}
}
}
},
"/utils/time" : {
"get" : {
"tags" : [ "utils" ],
"summary" : "Time",
"description" : "Current Node time (UTC)",
"operationId" : "time",
"produces" : [ "application/json" ],
"parameters" : [ ],
"responses" : {
"200" : {
"description" : "Json with time or error"
}
}
}
},
"/utils/sign/{privateKey}" : {
"post" : {
"tags" : [ "utils" ],
"summary" : "Hash",
"description" : "Return FastCryptographicHash of specified message",
"operationId" : "sign",
"produces" : [ "application/json" ],
"parameters" : [ {
"name" : "privateKey",
"in" : "path",
"description" : "privateKey",
"required" : true,
"type" : "string",
"x-example" : "3kMEhU5z3v8bmer1ERFUUhW58Dtuhyo9hE5vrhjqAWYT"
}, {
"in" : "body",
"name" : "message",
"description" : "Message to hash (base58 string)",
"required" : true,
"schema" : {
"type" : "string"
}
} ],
"responses" : {
"200" : {
"description" : "Json with error or json like {\"message\": \"your message\",\"hash\": \"your message hash\"}"
}
}
}
},
"/utils/seed/{length}" : {
"get" : {
"tags" : [ "utils" ],
"summary" : "Seed of specified length",
"description" : "Generate random seed of specified length",
"operationId" : "length",
"produces" : [ "application/json" ],
"parameters" : [ {
"name" : "length",
"in" : "path",
"description" : "Seed length ",
"required" : true,
"type" : "integer"
} ],
"responses" : {
"200" : {
"description" : "successful operation",
"schema" : {
"$ref" : "#/definitions/Function1RequestContextFutureRouteResult"
}
}
}
}
},
"/utils/script/compile" : {
"post" : {
"tags" : [ "utils" ],
"summary" : "Compile",
"description" : "Compiles string code to base64 script representation",
"operationId" : "compile",
"produces" : [ "application/json" ],
"parameters" : [ {
"in" : "body",
"name" : "code",
"description" : "Script code",
"required" : true,
"schema" : {
"type" : "string"
}
} ],
"responses" : {
"200" : {
"description" : "base64 or error"
}
},
"deprecated" : true
}
},
"/wallet/seed" : {
"get" : {
"tags" : [ "wallet" ],
"summary" : "Seed",
"description" : "Export wallet seed",
"operationId" : "seed",
"parameters" : [ ],
"responses" : {
"200" : {
"description" : "successful operation",
"schema" : {
"$ref" : "#/definitions/Function1RequestContextFutureRouteResult"
}
}
}
}
},
"/alias/by-alias/{alias}" : {
"get" : {
"tags" : [ "alias" ],
"summary" : "Address by alias",
"description" : "Returns an address associated with an Alias. Alias should be plain text without an 'alias' prefix and network code.",
"operationId" : "addressOfAlias",
"parameters" : [ {
"name" : "alias",
"in" : "path",
"description" : "Alias",
"required" : true,
"type" : "string"
} ],
"responses" : {
"200" : {
"description" : "successful operation",
"schema" : {
"$ref" : "#/definitions/Function1RequestContextFutureRouteResult"
}
}
}
}
},
"/alias/by-address/{address}" : {
"get" : {
"tags" : [ "alias" ],
"summary" : "Aliases by address",
"description" : "Returns a collection of aliases associated with an address",
"operationId" : "aliasOfAddress",
"parameters" : [ {
"name" : "address",
"in" : "path",
"description" : "Address",
"required" : true,
"type" : "string"
} ],
"responses" : {
"200" : {
"description" : "successful operation",
"schema" : {
"$ref" : "#/definitions/Function1RequestContextFutureRouteResult"
}
}
}
}
},
"/assets/{assetId}/distribution" : {
"get" : {
"tags" : [ "assets" ],
"summary" : "Asset balance distribution",
"description" : "Asset balance distribution by account",
"operationId" : "balanceDistribution",
"parameters" : [ {
"name" : "assetId",
"in" : "path",
"description" : "Asset ID",
"required" : true,
"type" : "string"
} ],
"responses" : {
"200" : {
"description" : "successful operation",
"schema" : {
"$ref" : "#/definitions/Function1RequestContextFutureRouteResult"
}
}
},
"deprecated" : true
}
},
"/assets/{assetId}/distribution/{height}/limit/{limit}" : {
"get" : {
"tags" : [ "assets" ],
"summary" : "Asset balance distribution at height",
"description" : "Asset balance distribution by account at specified height",
"operationId" : "balanceDistributionAtHeight",
"parameters" : [ {
"name" : "assetId",
"in" : "path",
"description" : "Asset ID",
"required" : true,
"type" : "string"
}, {
"name" : "height",
"in" : "path",
"description" : "Height",
"required" : true,
"type" : "integer"
}, {
"name" : "limit",
"in" : "path",
"description" : "Number of addresses to be returned",
"required" : true,
"type" : "integer"
}, {
"name" : "after",
"in" : "query",
"description" : "address to paginate after",
"required" : false,
"type" : "string"
} ],
"responses" : {
"200" : {
"description" : "successful operation",
"schema" : {
"$ref" : "#/definitions/Function1RequestContextFutureRouteResult"
}
}
}
}
},
"/assets/balance/{address}" : {
"get" : {
"tags" : [ "assets" ],
"summary" : "Account's balance",
"description" : "Account's balances for all assets",
"operationId" : "balances",
"parameters" : [ {
"name" : "address",
"in" : "path",
"description" : "Address",
"required" : true,
"type" : "string"
} ],
"responses" : {
"200" : {
"description" : "successful operation",
"schema" : {
"$ref" : "#/definitions/Function1RequestContextFutureRouteResult"
}
}
}
}
},
"/assets/nft/{address}/limit/{limit}" : {
"get" : {
"tags" : [ "assets" ],
"summary" : "NFTs",
"description" : "Account's NFTs balance",
"operationId" : "nft",
"parameters" : [ {
"name" : "address",
"in" : "path",
"description" : "Address",
"required" : true,
"type" : "string"
}, {
"name" : "limit",
"in" : "path",
"description" : "Number of tokens to be returned",
"required" : true,
"type" : "integer"
}, {
"name" : "after",
"in" : "query",
"description" : "Id of token to paginate after",
"required" : false,
"type" : "string"
} ],
"responses" : {
"200" : {
"description" : "successful operation",
"schema" : {
"$ref" : "#/definitions/Function1RequestContextFutureRouteResult"
}
}
}
}
},
"/assets/balance/{address}/{assetId}" : {
"get" : {
"tags" : [ "assets" ],
"summary" : "Asset's balance",
"description" : "Account's balance by given asset",
"operationId" : "balance",
"parameters" : [ {
"name" : "address",
"in" : "path",
"description" : "Address",
"required" : true,
"type" : "string"
}, {
"name" : "assetId",
"in" : "path",
"description" : "Asset ID",
"required" : true,
"type" : "string"
} ],
"responses" : {
"200" : {
"description" : "successful operation",
"schema" : {
"$ref" : "#/definitions/Function1RequestContextFutureRouteResult"
}
}
}
}
},
"/assets/details/{assetId}" : {
"get" : {
"tags" : [ "assets" ],
"summary" : "Information about an asset",
"description" : "Provides detailed information about given asset",
"operationId" : "details",
"parameters" : [ {
"name" : "assetId",
"in" : "path",
"description" : "ID of the asset",
"required" : true,
"type" : "string"
}, {
"name" : "full",
"in" : "query",
"description" : "false",
"required" : false,
"type" : "boolean"
} ],
"responses" : {
"200" : {
"description" : "successful operation",
"schema" : {
"$ref" : "#/definitions/Function1RequestContextFutureRouteResult"
}
}
}
}
},
"/leasing/active/{address}" : {
"get" : {
"tags" : [ "leasing" ],
"summary" : "Get all active leases for an address",
"description" : "",
"operationId" : "active",
"parameters" : [ {
"name" : "address",
"in" : "path",
"description" : "Wallet address ",
"required" : true,
"type" : "string"
} ],
"responses" : {
"200" : {
"description" : "successful operation",
"schema" : {
"$ref" : "#/definitions/Function1RequestContextFutureRouteResult"
}
}
}
}
},
"/consensus/generatingbalance/{address}" : {
"get" : {
"tags" : [ "consensus" ],
"summary" : "Generating balance",
"description" : "Account's generating balance(the same as balance atm)",
"operationId" : "generatingBalance",
"parameters" : [ {
"name" : "address",
"in" : "path",
"description" : "Address",
"required" : true,
"type" : "string"
} ],
"responses" : {
"200" : {
"description" : "successful operation",
"schema" : {
"$ref" : "#/definitions/Function1RequestContextFutureRouteResult"
}
}
}
}
},
"/consensus/generationsignature/{blockId}" : {
"get" : {
"tags" : [ "consensus" ],
"summary" : "Generation signature",
"description" : "Generation signature of a block with specified id",
"operationId" : "generationSignatureId",
"parameters" : [ {
"name" : "blockId",
"in" : "path",
"description" : "Block id ",
"required" : true,
"type" : "string"
} ],
"responses" : {
"200" : {
"description" : "successful operation",
"schema" : {
"$ref" : "#/definitions/Function1RequestContextFutureRouteResult"
}
}
}
}
},
"/consensus/basetarget/{blockId}" : {
"get" : {
"tags" : [ "consensus" ],
"summary" : "Base target",
"description" : "base target of a block with specified id",
"operationId" : "baseTargetId",
"parameters" : [ {
"name" : "blockId",
"in" : "path",
"description" : "Block id ",
"required" : true,
"type" : "string"
} ],
"responses" : {
"200" : {
"description" : "successful operation",
"schema" : {
"$ref" : "#/definitions/Function1RequestContextFutureRouteResult"
}
}
}
}
},
"/consensus/basetarget" : {
"get" : {
"tags" : [ "consensus" ],
"summary" : "Base target last",
"description" : "Base target of a last block",
"operationId" : "basetarget",
"parameters" : [ ],
"responses" : {
"200" : {
"description" : "successful operation",
"schema" : {
"$ref" : "#/definitions/Function1RequestContextFutureRouteResult"
}
}
}
}
},
"/consensus/algo" : {
"get" : {
"tags" : [ "consensus" ],
"summary" : "Consensus algo",
"description" : "Shows which consensus algo being using",
"operationId" : "algo",
"parameters" : [ ],
"responses" : {
"200" : {
"description" : "successful operation",
"schema" : {
"$ref" : "#/definitions/Function1RequestContextFutureRouteResult"
}
}
}
}
},
"/consensus/generationsignature" : {
"get" : {
"tags" : [ "consensus" ],
"summary" : "Generation signature last",
"description" : "Generation signature of a last block",
"operationId" : "generationSignature",
"parameters" : [ ],
"responses" : {
"200" : {
"description" : "successful operation",
"schema" : {
"$ref" : "#/definitions/Function1RequestContextFutureRouteResult"
}
}
}
}
},
"/activation/status" : {
"get" : {
"tags" : [ "activation" ],
"summary" : "Status",
"description" : "Get activation status",
"operationId" : "status_3",
"parameters" : [ ],
"responses" : {
"200" : {
"description" : "Json activation status"
}
}
}
},
"/debug/stateChanges/address/{address}/limit/{limit}" : {
"get" : {
"tags" : [ "debug" ],
"summary" : "List of transactions by address with state changes",
"description" : "Get list of transactions with state changes where specified address has been involved",
"operationId" : "stateChangesByAddress",
"parameters" : [ {
"name" : "address",
"in" : "path",
"description" : "Address",
"required" : true,
"type" : "string"
}, {
"name" : "limit",
"in" : "path",
"description" : "Number of transactions to be returned",
"required" : true,
"type" : "integer"
}, {
"name" : "after",
"in" : "query",
"description" : "Id of transaction to paginate after",
"required" : false,
"type" : "string"
} ],
"responses" : {
"200" : {
"description" : "successful operation",
"schema" : {
"$ref" : "#/definitions/Function1RequestContextFutureRouteResult"
}
}
}
}
},
"/debug/balances/history/{address}" : {
"get" : {
"tags" : [ "debug" ],
"summary" : "Waves balance history",
"description" : "Waves balance history",
"operationId" : "balanceHistory",
"parameters" : [ {
"name" : "address",
"in" : "path",
"description" : "An address to load waves balance history for",
"required" : true,
"type" : "string"
} ],
"responses" : {
"200" : {
"description" : "successful operation",
"schema" : {
"$ref" : "#/definitions/Function1RequestContextFutureRouteResult"
}
}
}
}
},
"/debug/stateWaves/{height}" : {
"get" : {
"tags" : [ "debug" ],
"summary" : "State at block",
"description" : "Get state at specified height",
"operationId" : "stateWaves",
"parameters" : [ {
"name" : "height",
"in" : "path",
"description" : "height",
"required" : true,
"type" : "integer"
} ],
"responses" : {
"200" : {
"description" : "successful operation",
"schema" : {
"$ref" : "#/definitions/Function1RequestContextFutureRouteResult"
}
}
}
}
},
"/debug/rollback" : {
"post" : {
"tags" : [ "debug" ],
"summary" : "Rollback to height",
"description" : "Removes all blocks after given height",
"operationId" : "rollback",
"parameters" : [ {
"in" : "body",
"name" : "body",
"description" : "Json with data",
"required" : true,
"schema" : {
"$ref" : "#/definitions/RollbackParams"
}
} ],
"responses" : {
"200" : {
"description" : "200 if success, 404 if there are no block at this height"
}
}
}
},
"/debug/minerInfo" : {
"get" : {
"tags" : [ "debug" ],
"summary" : "State",
"description" : "All miner info you need to debug",
"operationId" : "minerInfo",
"parameters" : [ ],
"responses" : {
"200" : {
"description" : "Json state"
}
}
}
},
"/debug/historyInfo" : {
"get" : {
"tags" : [ "debug" ],
"summary" : "State",
"description" : "All history info you need to debug",
"operationId" : "historyInfo",
"parameters" : [ ],
"responses" : {
"200" : {
"description" : "Json state"
}
}
}
},
"/debug/configInfo" : {
"get" : {
"tags" : [ "debug" ],
"summary" : "Config",
"description" : "Currently running node config",
"operationId" : "configInfo",
"parameters" : [ {
"name" : "full",
"in" : "query",
"description" : "Exposes full typesafe config",
"required" : false,
"type" : "boolean",
"default" : false
} ],
"responses" : {
"200" : {
"description" : "Json state"
}
}
}
},
"/debug/stateChanges/info/{id}" : {
"get" : {
"tags" : [ "debug" ],
"summary" : "Transaction state changes",
"description" : "Returns state changes made by the transaction",
"operationId" : "stateChangesById",
"parameters" : [ {
"name" : "id",
"in" : "path",
"description" : "Transaction ID",
"required" : true,
"type" : "string"
} ],
"responses" : {
"200" : {
"description" : "successful operation",
"schema" : {
"$ref" : "#/definitions/Function1RequestContextFutureRouteResult"
}
}
}
}
},
"/debug/validate" : {
"post" : {
"tags" : [ "debug" ],
"summary" : "Validate Transaction",
"description" : "Validates a transaction and measures time spent in milliseconds",
"operationId" : "validate",
"parameters" : [ {
"in" : "body",
"name" : "transaction",
"description" : "Signed transaction",
"required" : true,
"schema" : {
"type" : "string"
}
} ],
"responses" : {
"200" : {
"description" : "successful operation",
"schema" : {
"$ref" : "#/definitions/Function1RequestContextFutureRouteResult"
}
}
}
}
},
"/debug/info" : {
"get" : {
"tags" : [ "debug" ],
"summary" : "State",
"description" : "All info you need to debug",
"operationId" : "info",
"parameters" : [ ],
"responses" : {
"200" : {
"description" : "Json state"
}
}
}
},
"/debug/blocks/{howMany}" : {
"get" : {
"tags" : [ "debug" ],
"summary" : "Blocks",
"description" : "Get sizes and full hashes for last blocks",
"operationId" : "blocks",
"parameters" : [ {
"name" : "howMany",
"in" : "path",
"description" : "How many last blocks to take",
"required" : true,
"type" : "string"
} ],
"responses" : {
"200" : {
"description" : "successful operation",
"schema" : {
"$ref" : "#/definitions/Function1RequestContextFutureRouteResult"
}
}
}
}
},
"/debug/blacklist" : {
"post" : {
"tags" : [ "debug" ],
"summary" : "Blacklist given peer",
"description" : "Moving peer to blacklist",
"operationId" : "blacklist",
"parameters" : [ {
"in" : "body",
"name" : "address",
"description" : "IP address of node",
"required" : true,
"schema" : {
"type" : "string"
}
} ],
"responses" : {
"200" : {
"description" : "200 if success, 404 if there are no peer with such address"
}
}
}
},
"/debug/portfolios/{address}" : {
"get" : {
"tags" : [ "debug" ],
"summary" : "Portfolio",
"description" : "Get current portfolio considering pessimistic transactions in the UTX pool",
"operationId" : "portfolios",
"parameters" : [ {
"name" : "address",
"in" : "path",
"description" : "An address of portfolio",
"required" : true,
"type" : "string"
}, {
"name" : "considerUnspent",
"in" : "query",
"description" : "Taking into account pessimistic transactions from UTX pool",
"required" : false,
"type" : "boolean",
"default" : true
} ],
"responses" : {
"200" : {
"description" : "Json portfolio"
}
}
}
},
"/debug/rollback-to/{signature}" : {
"delete" : {
"tags" : [ "debug" ],
"summary" : "Block signature",
"description" : "Rollback the state to the block with a given signature",
"operationId" : "rollbackTo",
"parameters" : [ {
"name" : "signature",
"in" : "path",
"description" : "Base58-encoded block signature",
"required" : true,
"type" : "string"
} ],
"responses" : {
"200" : {
"description" : "successful operation",
"schema" : {
"$ref" : "#/definitions/Function1RequestContextFutureRouteResult"
}
}
}
}
},
"/debug/print" : {
"post" : {
"tags" : [ "debug" ],
"summary" : "Print",
"description" : "Prints a string at DEBUG level, strips to 100 chars",
"operationId" : "print",
"parameters" : [ {
"in" : "body",
"name" : "body",
"description" : "Json with data",
"required" : true,
"schema" : {
"$ref" : "#/definitions/DebugMessage"
}
} ],
"responses" : {
"200" : {
"description" : "Json portfolio"
}
}
}
},
"/debug/state" : {
"get" : {
"tags" : [ "debug" ],
"summary" : "State",
"description" : "Get current state",
"operationId" : "state",
"parameters" : [ ],
"responses" : {
"200" : {
"description" : "Json state"
}
}
}
},
"/node/stop" : {
"post" : {
"tags" : [ "node" ],
"summary" : "Stop",
"description" : "Stop the node",
"operationId" : "stop",
"parameters" : [ ],
"responses" : {
"200" : {
"description" : "successful operation",
"schema" : {
"$ref" : "#/definitions/Function1RequestContextFutureRouteResult"
}
}
}
}
},
"/node/status" : {
"get" : {
"tags" : [ "node" ],
"summary" : "Status",
"description" : "Get status of the running core",
"operationId" : "status",
"parameters" : [ ],
"responses" : {
"200" : {
"description" : "successful operation",
"schema" : {
"$ref" : "#/definitions/Function1RequestContextFutureRouteResult"
}
}
}
}
},
"/node/version" : {
"get" : {
"tags" : [ "node" ],
"summary" : "Version",
"description" : "Get Waves node version",
"operationId" : "version",
"parameters" : [ ],
"responses" : {
"200" : {
"description" : "Json Waves node version"
}
}
}
}
},
"definitions" : {
"Function1" : {
"type" : "object"
},
"Function1RequestContextFutureRouteResult" : {
"type" : "object"
},
"SignedMessage" : {
"type" : "object",
"required" : [ "message", "publickey", "signature" ],
"properties" : {
"message" : {
"type" : "string"
},
"signature" : {
"type" : "string"
},
"publickey" : {
"type" : "string"
}
}
},
"ConnectReq" : {
"type" : "object",
"required" : [ "host", "port" ],
"properties" : {
"host" : {
"type" : "string",
"example" : "127.0.0.1"
},
"port" : {
"type" : "integer",
"format" : "int32",
"example" : 6868
}
}
},
"ScriptWithImportsRequest" : {
"type" : "object",
"required" : [ "imports", "script" ],
"properties" : {
"script" : {
"type" : "string"
},
"imports" : {
"type" : "object",
"additionalProperties" : {
"type" : "string"
}
}
}
},
"RollbackParams" : {
"type" : "object",
"required" : [ "returnTransactionsToUtx", "rollbackTo" ],
"properties" : {
"rollbackTo" : {
"type" : "integer",
"format" : "int32"
},
"returnTransactionsToUtx" : {
"type" : "boolean"
}
}
},
"DebugMessage" : {
"type" : "object",
"required" : [ "message" ],
"properties" : {
"message" : {
"type" : "string"
}
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment