Sign Metadata
status: experimental
⚠️ WARNING ⚠️
This endpoint is experimental and for internal use in the Catalyst project. This functionality will be refined in the forthcoming future and the interface is likely to change in NON-BACKWARD COMPATIBLE WAYS.
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
H
suffix indicates a Hardened child private key, which means that children of this key cannot be derived from the public key. Indices without aH
suffix are called Soft.
POST
/wallets/{walletId}/signatures/{role}/{index}
curl \
-X POST https://localhost:8090/v2/wallets/{walletId}/signatures/{role}/1852H \
-H "Content-Type: application/json" \
-d '{"passphrase":"Secure Passphrase","metadata":{"0":{"string":"cardano"},"1":{"int":14},"2":{"bytes":"2512a00e9653fe49a44a5886202e24d77eeb998f"},"3":{"list":[{"int":14},{"int":42},{"string":"1337"}]},"4":{"map":[{"k":{"string":"key"},"v":{"string":"value"}},{"k":{"int":14},"v":{"int":42}}]}}}'
Request example
{
"passphrase": "Secure Passphrase",
"metadata": {
"0": {
"string": "cardano"
},
"1": {
"int": 14
},
"2": {
"bytes": "2512a00e9653fe49a44a5886202e24d77eeb998f"
},
"3": {
"list": [
{
"int": 14
},
{
"int": 42
},
{
"string": "1337"
}
]
},
"4": {
"map": [
{
"k": {
"string": "key"
},
"v": {
"string": "value"
}
},
{
"k": {
"int": 14
},
"v": {
"int": 42
}
}
]
}
}
}
Response examples (400)
{
"message": "string",
"code": "bad_request"
}
Response examples (406)
{
"message": "string",
"code": "not_acceptable"
}
Response examples (415)
{
"message": "string",
"code": "an_error_code"
}