Get Public Key
status: stable
Return a public key for a given role and derivation index.
To get a hash of the public key, instead of the public key,
use query parameter hash=true.
Note: Only Soft indexes are supported by this endpoint.
Path parameters
-
Minimum length is
40, maximum length is40. -
Values are
utxo_external,utxo_internal, ormutable_account. -
An individual segment within a derivation path.
The
Hsuffix indicates a Hardened child private key, which means that children of this key cannot be derived from the public key. Indices without aHsuffix are called Soft.
GET
/wallets/{walletId}/keys/{role}/{index}
curl \
--request GET 'https://localhost:8090/v2/wallets/{walletId}/keys/{role}/1852H'
Response examples (406)
{
"message": "string",
"code": "not_acceptable"
}
Response examples (404)
{
"message": "string",
"code": "an_error_code"
}
Response examples (400)
{
"message": "string",
"code": "bad_request"
}
Response examples (200)
string