Get Policy Key
status: stable
Return a policy key for a derivation index = 0.
To get a hash of the policy key instead of the policy key,
use query parameter hash=true
.
Path parameters
-
walletId
string(hex) Required Minimum length is
40
, maximum length is40
.
GET
/wallets/{walletId}/policy-key
curl \
--request GET https://localhost:8090/v2/wallets/{walletId}/policy-key
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 (403)
Invalid_wallet_type
{
"message": "string",
"code": "invalid_wallet_type"
}
{
"message": "string",
"code": "missing_policy_public_key"
}
Response examples (200)
string