My Public Key

My Public Key

Returns the primary public key of this node.

Method: mypubkey

Input parameters:

ParameterTypeRequiredDescription
walletStringNoBase58 Primary Wallet address in case multiple wallets are being used.

Errors:

ErrorDescription
RPC_INTERNAL_ERRORAn unknown error occurred in the node. Please check the node log for details.

Output:

  • success: public key in the result field with the error field set to null
  • fail: JSON encoded details with a non-null error and a null result

Example:

GET http://localhost:8081/mypubkey

{
	"result": "00020000...5d1e69cb503000000010001",
	"error": null,
	"id": null
}