Import Addresses
status: stable
⚠️ This endpoint is available for random
wallets only. Any
attempt to call this endpoint on another type of wallet will result in
a 403 Forbidden
error from the server.
Path parameters
-
walletId
string(hex) Required Minimum length is
40
, maximum length is40
.
Body
Required
-
addresses
array[string(base58) | bech32] Required A sequence of characters that encodes (in Base58 or Bech32) a sequence of bytes which represents an address on the Cardano blockchain. Sequences in Base58 encoding are expected to be legacy Byron addresses, whereas sequences in Bech32 encoding correspond to current Shelley addresses.
For more details, see CIP-0019 — Cardano addresses .
At least
1
element.
PUT
/byron-wallets/{walletId}/addresses
curl \
--request PUT https://localhost:8090/v2/byron-wallets/{walletId}/addresses \
--header "Content-Type: application/json" \
--data '{"addresses":["addr1sjck9mdmfyhzvjhydcjllgj9vjvl522w0573ncustrrr2rg7h9azg4cyqd36yyd48t5ut72hgld0fg2xfvz82xgwh7wal6g2xt8n996s3xvu5g"]}'
Request examples
{
"addresses": [
"addr1sjck9mdmfyhzvjhydcjllgj9vjvl522w0573ncustrrr2rg7h9azg4cyqd36yyd48t5ut72hgld0fg2xfvz82xgwh7wal6g2xt8n996s3xvu5g"
]
}
Response examples (403)
{
"message": "string",
"code": "an_error_code"
}
Response examples (400)
{
"message": "string",
"code": "bad_request"
}