Common RPC v0 API Reference

Introduction

The Common RPC API provides a foundational set of methods that are available on all Ixian node types, including DLT, S2, and client-facing nodes. These endpoints allow applications to manage wallets, create transactions, query the network, and perform basic node administration.

All endpoints are accessible via HTTP GET or HTTP POST requests and follow the standard JSON-RPC 2.0 specification.


Node & Network Management

These methods are used to control the node's process and manage its P2P network connections.

MethodDescription
shutdownInitiates a graceful shutdown of the node.
reconnectForces the node to disconnect and reconnect to the network.
connectManually instructs the node to establish a connection to a specific peer.
isolateImmediately disconnects the node from all peers.
blacklistPeerAdds a peer's IP address to the blacklist, preventing future connections.
clearPeerBlacklistClears all entries from the peer blacklist.

Wallet Management

These methods are used to handle the node's local wallets, including loading, unloading, creating addresses, and performing backups.

MethodDescription
listWalletsLists all wallet files available in the node's wallet directory.
loadWalletLoads a specified wallet into memory, making it active.
unloadWalletUnloads a specified wallet from memory, making it inactive.
generateNewAddressGenerates a new address for the primary loaded wallet.
getWalletBackupRetrieves a Base64-encoded backup of the primary wallet file.
getViewingWalletCreates a new wallet file that only has viewing permissions.

Transaction Handling

These methods are used to create, sign, decode, and broadcast transactions to the network.

MethodDescription
addTransactionA high-level method to create, fund, and broadcast a standard transaction.
calculateTransactionFeeCalculates the required fee for a transaction with a given data size.
createRawTransactionCreates an unsigned transaction in its raw, hex-encoded format.
signRawTransactionSigns a raw, hex-encoded transaction with the primary wallet's key.
sendRawTransactionBroadcasts a signed, raw, hex-encoded transaction to the network.
decodeRawTransactionDecodes a raw, hex-encoded transaction into its JSON representation.

Ixian Name System (IXI-NS)

These methods provide a high-level interface for registering and managing names on the Ixian network.

MethodDescription
registerNameRegisters a new name in the IXI-NS.
extendNameExtends the registration period for an existing name.
updateNameCapacityChanges the data capacity and/or owner of a name.
updateNameRecordAdds, updates, or removes data records associated with a name.
recoverNameRecovers control of a name using its designated recovery address.
decodeNameDataDecodes the raw data payload from an IXI-NS transaction.

Information & Queries

These methods are used to get status, balances, and other data from the node and network.

MethodDescription
statusRetrieves a comprehensive overview of the node's current state.
blockHeightRetrieves the block number of the most recent block.
getTotalBalanceRetrieves the total combined balance of all loaded wallets.
myWalletRetrieves the primary address of the loaded wallet.
myPubKeyRetrieves the full public key of the primary loaded wallet.
clientsLists all clients currently connected to the node's server.
serversLists all servers (peers) the node is currently connected to.
getPresenceRetrieves the presence data for a specific Ixian address.
getSectorNodesRetrieves the list of S2 nodes responsible for a given sector.
activity2Retrieves the transaction history for a specific wallet address.

Cryptographic Utilities

These methods provide access to the node's cryptographic functions for signing messages and validating addresses.

MethodDescription
signSigns an arbitrary message with the primary wallet's private key.
verifyVerifies a signature against a message and a public key.
validateAddressChecks if a given string is a valid Ixian address.