{ "swagger": "2.0", "info": { "title": "Aerium APIs", "description": "Every node in the Aerium network can be configured to expose HTTP-APIs for communication.\nThese APIs follow the [OpenAPI (Swagger)](https://swagger.io/specification/) specification, and a complete list of available endpoints can be found here.\n\n## Units\n\nAll the amounts are in NanoAUM units, which are atomic and the smallest unit in the Aerium blockchain.\nEach AUM is equivalent to 1,000,000,000 or 10\u003csup\u003e9\u003c/sup\u003e NanoAUMs.\n", "version": "2.0", "contact": { "name": "Aerium Blockchain", "url": "https://aerium.network" }, "license": { "name": "MIT License", "url": "https://github.com/aerium-network/aerium/blob/main/LICENSE" } }, "tags": [ { "name": "Transaction" }, { "name": "Blockchain" }, { "name": "Network" }, { "name": "Utils" }, { "name": "Wallet" } ], "basePath": "/http/api", "schemes": [ "http", "https" ], "consumes": [ "application/json" ], "produces": [ "application/json" ], "paths": { "/aerium/Utils/public_key_aggregation": { "post": { "summary": "Aggregates multiple BLS public keys into a single key.", "operationId": "Utils_PublicKeyAggregation", "responses": { "200": { "description": "A successful response.", "schema": { "$ref": "#/definitions/aeriumPublicKeyAggregationResponse" } }, "default": { "description": "An unexpected error response.", "schema": { "$ref": "#/definitions/rpcStatus" } } }, "parameters": [ { "name": "body", "description": "Request message for aggregating multiple BLS public keys.", "in": "body", "required": true, "schema": { "$ref": "#/definitions/aeriumPublicKeyAggregationRequest" } } ], "tags": [ "Utils" ] } }, "/aerium/Utils/sign_message_with_private_key": { "post": { "summary": "Signs a message with the provided private key.", "operationId": "Utils_SignMessageWithPrivateKey", "responses": { "200": { "description": "A successful response.", "schema": { "$ref": "#/definitions/aeriumSignMessageWithPrivateKeyResponse" } }, "default": { "description": "An unexpected error response.", "schema": { "$ref": "#/definitions/rpcStatus" } } }, "parameters": [ { "name": "body", "description": "Request message for signing a message with a private key.", "in": "body", "required": true, "schema": { "$ref": "#/definitions/aeriumSignMessageWithPrivateKeyRequest" } } ], "tags": [ "Utils" ] } }, "/aerium/Utils/signature_aggregation": { "post": { "summary": "Aggregates multiple BLS signatures into a single signature.", "operationId": "Utils_SignatureAggregation", "responses": { "200": { "description": "A successful response.", "schema": { "$ref": "#/definitions/aeriumSignatureAggregationResponse" } }, "default": { "description": "An unexpected error response.", "schema": { "$ref": "#/definitions/rpcStatus" } } }, "parameters": [ { "name": "body", "description": "Request message for aggregating multiple BLS signatures.", "in": "body", "required": true, "schema": { "$ref": "#/definitions/aeriumSignatureAggregationRequest" } } ], "tags": [ "Utils" ] } }, "/aerium/Utils/verify_message": { "post": { "summary": "Verifies a signature against the public key and message.", "operationId": "Utils_VerifyMessage", "responses": { "200": { "description": "A successful response.", "schema": { "$ref": "#/definitions/aeriumVerifyMessageResponse" } }, "default": { "description": "An unexpected error response.", "schema": { "$ref": "#/definitions/rpcStatus" } } }, "parameters": [ { "name": "body", "description": "Request message for verifying a message signature.", "in": "body", "required": true, "schema": { "$ref": "#/definitions/aeriumVerifyMessageRequest" } } ], "tags": [ "Utils" ] } }, "/aerium/blockchain/get_account": { "get": { "summary": "Retrieves information about an account for the provided address.", "operationId": "Blockchain_GetAccount", "responses": { "200": { "description": "A successful response.", "schema": { "$ref": "#/definitions/aeriumGetAccountResponse" } }, "default": { "description": "An unexpected error response.", "schema": { "$ref": "#/definitions/rpcStatus" } } }, "parameters": [ { "name": "address", "description": "The address of the account to retrieve information for.", "in": "query", "required": false, "type": "string" } ], "tags": [ "Blockchain" ] } }, "/aerium/blockchain/get_block": { "get": { "summary": "Retrieves information about a block based on the provided request parameters.", "operationId": "Blockchain_GetBlock", "responses": { "200": { "description": "A successful response.", "schema": { "$ref": "#/definitions/aeriumGetBlockResponse" } }, "default": { "description": "An unexpected error response.", "schema": { "$ref": "#/definitions/rpcStatus" } } }, "parameters": [ { "name": "height", "description": "The height of the block to retrieve.", "in": "query", "required": false, "type": "integer", "format": "int64" }, { "name": "verbosity", "description": "The verbosity level for block information.\n\n - BLOCK_VERBOSITY_DATA: Request only block data.\n - BLOCK_VERBOSITY_INFO: Request block information and transaction IDs.\n - BLOCK_VERBOSITY_TRANSACTIONS: Request block information and detailed transaction data.", "in": "query", "required": false, "type": "string", "enum": [ "BLOCK_VERBOSITY_DATA", "BLOCK_VERBOSITY_INFO", "BLOCK_VERBOSITY_TRANSACTIONS" ], "default": "BLOCK_VERBOSITY_DATA" } ], "tags": [ "Blockchain" ] } }, "/aerium/blockchain/get_block_hash": { "get": { "summary": "Retrieves the hash of a block at the specified height.", "operationId": "Blockchain_GetBlockHash", "responses": { "200": { "description": "A successful response.", "schema": { "$ref": "#/definitions/aeriumGetBlockHashResponse" } }, "default": { "description": "An unexpected error response.", "schema": { "$ref": "#/definitions/rpcStatus" } } }, "parameters": [ { "name": "height", "description": "The height of the block to retrieve the hash for.", "in": "query", "required": false, "type": "integer", "format": "int64" } ], "tags": [ "Blockchain" ] } }, "/aerium/blockchain/get_block_height": { "get": { "summary": "Retrieves the height of a block with the specified hash.", "operationId": "Blockchain_GetBlockHeight", "responses": { "200": { "description": "A successful response.", "schema": { "$ref": "#/definitions/aeriumGetBlockHeightResponse" } }, "default": { "description": "An unexpected error response.", "schema": { "$ref": "#/definitions/rpcStatus" } } }, "parameters": [ { "name": "hash", "description": "The hash of the block to retrieve the height for.", "in": "query", "required": false, "type": "string" } ], "tags": [ "Blockchain" ] } }, "/aerium/blockchain/get_blockchain_info": { "get": { "summary": "Retrieves general information about the blockchain.", "operationId": "Blockchain_GetBlockchainInfo", "responses": { "200": { "description": "A successful response.", "schema": { "$ref": "#/definitions/aeriumGetBlockchainInfoResponse" } }, "default": { "description": "An unexpected error response.", "schema": { "$ref": "#/definitions/rpcStatus" } } }, "tags": [ "Blockchain" ] } }, "/aerium/blockchain/get_consensus_info": { "get": { "summary": "Retrieves information about consensus instances.", "operationId": "Blockchain_GetConsensusInfo", "responses": { "200": { "description": "A successful response.", "schema": { "$ref": "#/definitions/aeriumGetConsensusInfoResponse" } }, "default": { "description": "An unexpected error response.", "schema": { "$ref": "#/definitions/rpcStatus" } } }, "tags": [ "Blockchain" ] } }, "/aerium/blockchain/get_public_key": { "get": { "summary": "Retrieves the public key of an account for the provided address.", "operationId": "Blockchain_GetPublicKey", "responses": { "200": { "description": "A successful response.", "schema": { "$ref": "#/definitions/aeriumGetPublicKeyResponse" } }, "default": { "description": "An unexpected error response.", "schema": { "$ref": "#/definitions/rpcStatus" } } }, "parameters": [ { "name": "address", "description": "The address for which to retrieve the public key.", "in": "query", "required": false, "type": "string" } ], "tags": [ "Blockchain" ] } }, "/aerium/blockchain/get_txpool_content": { "get": { "summary": "Retrieves current transactions in the transaction pool.", "operationId": "Blockchain_GetTxPoolContent", "responses": { "200": { "description": "A successful response.", "schema": { "$ref": "#/definitions/aeriumGetTxPoolContentResponse" } }, "default": { "description": "An unexpected error response.", "schema": { "$ref": "#/definitions/rpcStatus" } } }, "parameters": [ { "name": "payloadType", "description": "The type of transactions to retrieve from the transaction pool. 0 means all types.\n\n - PAYLOAD_TYPE_UNSPECIFIED: Unspecified payload type.\n - PAYLOAD_TYPE_TRANSFER: Transfer payload type.\n - PAYLOAD_TYPE_BOND: Bond payload type.\n - PAYLOAD_TYPE_SORTITION: Sortition payload type.\n - PAYLOAD_TYPE_UNBOND: Unbond payload type.\n - PAYLOAD_TYPE_WITHDRAW: Withdraw payload type.\n - PAYLOAD_TYPE_BATCH_TRANSFER: Batch transfer payload type.", "in": "query", "required": false, "type": "string", "enum": [ "PAYLOAD_TYPE_UNSPECIFIED", "PAYLOAD_TYPE_TRANSFER", "PAYLOAD_TYPE_BOND", "PAYLOAD_TYPE_SORTITION", "PAYLOAD_TYPE_UNBOND", "PAYLOAD_TYPE_WITHDRAW", "PAYLOAD_TYPE_BATCH_TRANSFER" ], "default": "PAYLOAD_TYPE_UNSPECIFIED" } ], "tags": [ "Blockchain" ] } }, "/aerium/blockchain/get_validator": { "get": { "summary": "Retrieves information about a validator for the provided address.", "operationId": "Blockchain_GetValidator", "responses": { "200": { "description": "A successful response.", "schema": { "$ref": "#/definitions/aeriumGetValidatorResponse" } }, "default": { "description": "An unexpected error response.", "schema": { "$ref": "#/definitions/rpcStatus" } } }, "parameters": [ { "name": "address", "description": "The address of the validator to retrieve information for.", "in": "query", "required": false, "type": "string" } ], "tags": [ "Blockchain" ] } }, "/aerium/blockchain/get_validator_by_number": { "get": { "summary": "Retrieves information about a validator by its number.", "operationId": "Blockchain_GetValidatorByNumber", "responses": { "200": { "description": "A successful response.", "schema": { "$ref": "#/definitions/aeriumGetValidatorResponse" } }, "default": { "description": "An unexpected error response.", "schema": { "$ref": "#/definitions/rpcStatus" } } }, "parameters": [ { "name": "number", "description": "The unique number of the validator to retrieve information for.", "in": "query", "required": false, "type": "integer", "format": "int32" } ], "tags": [ "Blockchain" ] } }, "/aerium/network/get_network_info": { "get": { "summary": "Retrieves information about the overall network.", "operationId": "Network_GetNetworkInfo", "responses": { "200": { "description": "A successful response.", "schema": { "$ref": "#/definitions/aeriumGetNetworkInfoResponse" } }, "default": { "description": "An unexpected error response.", "schema": { "$ref": "#/definitions/rpcStatus" } } }, "parameters": [ { "name": "onlyConnected", "description": "If true, returns only peers that are currently connected.", "in": "query", "required": false, "type": "boolean" } ], "tags": [ "Network" ] } }, "/aerium/network/get_node_info": { "get": { "summary": "Retrieves information about a specific node in the network.", "operationId": "Network_GetNodeInfo", "responses": { "200": { "description": "A successful response.", "schema": { "$ref": "#/definitions/aeriumGetNodeInfoResponse" } }, "default": { "description": "An unexpected error response.", "schema": { "$ref": "#/definitions/rpcStatus" } } }, "tags": [ "Network" ] } }, "/aerium/transaction/broadcast_transaction": { "post": { "summary": "Broadcasts a signed transaction to the network.", "operationId": "Transaction_BroadcastTransaction", "responses": { "200": { "description": "A successful response.", "schema": { "$ref": "#/definitions/aeriumBroadcastTransactionResponse" } }, "default": { "description": "An unexpected error response.", "schema": { "$ref": "#/definitions/rpcStatus" } } }, "parameters": [ { "name": "body", "description": "Request message for broadcasting a signed transaction to the network.", "in": "body", "required": true, "schema": { "$ref": "#/definitions/aeriumBroadcastTransactionRequest" } } ], "tags": [ "Transaction" ] } }, "/aerium/transaction/calculate_fee": { "post": { "summary": "Calculates the transaction fee based on the specified amount and payload type.", "operationId": "Transaction_CalculateFee", "responses": { "200": { "description": "A successful response.", "schema": { "$ref": "#/definitions/aeriumCalculateFeeResponse" } }, "default": { "description": "An unexpected error response.", "schema": { "$ref": "#/definitions/rpcStatus" } } }, "parameters": [ { "name": "body", "description": "Request message for calculating a transaction fee.", "in": "body", "required": true, "schema": { "$ref": "#/definitions/aeriumCalculateFeeRequest" } } ], "tags": [ "Transaction" ] } }, "/aerium/transaction/decode_raw_transaction": { "post": { "summary": "Decodes a raw transaction and returns the decoded transaction.", "operationId": "Transaction_DecodeRawTransaction", "responses": { "200": { "description": "A successful response.", "schema": { "$ref": "#/definitions/aeriumDecodeRawTransactionResponse" } }, "default": { "description": "An unexpected error response.", "schema": { "$ref": "#/definitions/rpcStatus" } } }, "parameters": [ { "name": "body", "description": "Request message for decoding a raw transaction.", "in": "body", "required": true, "schema": { "$ref": "#/definitions/aeriumDecodeRawTransactionRequest" } } ], "tags": [ "Transaction" ] } }, "/aerium/transaction/get_raw_batch_transfer_transaction": { "post": { "summary": "Retrieves raw details of a batch transfer transaction.", "operationId": "Transaction_GetRawBatchTransferTransaction", "responses": { "200": { "description": "A successful response.", "schema": { "$ref": "#/definitions/aeriumGetRawTransactionResponse" } }, "default": { "description": "An unexpected error response.", "schema": { "$ref": "#/definitions/rpcStatus" } } }, "parameters": [ { "name": "body", "description": "Request message for retrieving raw details of a batch transfer transaction.", "in": "body", "required": true, "schema": { "$ref": "#/definitions/aeriumGetRawBatchTransferTransactionRequest" } } ], "tags": [ "Transaction" ] } }, "/aerium/transaction/get_raw_bond_transaction": { "post": { "summary": "Retrieves raw details of a bond transaction.", "operationId": "Transaction_GetRawBondTransaction", "responses": { "200": { "description": "A successful response.", "schema": { "$ref": "#/definitions/aeriumGetRawTransactionResponse" } }, "default": { "description": "An unexpected error response.", "schema": { "$ref": "#/definitions/rpcStatus" } } }, "parameters": [ { "name": "body", "description": "Request message for retrieving raw details of a bond transaction.", "in": "body", "required": true, "schema": { "$ref": "#/definitions/aeriumGetRawBondTransactionRequest" } } ], "tags": [ "Transaction" ] } }, "/aerium/transaction/get_raw_transfer_transaction": { "post": { "summary": "Retrieves raw details of a transfer transaction.", "operationId": "Transaction_GetRawTransferTransaction", "responses": { "200": { "description": "A successful response.", "schema": { "$ref": "#/definitions/aeriumGetRawTransactionResponse" } }, "default": { "description": "An unexpected error response.", "schema": { "$ref": "#/definitions/rpcStatus" } } }, "parameters": [ { "name": "body", "description": "Request message for retrieving raw details of a transfer transaction.", "in": "body", "required": true, "schema": { "$ref": "#/definitions/aeriumGetRawTransferTransactionRequest" } } ], "tags": [ "Transaction" ] } }, "/aerium/transaction/get_raw_unbond_transaction": { "post": { "summary": "Retrieves raw details of an unbond transaction.", "operationId": "Transaction_GetRawUnbondTransaction", "responses": { "200": { "description": "A successful response.", "schema": { "$ref": "#/definitions/aeriumGetRawTransactionResponse" } }, "default": { "description": "An unexpected error response.", "schema": { "$ref": "#/definitions/rpcStatus" } } }, "parameters": [ { "name": "body", "description": "Request message for retrieving raw details of an unbond transaction.", "in": "body", "required": true, "schema": { "$ref": "#/definitions/aeriumGetRawUnbondTransactionRequest" } } ], "tags": [ "Transaction" ] } }, "/aerium/transaction/get_raw_withdraw_transaction": { "post": { "summary": "Retrieves raw details of a withdraw transaction.", "operationId": "Transaction_GetRawWithdrawTransaction", "responses": { "200": { "description": "A successful response.", "schema": { "$ref": "#/definitions/aeriumGetRawTransactionResponse" } }, "default": { "description": "An unexpected error response.", "schema": { "$ref": "#/definitions/rpcStatus" } } }, "parameters": [ { "name": "body", "description": "Request message for retrieving raw details of a withdraw transaction.", "in": "body", "required": true, "schema": { "$ref": "#/definitions/aeriumGetRawWithdrawTransactionRequest" } } ], "tags": [ "Transaction" ] } }, "/aerium/transaction/get_transaction": { "get": { "summary": "Retrieves transaction details based on the provided request parameters.", "operationId": "Transaction_GetTransaction", "responses": { "200": { "description": "A successful response.", "schema": { "$ref": "#/definitions/aeriumGetTransactionResponse" } }, "default": { "description": "An unexpected error response.", "schema": { "$ref": "#/definitions/rpcStatus" } } }, "parameters": [ { "name": "id", "description": "The unique ID of the transaction to retrieve.", "in": "query", "required": false, "type": "string" }, { "name": "verbosity", "description": "The verbosity level for transaction details.\n\n - TRANSACTION_VERBOSITY_DATA: Request transaction data only.\n - TRANSACTION_VERBOSITY_INFO: Request detailed transaction information.", "in": "query", "required": false, "type": "string", "enum": [ "TRANSACTION_VERBOSITY_DATA", "TRANSACTION_VERBOSITY_INFO" ], "default": "TRANSACTION_VERBOSITY_DATA" } ], "tags": [ "Transaction" ] } }, "/aerium/wallet/create_wallet": { "get": { "summary": "Creates a new wallet with the specified parameters.", "operationId": "Wallet_CreateWallet", "responses": { "200": { "description": "A successful response.", "schema": { "$ref": "#/definitions/aeriumCreateWalletResponse" } }, "default": { "description": "An unexpected error response.", "schema": { "$ref": "#/definitions/rpcStatus" } } }, "parameters": [ { "name": "walletName", "description": "The name for the new wallet.", "in": "query", "required": false, "type": "string" }, { "name": "password", "description": "Password to secure the new wallet.", "in": "query", "required": false, "type": "string" } ], "tags": [ "Wallet" ] } }, "/aerium/wallet/get_address_history": { "get": { "summary": "Retrieves the transaction history of an address.", "operationId": "Wallet_GetAddressHistory", "responses": { "200": { "description": "A successful response.", "schema": { "$ref": "#/definitions/aeriumGetAddressHistoryResponse" } }, "default": { "description": "An unexpected error response.", "schema": { "$ref": "#/definitions/rpcStatus" } } }, "parameters": [ { "name": "walletName", "description": "The name of the wallet containing the address.", "in": "query", "required": false, "type": "string" }, { "name": "address", "description": "The address to retrieve history for.", "in": "query", "required": false, "type": "string" } ], "tags": [ "Wallet" ] } }, "/aerium/wallet/get_address_info": { "get": { "summary": "Returns detailed information about a specific address.", "operationId": "Wallet_GetAddressInfo", "responses": { "200": { "description": "A successful response.", "schema": { "$ref": "#/definitions/aeriumGetAddressInfoResponse" } }, "default": { "description": "An unexpected error response.", "schema": { "$ref": "#/definitions/rpcStatus" } } }, "parameters": [ { "name": "walletName", "description": "The name of the wallet containing the address.", "in": "query", "required": false, "type": "string" }, { "name": "address", "description": "The address to query.", "in": "query", "required": false, "type": "string" } ], "tags": [ "Wallet" ] } }, "/aerium/wallet/get_new_address": { "get": { "summary": "Generates a new address for the specified wallet.", "operationId": "Wallet_GetNewAddress", "responses": { "200": { "description": "A successful response.", "schema": { "$ref": "#/definitions/aeriumGetNewAddressResponse" } }, "default": { "description": "An unexpected error response.", "schema": { "$ref": "#/definitions/rpcStatus" } } }, "parameters": [ { "name": "walletName", "description": "The name of the wallet to generate a new address for.", "in": "query", "required": false, "type": "string" }, { "name": "addressType", "description": "The type of address to generate.\n\n - ADDRESS_TYPE_TREASURY: Treasury address type. Should not be used to generate new addresses.\n - ADDRESS_TYPE_VALIDATOR: Validator address type used for validator nodes.\n - ADDRESS_TYPE_BLS_ACCOUNT: Account address type with BLS signature scheme.\n - ADDRESS_TYPE_ED25519_ACCOUNT: Account address type with Ed25519 signature scheme. Note: Generating a new Ed25519 address requires the wallet password.", "in": "query", "required": false, "type": "string", "enum": [ "ADDRESS_TYPE_TREASURY", "ADDRESS_TYPE_VALIDATOR", "ADDRESS_TYPE_BLS_ACCOUNT", "ADDRESS_TYPE_ED25519_ACCOUNT" ], "default": "ADDRESS_TYPE_TREASURY" }, { "name": "label", "description": "A label for the new address.", "in": "query", "required": false, "type": "string" }, { "name": "password", "description": "Password for the new address. Required when address_type is Ed25519.", "in": "query", "required": false, "type": "string" } ], "tags": [ "Wallet" ] } }, "/aerium/wallet/get_total_balance": { "get": { "summary": "Returns the total available balance of the wallet.", "operationId": "Wallet_GetTotalBalance", "responses": { "200": { "description": "A successful response.", "schema": { "$ref": "#/definitions/aeriumGetTotalBalanceResponse" } }, "default": { "description": "An unexpected error response.", "schema": { "$ref": "#/definitions/rpcStatus" } } }, "parameters": [ { "name": "walletName", "description": "The name of the wallet to get the total balance for.", "in": "query", "required": false, "type": "string" } ], "tags": [ "Wallet" ] } }, "/aerium/wallet/get_total_stake": { "get": { "summary": "Returns the total stake amount in the wallet.", "operationId": "Wallet_GetTotalStake", "responses": { "200": { "description": "A successful response.", "schema": { "$ref": "#/definitions/aeriumGetTotalStakeResponse" } }, "default": { "description": "An unexpected error response.", "schema": { "$ref": "#/definitions/rpcStatus" } } }, "parameters": [ { "name": "walletName", "description": "The name of the wallet to get the total stake for.", "in": "query", "required": false, "type": "string" } ], "tags": [ "Wallet" ] } }, "/aerium/wallet/get_validator_address": { "get": { "summary": "Retrieves the validator address associated with a public key.", "operationId": "Wallet_GetValidatorAddress", "responses": { "200": { "description": "A successful response.", "schema": { "$ref": "#/definitions/aeriumGetValidatorAddressResponse" } }, "default": { "description": "An unexpected error response.", "schema": { "$ref": "#/definitions/rpcStatus" } } }, "parameters": [ { "name": "publicKey", "description": "The public key of the validator.", "in": "query", "required": false, "type": "string" } ], "tags": [ "Wallet" ] } }, "/aerium/wallet/get_wallet_info": { "get": { "summary": "Returns detailed information about a specific wallet.", "operationId": "Wallet_GetWalletInfo", "responses": { "200": { "description": "A successful response.", "schema": { "$ref": "#/definitions/aeriumGetWalletInfoResponse" } }, "default": { "description": "An unexpected error response.", "schema": { "$ref": "#/definitions/rpcStatus" } } }, "parameters": [ { "name": "walletName", "description": "The name of the wallet to query.", "in": "query", "required": false, "type": "string" } ], "tags": [ "Wallet" ] } }, "/aerium/wallet/list_address": { "get": { "summary": "Returns all addresses in the specified wallet.", "operationId": "Wallet_ListAddress", "responses": { "200": { "description": "A successful response.", "schema": { "$ref": "#/definitions/aeriumListAddressResponse" } }, "default": { "description": "An unexpected error response.", "schema": { "$ref": "#/definitions/rpcStatus" } } }, "parameters": [ { "name": "walletName", "description": "The name of the queried wallet.", "in": "query", "required": false, "type": "string" } ], "tags": [ "Wallet" ] } }, "/aerium/wallet/list_wallet": { "get": { "summary": "Returns a list of all available wallets.", "operationId": "Wallet_ListWallet", "responses": { "200": { "description": "A successful response.", "schema": { "$ref": "#/definitions/aeriumListWalletResponse" } }, "default": { "description": "An unexpected error response.", "schema": { "$ref": "#/definitions/rpcStatus" } } }, "tags": [ "Wallet" ] } }, "/aerium/wallet/load_wallet": { "get": { "summary": "Loads an existing wallet with the given name.", "operationId": "Wallet_LoadWallet", "responses": { "200": { "description": "A successful response.", "schema": { "$ref": "#/definitions/aeriumLoadWalletResponse" } }, "default": { "description": "An unexpected error response.", "schema": { "$ref": "#/definitions/rpcStatus" } } }, "parameters": [ { "name": "walletName", "description": "The name of the wallet to load.", "in": "query", "required": false, "type": "string" } ], "tags": [ "Wallet" ] } }, "/aerium/wallet/restore_wallet": { "get": { "summary": "Restores an existing wallet with the given mnemonic.", "operationId": "Wallet_RestoreWallet", "responses": { "200": { "description": "A successful response.", "schema": { "$ref": "#/definitions/aeriumRestoreWalletResponse" } }, "default": { "description": "An unexpected error response.", "schema": { "$ref": "#/definitions/rpcStatus" } } }, "parameters": [ { "name": "walletName", "description": "The name for the restored wallet.", "in": "query", "required": false, "type": "string" }, { "name": "mnemonic", "description": "The mnemonic (seed phrase) for wallet recovery.", "in": "query", "required": false, "type": "string" }, { "name": "password", "description": "Password to secure the restored wallet.", "in": "query", "required": false, "type": "string" } ], "tags": [ "Wallet" ] } }, "/aerium/wallet/set_address_label": { "patch": { "summary": "Sets or updates the label for a given address.", "operationId": "Wallet_SetAddressLabel", "responses": { "200": { "description": "A successful response.", "schema": { "$ref": "#/definitions/aeriumSetAddressLabelResponse" } }, "default": { "description": "An unexpected error response.", "schema": { "$ref": "#/definitions/rpcStatus" } } }, "parameters": [ { "name": "walletName", "description": "The name of the wallet containing the address.", "in": "query", "required": false, "type": "string" }, { "name": "password", "description": "Wallet password required for modification.", "in": "query", "required": false, "type": "string" }, { "name": "address", "description": "The address to label.", "in": "query", "required": false, "type": "string" }, { "name": "label", "description": "The new label for the address.", "in": "query", "required": false, "type": "string" } ], "tags": [ "Wallet" ] } }, "/aerium/wallet/sign_message": { "get": { "summary": "Signs an arbitrary message using a wallet's private key.", "operationId": "Wallet_SignMessage", "responses": { "200": { "description": "A successful response.", "schema": { "$ref": "#/definitions/aeriumSignMessageResponse" } }, "default": { "description": "An unexpected error response.", "schema": { "$ref": "#/definitions/rpcStatus" } } }, "parameters": [ { "name": "walletName", "description": "The name of the wallet to sign with.", "in": "query", "required": false, "type": "string" }, { "name": "password", "description": "Wallet password required for signing.", "in": "query", "required": false, "type": "string" }, { "name": "address", "description": "The address whose private key should be used for signing the message.", "in": "query", "required": false, "type": "string" }, { "name": "message", "description": "The arbitrary message to be signed.", "in": "query", "required": false, "type": "string" } ], "tags": [ "Wallet" ] } }, "/aerium/wallet/sign_raw_transaction": { "get": { "summary": "Signs a raw transaction for a specified wallet.", "operationId": "Wallet_SignRawTransaction", "responses": { "200": { "description": "A successful response.", "schema": { "$ref": "#/definitions/aeriumSignRawTransactionResponse" } }, "default": { "description": "An unexpected error response.", "schema": { "$ref": "#/definitions/rpcStatus" } } }, "parameters": [ { "name": "walletName", "description": "The name of the wallet used for signing.", "in": "query", "required": false, "type": "string" }, { "name": "rawTransaction", "description": "The raw transaction data to be signed.", "in": "query", "required": false, "type": "string" }, { "name": "password", "description": "Wallet password required for signing.", "in": "query", "required": false, "type": "string" } ], "tags": [ "Wallet" ] } }, "/aerium/wallet/unload_wallet": { "get": { "summary": "Unloads a currently loaded wallet with the specified name.", "operationId": "Wallet_UnloadWallet", "responses": { "200": { "description": "A successful response.", "schema": { "$ref": "#/definitions/aeriumUnloadWalletResponse" } }, "default": { "description": "An unexpected error response.", "schema": { "$ref": "#/definitions/rpcStatus" } } }, "parameters": [ { "name": "walletName", "description": "The name of the wallet to unload.", "in": "query", "required": false, "type": "string" } ], "tags": [ "Wallet" ] } } }, "definitions": { "aeriumAccountInfo": { "type": "object", "properties": { "hash": { "type": "string", "description": "The hash of the account." }, "data": { "type": "string", "description": "The serialized data of the account." }, "number": { "type": "integer", "format": "int32", "description": "The unique number assigned to the account." }, "balance": { "type": "string", "format": "int64", "description": "The balance of the account in NanoPAC." }, "address": { "type": "string", "description": "The address of the account." } }, "description": "Message containing information about an account." }, "aeriumAddressInfo": { "type": "object", "properties": { "address": { "type": "string", "description": "The address string." }, "publicKey": { "type": "string", "description": "The public key associated with the address." }, "label": { "type": "string", "description": "A human-readable label associated with the address." }, "path": { "type": "string", "description": "The Hierarchical Deterministic (HD) path of the address within the wallet." } }, "description": "AddressInfo contains detailed information about a wallet address." }, "aeriumAddressType": { "type": "string", "enum": [ "ADDRESS_TYPE_TREASURY", "ADDRESS_TYPE_VALIDATOR", "ADDRESS_TYPE_BLS_ACCOUNT", "ADDRESS_TYPE_ED25519_ACCOUNT" ], "default": "ADDRESS_TYPE_TREASURY", "description": "AddressType defines different types of blockchain addresses.\n\n - ADDRESS_TYPE_TREASURY: Treasury address type. Should not be used to generate new addresses.\n - ADDRESS_TYPE_VALIDATOR: Validator address type used for validator nodes.\n - ADDRESS_TYPE_BLS_ACCOUNT: Account address type with BLS signature scheme.\n - ADDRESS_TYPE_ED25519_ACCOUNT: Account address type with Ed25519 signature scheme. Note: Generating a new Ed25519 address requires the wallet password." }, "aeriumBlockHeaderInfo": { "type": "object", "properties": { "version": { "type": "integer", "format": "int32", "description": "The version of the block." }, "prevBlockHash": { "type": "string", "description": "The hash of the previous block." }, "stateRoot": { "type": "string", "description": "The state root hash of the blockchain." }, "sortitionSeed": { "type": "string", "description": "The sortition seed of the block." }, "proposerAddress": { "type": "string", "description": "The address of the proposer of the block." } }, "description": "Message containing information about the header of a block." }, "aeriumBlockVerbosity": { "type": "string", "enum": [ "BLOCK_VERBOSITY_DATA", "BLOCK_VERBOSITY_INFO", "BLOCK_VERBOSITY_TRANSACTIONS" ], "default": "BLOCK_VERBOSITY_DATA", "description": "Enumeration for verbosity levels when requesting block information.\n\n - BLOCK_VERBOSITY_DATA: Request only block data.\n - BLOCK_VERBOSITY_INFO: Request block information and transaction IDs.\n - BLOCK_VERBOSITY_TRANSACTIONS: Request block information and detailed transaction data." }, "aeriumBroadcastTransactionRequest": { "type": "object", "properties": { "signedRawTransaction": { "type": "string", "description": "The signed raw transaction data to be broadcast." } }, "description": "Request message for broadcasting a signed transaction to the network." }, "aeriumBroadcastTransactionResponse": { "type": "object", "properties": { "id": { "type": "string", "description": "The unique ID of the broadcasted transaction." } }, "description": "Response message containing the ID of the broadcasted transaction." }, "aeriumCalculateFeeRequest": { "type": "object", "properties": { "amount": { "type": "string", "format": "int64", "description": "The amount involved in the transaction, specified in NanoPAC." }, "payloadType": { "$ref": "#/definitions/aeriumPayloadType", "description": "The type of transaction payload." }, "fixedAmount": { "type": "boolean", "description": "Indicates if the amount should be fixed and include the fee." } }, "description": "Request message for calculating a transaction fee." }, "aeriumCalculateFeeResponse": { "type": "object", "properties": { "amount": { "type": "string", "format": "int64", "description": "The calculated amount in NanoPAC." }, "fee": { "type": "string", "format": "int64", "description": "The calculated transaction fee in NanoPAC." } }, "description": "Response message containing the calculated transaction fee." }, "aeriumCertificateInfo": { "type": "object", "properties": { "hash": { "type": "string", "description": "The hash of the certificate." }, "round": { "type": "integer", "format": "int32", "description": "The round of the certificate." }, "committers": { "type": "array", "items": { "type": "integer", "format": "int32" }, "description": "List of committers in the certificate." }, "absentees": { "type": "array", "items": { "type": "integer", "format": "int32" }, "description": "List of absentees in the certificate." }, "signature": { "type": "string", "description": "The signature of the certificate." } }, "description": "Message containing information about a certificate." }, "aeriumConnectionInfo": { "type": "object", "properties": { "connections": { "type": "string", "format": "uint64", "description": "Total number of connections." }, "inboundConnections": { "type": "string", "format": "uint64", "description": "Number of inbound connections." }, "outboundConnections": { "type": "string", "format": "uint64", "description": "Number of outbound connections." } }, "description": "ConnectionInfo contains information about the node's connections." }, "aeriumConsensusInfo": { "type": "object", "properties": { "address": { "type": "string", "description": "The address of the consensus instance." }, "active": { "type": "boolean", "description": "Indicates whether the consensus instance is active and part of the committee." }, "height": { "type": "integer", "format": "int64", "description": "The height of the consensus instance." }, "round": { "type": "integer", "format": "int32", "description": "The round of the consensus instance." }, "votes": { "type": "array", "items": { "type": "object", "$ref": "#/definitions/aeriumVoteInfo" }, "description": "List of votes in the consensus instance." } }, "description": "Message containing information about a consensus instance." }, "aeriumCounterInfo": { "type": "object", "properties": { "bytes": { "type": "string", "format": "uint64", "description": "Total number of bytes." }, "bundles": { "type": "string", "format": "uint64", "description": "Total number of bundles." } }, "description": "CounterInfo holds counter data regarding byte and bundle counts." }, "aeriumCreateWalletResponse": { "type": "object", "properties": { "mnemonic": { "type": "string", "description": "The mnemonic (seed phrase) for wallet recovery." } }, "description": "Response message containing wallet recovery mnemonic (seed phrase)." }, "aeriumDecodeRawTransactionRequest": { "type": "object", "properties": { "rawTransaction": { "type": "string", "description": "The raw transaction data in hexadecimal format." } }, "description": "Request message for decoding a raw transaction." }, "aeriumDecodeRawTransactionResponse": { "type": "object", "properties": { "transaction": { "$ref": "#/definitions/aeriumTransactionInfo", "description": "The decoded transaction information." } }, "description": "Response message containing the decoded transaction." }, "aeriumDirection": { "type": "string", "enum": [ "DIRECTION_UNKNOWN", "DIRECTION_INBOUND", "DIRECTION_OUTBOUND" ], "default": "DIRECTION_UNKNOWN", "description": "The Direction enum represents the connection direction between peers.\n\n - DIRECTION_UNKNOWN: Unknown direction (default value).\n - DIRECTION_INBOUND: Inbound connection: peer connected to us.\n - DIRECTION_OUTBOUND: Outbound connection: we connected to the peer." }, "aeriumGetAccountResponse": { "type": "object", "properties": { "account": { "$ref": "#/definitions/aeriumAccountInfo", "description": "Detailed information about the account." } }, "description": "Response message containing account information." }, "aeriumGetAddressHistoryResponse": { "type": "object", "properties": { "historyInfo": { "type": "array", "items": { "type": "object", "$ref": "#/definitions/aeriumHistoryInfo" }, "description": "List of all historical transactions associated with the address." } }, "description": "Response message containing address transaction history." }, "aeriumGetAddressInfoResponse": { "type": "object", "properties": { "walletName": { "type": "string", "description": "The name of the wallet containing the address." }, "address": { "type": "string", "description": "The queried address." }, "label": { "type": "string", "description": "The address label." }, "publicKey": { "type": "string", "description": "The public key of the address." }, "path": { "type": "string", "description": "The Hierarchical Deterministic (HD) path of the address." } }, "description": "Response message containing address details." }, "aeriumGetBlockHashResponse": { "type": "object", "properties": { "hash": { "type": "string", "description": "The hash of the block." } }, "description": "Response message containing a block hash." }, "aeriumGetBlockHeightResponse": { "type": "object", "properties": { "height": { "type": "integer", "format": "int64", "description": "The height of the block." } }, "description": "Response message containing a block height." }, "aeriumGetBlockResponse": { "type": "object", "properties": { "height": { "type": "integer", "format": "int64", "description": "The height of the block." }, "hash": { "type": "string", "description": "The hash of the block." }, "data": { "type": "string", "description": "Block data, available only if verbosity level is set to BLOCK_DATA." }, "blockTime": { "type": "integer", "format": "int64", "description": "The timestamp of the block." }, "header": { "$ref": "#/definitions/aeriumBlockHeaderInfo", "description": "Header information of the block." }, "prevCert": { "$ref": "#/definitions/aeriumCertificateInfo", "description": "Certificate information of the previous block." }, "txs": { "type": "array", "items": { "type": "object", "$ref": "#/definitions/aeriumTransactionInfo" }, "description": "List of transactions in the block, available when verbosity level is set to BLOCK_TRANSACTIONS." } }, "description": "Response message containing block information." }, "aeriumGetBlockchainInfoResponse": { "type": "object", "properties": { "lastBlockHeight": { "type": "integer", "format": "int64", "description": "The height of the last block in the blockchain." }, "lastBlockHash": { "type": "string", "description": "The hash of the last block in the blockchain." }, "totalAccounts": { "type": "integer", "format": "int32", "description": "The total number of accounts in the blockchain." }, "totalValidators": { "type": "integer", "format": "int32", "description": "The total number of validators in the blockchain." }, "activeValidators": { "type": "integer", "format": "int32", "description": "The number of active (not unbonded) validators in the blockchain." }, "totalPower": { "type": "string", "format": "int64", "description": "The total power of the blockchain." }, "committeePower": { "type": "string", "format": "int64", "description": "The power of the committee." }, "committeeValidators": { "type": "array", "items": { "type": "object", "$ref": "#/definitions/aeriumValidatorInfo" }, "description": "List of committee validators." }, "isPruned": { "type": "boolean", "description": "Indicates if blocks are subject to pruning." }, "pruningHeight": { "type": "integer", "format": "int64", "description": "The lowest-height block stored (only present if pruning is enabled)." }, "lastBlockTime": { "type": "string", "format": "int64", "description": "Timestamp of the last block in Unix format." }, "committeeProtocolVersions": { "type": "object", "additionalProperties": { "type": "number", "format": "double" }, "description": "Map of protocol versions and their percentages in the committee." } }, "description": "Response message containing general blockchain information." }, "aeriumGetConsensusInfoResponse": { "type": "object", "properties": { "proposal": { "$ref": "#/definitions/aeriumProposalInfo", "description": "The proposal information for consensus." }, "instances": { "type": "array", "items": { "type": "object", "$ref": "#/definitions/aeriumConsensusInfo" }, "description": "List of consensus instances." } }, "description": "Response message containing consensus information." }, "aeriumGetNetworkInfoResponse": { "type": "object", "properties": { "networkName": { "type": "string", "description": "Name of the network." }, "connectedPeersCount": { "type": "integer", "format": "int64", "description": "Number of connected peers." }, "connectedPeers": { "type": "array", "items": { "type": "object", "$ref": "#/definitions/aeriumPeerInfo" }, "description": "List of connected peers." }, "metricInfo": { "$ref": "#/definitions/aeriumMetricInfo", "description": "Metrics related to node activity." } }, "description": "Response message containing information about the overall network." }, "aeriumGetNewAddressResponse": { "type": "object", "properties": { "walletName": { "type": "string", "description": "The name of the wallet where the address was generated." }, "addressInfo": { "$ref": "#/definitions/aeriumAddressInfo", "description": "Detailed information about the new address." } }, "description": "Response message containing newly generated address information." }, "aeriumGetNodeInfoResponse": { "type": "object", "properties": { "moniker": { "type": "string", "description": "Moniker or human-readable name identifying this node in the network." }, "agent": { "type": "string", "description": "Version and agent details of the node." }, "peerId": { "type": "string", "description": "Peer ID of the node." }, "startedAt": { "type": "string", "format": "uint64", "description": "Unix timestamp when the node was started (UTC)." }, "reachability": { "type": "string", "description": "Reachability status of the node." }, "services": { "type": "integer", "format": "int32", "description": "Bitfield representing the services provided by the node." }, "servicesNames": { "type": "string", "description": "Names of services provided by the node." }, "localAddrs": { "type": "array", "items": { "type": "string" }, "description": "List of addresses associated with the node." }, "protocols": { "type": "array", "items": { "type": "string" }, "description": "List of protocols supported by the node." }, "clockOffset": { "type": "number", "format": "double", "description": "Offset between the node's clock and the network's clock (in seconds)." }, "connectionInfo": { "$ref": "#/definitions/aeriumConnectionInfo", "description": "Information about the node's connections." }, "zmqPublishers": { "type": "array", "items": { "type": "object", "$ref": "#/definitions/aeriumZMQPublisherInfo" }, "description": "List of active ZeroMQ publishers." }, "currentTime": { "type": "string", "format": "uint64", "description": "Current Unix timestamp of the node (UTC)." } }, "description": "Response message containing information about a specific node in the network." }, "aeriumGetPublicKeyResponse": { "type": "object", "properties": { "publicKey": { "type": "string", "description": "The public key associated with the provided address." } }, "description": "Response message containing public key information." }, "aeriumGetRawBatchTransferTransactionRequest": { "type": "object", "properties": { "lockTime": { "type": "integer", "format": "int64", "description": "The lock time for the transaction. If not set, defaults to the last block height." }, "sender": { "type": "string", "description": "The sender's account address." }, "recipients": { "type": "array", "items": { "type": "object", "$ref": "#/definitions/aeriumRecipient" }, "description": "The list of recipients, each with a receiver and amount. Minimum 2 recipients required." }, "fee": { "type": "string", "format": "int64", "description": "The transaction fee in NanoPAC. If not set, it is set to the estimated fee." }, "memo": { "type": "string", "description": "A memo string for the transaction." } }, "description": "Request message for retrieving raw details of a batch transfer transaction." }, "aeriumGetRawBondTransactionRequest": { "type": "object", "properties": { "lockTime": { "type": "integer", "format": "int64", "description": "The lock time for the transaction. If not set, defaults to the last block height." }, "sender": { "type": "string", "description": "The sender's account address." }, "receiver": { "type": "string", "description": "The receiver's validator address." }, "stake": { "type": "string", "format": "int64", "description": "The stake amount in NanoPAC. Must be greater than 0." }, "publicKey": { "type": "string", "description": "The public key of the validator. Optional, but required when registering a new validator." }, "fee": { "type": "string", "format": "int64", "description": "The transaction fee in NanoPAC. If not set, it is set to the estimated fee." }, "memo": { "type": "string", "description": "A memo string for the transaction." } }, "description": "Request message for retrieving raw details of a bond transaction." }, "aeriumGetRawTransactionResponse": { "type": "object", "properties": { "rawTransaction": { "type": "string", "description": "The raw transaction data in hexadecimal format." }, "id": { "type": "string", "description": "The unique ID of the transaction." } }, "description": "Response message containing raw transaction data." }, "aeriumGetRawTransferTransactionRequest": { "type": "object", "properties": { "lockTime": { "type": "integer", "format": "int64", "description": "The lock time for the transaction. If not set, defaults to the last block height." }, "sender": { "type": "string", "description": "The sender's account address." }, "receiver": { "type": "string", "description": "The receiver's account address." }, "amount": { "type": "string", "format": "int64", "description": "The amount to be transferred, specified in NanoPAC. Must be greater than 0." }, "fee": { "type": "string", "format": "int64", "description": "The transaction fee in NanoPAC. If not set, it is set to the estimated fee." }, "memo": { "type": "string", "description": "A memo string for the transaction." } }, "description": "Request message for retrieving raw details of a transfer transaction." }, "aeriumGetRawUnbondTransactionRequest": { "type": "object", "properties": { "lockTime": { "type": "integer", "format": "int64", "description": "The lock time for the transaction. If not set, defaults to the last block height." }, "validatorAddress": { "type": "string", "description": "The address of the validator to unbond from." }, "memo": { "type": "string", "description": "A memo string for the transaction." } }, "description": "Request message for retrieving raw details of an unbond transaction." }, "aeriumGetRawWithdrawTransactionRequest": { "type": "object", "properties": { "lockTime": { "type": "integer", "format": "int64", "description": "The lock time for the transaction. If not set, defaults to the last block height." }, "validatorAddress": { "type": "string", "description": "The address of the validator to withdraw from." }, "accountAddress": { "type": "string", "description": "The address of the account to withdraw to." }, "amount": { "type": "string", "format": "int64", "description": "The withdrawal amount in NanoPAC. Must be greater than 0." }, "fee": { "type": "string", "format": "int64", "description": "The transaction fee in NanoPAC. If not set, it is set to the estimated fee." }, "memo": { "type": "string", "description": "A memo string for the transaction." } }, "description": "Request message for retrieving raw details of a withdraw transaction." }, "aeriumGetTotalBalanceResponse": { "type": "object", "properties": { "walletName": { "type": "string", "description": "The name of the queried wallet." }, "totalBalance": { "type": "string", "format": "int64", "description": "The total balance of the wallet in NanoPAC." } }, "description": "Response message containing the total available balance of the wallet." }, "aeriumGetTotalStakeResponse": { "type": "object", "properties": { "walletName": { "type": "string", "description": "The name of the queried wallet." }, "totalStake": { "type": "string", "format": "int64", "description": "The total stake amount in NanoPAC." } }, "description": "Response message containing the total stake of the wallet." }, "aeriumGetTransactionResponse": { "type": "object", "properties": { "blockHeight": { "type": "integer", "format": "int64", "description": "The height of the block containing the transaction." }, "blockTime": { "type": "integer", "format": "int64", "description": "The UNIX timestamp of the block containing the transaction." }, "transaction": { "$ref": "#/definitions/aeriumTransactionInfo", "description": "Detailed information about the transaction." } }, "description": "Response message containing details of a transaction." }, "aeriumGetTxPoolContentResponse": { "type": "object", "properties": { "txs": { "type": "array", "items": { "type": "object", "$ref": "#/definitions/aeriumTransactionInfo" }, "description": "List of transactions currently in the pool." } }, "description": "Response message containing transactions in the transaction pool." }, "aeriumGetValidatorAddressResponse": { "type": "object", "properties": { "address": { "type": "string", "description": "The validator address associated with the public key." } }, "description": "Response message containing the validator address corresponding to a public key." }, "aeriumGetValidatorAddressesResponse": { "type": "object", "properties": { "addresses": { "type": "array", "items": { "type": "string" }, "description": "List of validator addresses." } }, "description": "Response message containing a list of validator addresses." }, "aeriumGetValidatorResponse": { "type": "object", "properties": { "validator": { "$ref": "#/definitions/aeriumValidatorInfo", "description": "Detailed information about the validator." } }, "description": "Response message containing validator information." }, "aeriumGetWalletInfoResponse": { "type": "object", "properties": { "walletName": { "type": "string", "description": "The name of the wallet to query." }, "version": { "type": "string", "format": "int64", "description": "The wallet format version." }, "network": { "type": "string", "description": "The network the wallet is connected to (e.g., mainnet, testnet)." }, "encrypted": { "type": "boolean", "description": "Indicates if the wallet is encrypted." }, "uuid": { "type": "string", "description": "A unique identifier for the wallet." }, "createdAt": { "type": "string", "format": "int64", "description": "Unix timestamp of wallet creation." }, "defaultFee": { "type": "string", "format": "int64", "description": "The default fee configured for this wallet in NanoAUM." } }, "description": "Response message containing wallet details." }, "aeriumHistoryInfo": { "type": "object", "properties": { "transactionId": { "type": "string", "description": "The transaction ID in hexadecimal format." }, "time": { "type": "integer", "format": "int64", "description": "Unix timestamp of when the transaction was confirmed." }, "payloadType": { "type": "string", "description": "The type of transaction payload." }, "description": { "type": "string", "description": "Human-readable description of the transaction." }, "amount": { "type": "string", "format": "int64", "description": "The transaction amount in NanoPAC." } }, "description": "HistoryInfo contains transaction history details for an address." }, "aeriumListAddressResponse": { "type": "object", "properties": { "walletName": { "type": "string", "description": "The name of the queried wallet." }, "data": { "type": "array", "items": { "type": "object", "$ref": "#/definitions/aeriumAddressInfo" }, "description": "List of all addresses in the wallet with their details." } }, "description": "Response message containing wallet addresses." }, "aeriumListWalletResponse": { "type": "object", "properties": { "wallets": { "type": "array", "items": { "type": "string" }, "description": "Array of wallet names." } }, "description": "Response message containing wallet names." }, "aeriumLoadWalletResponse": { "type": "object", "properties": { "walletName": { "type": "string", "description": "The name of the loaded wallet." } }, "description": "Response message confirming wallet loaded." }, "aeriumMetricInfo": { "type": "object", "properties": { "totalInvalid": { "$ref": "#/definitions/aeriumCounterInfo", "description": "Total number of invalid bundles." }, "totalSent": { "$ref": "#/definitions/aeriumCounterInfo", "description": "Total number of bundles sent." }, "totalReceived": { "$ref": "#/definitions/aeriumCounterInfo", "description": "Total number of bundles received." }, "messageSent": { "type": "object", "additionalProperties": { "$ref": "#/definitions/aeriumCounterInfo" }, "description": "Number of sent bundles categorized by message type." }, "messageReceived": { "type": "object", "additionalProperties": { "$ref": "#/definitions/aeriumCounterInfo" }, "description": "Number of received bundles categorized by message type." } }, "description": "MetricInfo contains metrics data regarding network activity." }, "aeriumPayloadBatchTransfer": { "type": "object", "properties": { "sender": { "type": "string", "description": "The sender's address." }, "recipients": { "type": "array", "items": { "type": "object", "$ref": "#/definitions/aeriumRecipient" }, "description": "The list of recipients, each with a receiver and amount." } }, "description": "Payload for a batch transfer transaction." }, "aeriumPayloadBond": { "type": "object", "properties": { "sender": { "type": "string", "description": "The sender's address." }, "receiver": { "type": "string", "description": "The receiver's address." }, "stake": { "type": "string", "format": "int64", "description": "The stake amount in NanoPAC." }, "publicKey": { "type": "string", "description": "The public key of the validator." } }, "description": "Payload for a bond transaction." }, "aeriumPayloadSortition": { "type": "object", "properties": { "address": { "type": "string", "description": "The validator address associated with the sortition proof." }, "proof": { "type": "string", "description": "The proof for the sortition." } }, "description": "Payload for a sortition transaction." }, "aeriumPayloadTransfer": { "type": "object", "properties": { "sender": { "type": "string", "description": "The sender's address." }, "receiver": { "type": "string", "description": "The receiver's address." }, "amount": { "type": "string", "format": "int64", "description": "The amount to be transferred in NanoPAC." } }, "description": "Payload for a transfer transaction." }, "aeriumPayloadType": { "type": "string", "enum": [ "PAYLOAD_TYPE_UNSPECIFIED", "PAYLOAD_TYPE_TRANSFER", "PAYLOAD_TYPE_BOND", "PAYLOAD_TYPE_SORTITION", "PAYLOAD_TYPE_UNBOND", "PAYLOAD_TYPE_WITHDRAW", "PAYLOAD_TYPE_BATCH_TRANSFER" ], "default": "PAYLOAD_TYPE_UNSPECIFIED", "description": "Enumeration for different types of transaction payloads.\n\n - PAYLOAD_TYPE_UNSPECIFIED: Unspecified payload type.\n - PAYLOAD_TYPE_TRANSFER: Transfer payload type.\n - PAYLOAD_TYPE_BOND: Bond payload type.\n - PAYLOAD_TYPE_SORTITION: Sortition payload type.\n - PAYLOAD_TYPE_UNBOND: Unbond payload type.\n - PAYLOAD_TYPE_WITHDRAW: Withdraw payload type.\n - PAYLOAD_TYPE_BATCH_TRANSFER: Batch transfer payload type." }, "aeriumPayloadUnbond": { "type": "object", "properties": { "validator": { "type": "string", "description": "The address of the validator to unbond from." } }, "description": "Payload for an unbond transaction." }, "aeriumPayloadWithdraw": { "type": "object", "properties": { "validatorAddress": { "type": "string", "description": "The address of the validator to withdraw from." }, "accountAddress": { "type": "string", "description": "The address of the account to withdraw to." }, "amount": { "type": "string", "format": "int64", "description": "The withdrawal amount in NanoPAC." } }, "description": "Payload for a withdraw transaction." }, "aeriumPeerInfo": { "type": "object", "properties": { "status": { "type": "integer", "format": "int32", "description": "Current status of the peer (e.g., connected, disconnected)." }, "moniker": { "type": "string", "description": "Moniker or human-readable name of the peer." }, "agent": { "type": "string", "description": "Version and agent details of the peer." }, "peerId": { "type": "string", "description": "Peer ID of the peer in the P2P network." }, "consensusKeys": { "type": "array", "items": { "type": "string" }, "description": "List of consensus keys used by the peer." }, "consensusAddresses": { "type": "array", "items": { "type": "string" }, "description": "List of consensus addresses used by the peer." }, "services": { "type": "integer", "format": "int64", "description": "Bitfield representing the services provided by the peer." }, "lastBlockHash": { "type": "string", "description": "Hash of the last block the peer knows." }, "height": { "type": "integer", "format": "int64", "description": "Blockchain height of the peer." }, "lastSent": { "type": "string", "format": "int64", "description": "Unix timestamp of the last bundle sent to the peer (UTC)." }, "lastReceived": { "type": "string", "format": "int64", "description": "Unix timestamp of the last bundle received from the peer (UTC)." }, "address": { "type": "string", "description": "Network address of the peer." }, "direction": { "$ref": "#/definitions/aeriumDirection", "description": "Connection direction (e.g., inbound, outbound)." }, "protocols": { "type": "array", "items": { "type": "string" }, "description": "List of protocols supported by the peer." }, "totalSessions": { "type": "integer", "format": "int32", "description": "Total download sessions with the peer." }, "completedSessions": { "type": "integer", "format": "int32", "description": "Completed download sessions with the peer." }, "metricInfo": { "$ref": "#/definitions/aeriumMetricInfo", "description": "Metrics related to peer activity." }, "outboundHelloSent": { "type": "boolean", "description": "Indicates whether the hello message was sent from the outbound connection." } }, "description": "PeerInfo contains information about a peer in the network." }, "aeriumProposalInfo": { "type": "object", "properties": { "height": { "type": "integer", "format": "int64", "description": "The height of the proposal." }, "round": { "type": "integer", "format": "int32", "description": "The round of the proposal." }, "blockData": { "type": "string", "description": "The block data of the proposal." }, "signature": { "type": "string", "description": "The signature of the proposal, signed by the proposer." } }, "description": "Message containing information about a proposal." }, "aeriumPublicKeyAggregationRequest": { "type": "object", "properties": { "publicKeys": { "type": "array", "items": { "type": "string" }, "description": "List of BLS public keys to be aggregated." } }, "description": "Request message for aggregating multiple BLS public keys." }, "aeriumPublicKeyAggregationResponse": { "type": "object", "properties": { "publicKey": { "type": "string", "description": "The aggregated BLS public key." }, "address": { "type": "string", "description": "The blockchain address derived from the aggregated public key." } }, "description": "Response message containing the aggregated BLS public key result." }, "aeriumRecipient": { "type": "object", "properties": { "receiver": { "type": "string", "description": "The receiver's address." }, "amount": { "type": "string", "format": "int64", "description": "The amount in NanoPAC." } }, "description": "Recipient is a receiver with an amount." }, "aeriumRestoreWalletResponse": { "type": "object", "properties": { "walletName": { "type": "string", "description": "The name of the restored wallet." } }, "description": "Response message confirming wallet restoration." }, "aeriumSetAddressLabelResponse": { "type": "object", "description": "Response message for address label update." }, "aeriumSignMessageResponse": { "type": "object", "properties": { "signature": { "type": "string", "description": "The signature in hexadecimal format." } }, "description": "Response message containing the message signature." }, "aeriumSignMessageWithPrivateKeyRequest": { "type": "object", "properties": { "privateKey": { "type": "string", "description": "The private key to sign the message." }, "message": { "type": "string", "description": "The message content to be signed." } }, "description": "Request message for signing a message with a private key." }, "aeriumSignMessageWithPrivateKeyResponse": { "type": "object", "properties": { "signature": { "type": "string", "description": "The resulting signature in hexadecimal format." } }, "description": "Response message containing the signature generated from the message." }, "aeriumSignRawTransactionResponse": { "type": "object", "properties": { "transactionId": { "type": "string", "description": "The ID of the signed transaction." }, "signedRawTransaction": { "type": "string", "description": "The signed raw transaction data." } }, "description": "Response message containing the transaction ID and signed raw transaction." }, "aeriumSignatureAggregationRequest": { "type": "object", "properties": { "signatures": { "type": "array", "items": { "type": "string" }, "description": "List of BLS signatures to be aggregated." } }, "description": "Request message for aggregating multiple BLS signatures." }, "aeriumSignatureAggregationResponse": { "type": "object", "properties": { "signature": { "type": "string", "description": "The aggregated BLS signature in hexadecimal format." } }, "description": "Response message containing the aggregated BLS signature." }, "aeriumTransactionInfo": { "type": "object", "properties": { "id": { "type": "string", "description": "The unique ID of the transaction." }, "data": { "type": "string", "description": "The raw transaction data in hexadecimal format." }, "version": { "type": "integer", "format": "int32", "description": "The version of the transaction." }, "lockTime": { "type": "integer", "format": "int64", "description": "The lock time for the transaction." }, "value": { "type": "string", "format": "int64", "description": "The value of the transaction in NanoPAC." }, "fee": { "type": "string", "format": "int64", "description": "The fee for the transaction in NanoPAC." }, "payloadType": { "$ref": "#/definitions/aeriumPayloadType", "description": "The type of transaction payload." }, "transfer": { "$ref": "#/definitions/aeriumPayloadTransfer", "description": "Transfer transaction payload." }, "bond": { "$ref": "#/definitions/aeriumPayloadBond", "description": "Bond transaction payload." }, "sortition": { "$ref": "#/definitions/aeriumPayloadSortition", "description": "Sortition transaction payload." }, "unbond": { "$ref": "#/definitions/aeriumPayloadUnbond", "description": "Unbond transaction payload." }, "withdraw": { "$ref": "#/definitions/aeriumPayloadWithdraw", "description": "Withdraw transaction payload." }, "batchTransfer": { "$ref": "#/definitions/aeriumPayloadBatchTransfer", "description": "Batch transfer transaction payload." }, "memo": { "type": "string", "description": "A memo string for the transaction." }, "publicKey": { "type": "string", "description": "The public key associated with the transaction." }, "signature": { "type": "string", "description": "The signature for the transaction." } }, "description": "Information about a transaction." }, "aeriumTransactionVerbosity": { "type": "string", "enum": [ "TRANSACTION_VERBOSITY_DATA", "TRANSACTION_VERBOSITY_INFO" ], "default": "TRANSACTION_VERBOSITY_DATA", "description": "Enumeration for verbosity levels when requesting transaction details.\n\n - TRANSACTION_VERBOSITY_DATA: Request transaction data only.\n - TRANSACTION_VERBOSITY_INFO: Request detailed transaction information." }, "aeriumUnloadWalletResponse": { "type": "object", "properties": { "walletName": { "type": "string", "description": "The name of the unloaded wallet." } }, "description": "Response message confirming wallet unloading." }, "aeriumValidatorInfo": { "type": "object", "properties": { "hash": { "type": "string", "description": "The hash of the validator." }, "data": { "type": "string", "description": "The serialized data of the validator." }, "publicKey": { "type": "string", "description": "The public key of the validator." }, "number": { "type": "integer", "format": "int32", "description": "The unique number assigned to the validator." }, "stake": { "type": "string", "format": "int64", "description": "The stake of the validator in NanoPAC." }, "lastBondingHeight": { "type": "integer", "format": "int64", "description": "The height at which the validator last bonded." }, "lastSortitionHeight": { "type": "integer", "format": "int64", "description": "The height at which the validator last participated in sortition." }, "unbondingHeight": { "type": "integer", "format": "int64", "description": "The height at which the validator will unbond." }, "address": { "type": "string", "description": "The address of the validator." }, "availabilityScore": { "type": "number", "format": "double", "description": "The availability score of the validator." }, "protocolVersion": { "type": "integer", "format": "int32", "description": "The protocol version of the validator." } }, "description": "Message containing information about a validator." }, "aeriumVerifyMessageRequest": { "type": "object", "properties": { "message": { "type": "string", "description": "The original message content that was signed." }, "signature": { "type": "string", "description": "The signature to verify in hexadecimal format." }, "publicKey": { "type": "string", "description": "The public key of the signer." } }, "description": "Request message for verifying a message signature." }, "aeriumVerifyMessageResponse": { "type": "object", "properties": { "isValid": { "type": "boolean", "description": "Indicates whether the signature is valid for the given message and public key." } }, "description": "Response message containing the verification result." }, "aeriumVoteInfo": { "type": "object", "properties": { "type": { "$ref": "#/definitions/aeriumVoteType", "description": "The type of the vote." }, "voter": { "type": "string", "description": "The address of the voter." }, "blockHash": { "type": "string", "description": "The hash of the block being voted on." }, "round": { "type": "integer", "format": "int32", "description": "The consensus round of the vote." }, "cpRound": { "type": "integer", "format": "int32", "description": "The change-proposer round of the vote." }, "cpValue": { "type": "integer", "format": "int32", "description": "The change-proposer value of the vote." } }, "description": "Message containing information about a vote." }, "aeriumVoteType": { "type": "string", "enum": [ "VOTE_TYPE_UNSPECIFIED", "VOTE_TYPE_PREPARE", "VOTE_TYPE_PRECOMMIT", "VOTE_TYPE_CP_PRE_VOTE", "VOTE_TYPE_CP_MAIN_VOTE", "VOTE_TYPE_CP_DECIDED" ], "default": "VOTE_TYPE_UNSPECIFIED", "description": "Enumeration for types of votes.\n\n - VOTE_TYPE_UNSPECIFIED: Unspecified vote type.\n - VOTE_TYPE_PREPARE: Prepare vote type.\n - VOTE_TYPE_PRECOMMIT: Precommit vote type.\n - VOTE_TYPE_CP_PRE_VOTE: Change-proposer pre-vote type.\n - VOTE_TYPE_CP_MAIN_VOTE: Change-proposer main-vote type.\n - VOTE_TYPE_CP_DECIDED: Change-proposer decided vote type." }, "aeriumZMQPublisherInfo": { "type": "object", "properties": { "topic": { "type": "string", "description": "The topic associated with the publisher." }, "address": { "type": "string", "description": "The address of the publisher." }, "hwm": { "type": "integer", "format": "int32", "description": "The high-water mark (HWM) for the publisher, indicating the maximum number of messages to queue before dropping older ones." } }, "description": "ZMQPublisherInfo contains information about a ZeroMQ publisher." }, "protobufAny": { "type": "object", "properties": { "@type": { "type": "string" } }, "additionalProperties": {} }, "rpcStatus": { "type": "object", "properties": { "code": { "type": "integer", "format": "int32" }, "message": { "type": "string" }, "details": { "type": "array", "items": { "type": "object", "$ref": "#/definitions/protobufAny" } } } } }, "securityDefinitions": { "BasicAuth": { "type": "basic" } }, "security": [ { "BasicAuth": [] } ] }