Responses
-
Unsupported Media Type
-
Not Acceptable
-
Not Found
Hide response attributes Show response attributes object
-
May occur when a given walletId does not match with any known wallets (because it has been deleted, or has never existed).
-
Value is
no_such_wallet
.
-
-
Bad Request
Hide response attributes Show response attributes object
-
Ok
One of: Hide attributes Show attributes
-
A unique identifier for the wallet
Minimum length is
40
, maximum length is40
. -
Minimum length is
1
, maximum length is255
. -
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. -
Number of consecutive unused addresses allowed.
IMPORTANT DISCLAIMER: Using values other than
20
automatically makes your wallet invalid with regards to BIP-44 address discovery. It means that you will not be able to fully restore your wallet in a different software which is strictly following BIP-44.Beside, using large gaps is not recommended as it may induce important performance degradations. Use at your own risks.
IMPORTANT DISCLAIMER 2: There is no way to
import
addresses generated outside (e.g. using cardano-addresses) into the wallet. Wallet only discovers transactions on its used and unused addresses that are within its currently seenaddress_pool_gap
. Transactions on addresses that "belong" to the wallet but happen to be beyond itsaddress_pool_gap
will not be visible to the wallet. This is a technical limitation of the industry standard BIP-44. See also CIP-1852.Minimum value is
10
, maximum value is100000
. Default value is20
. -
Hide payment_script_template attributes Show payment_script_template attributes object
-
Map of cosigners and their account public keys. Use key as in &cosigner, eg. "cosigner#"
template
string | object Required One of: Leaf value for a script designating a cosigner co-sharing the script.
Format should match the following pattern:
^(cosigner#)[0-9]*$
.Hide attribute Show attribute
-
Script primitive for which all signing keys corresponding to all list cosigners' verification keys are expected to make the script valid.
At least
1
element.One of: Leaf value for a script designating a cosigner co-sharing the script.
Format should match the following pattern:
^(cosigner#)[0-9]*$
.Hide attribute Show attribute
-
Script primitive for which at least a given number of signing keys corresponding to the list cosigners' verification keys are expected to make the script valid.
-
Hide attribute Show attribute
-
Script primitive for which a signing key corresponding to any of the list cosigners' verification keys is expected to make the script valid. It is equivalent to
some
with"at_least"=1
.At least
1
element.One of: Leaf value for a script designating a cosigner co-sharing the script.
Format should match the following pattern:
^(cosigner#)[0-9]*$
.Hide attribute Show attribute
-
Script primitive for which at least a given number of signing keys corresponding to the list cosigners' verification keys are expected to make the script valid.
-
Hide attribute Show attribute
-
Script primitive for which at least a given number of signing keys corresponding to the list cosigners' verification keys are expected to make the script valid.
Hide some attributes Show some attributes object
-
Minimum value is
1
, maximum value is255
. -
At least
1
element.One of: Leaf value for a script designating a cosigner co-sharing the script.
Format should match the following pattern:
^(cosigner#)[0-9]*$
.Hide attribute Show attribute
-
Script primitive for which at least a given number of signing keys corresponding to the list cosigners' verification keys are expected to make the script valid.
-
-
-
-
-
Hide delegation_script_template attributes Show delegation_script_template attributes object
-
Map of cosigners and their account public keys. Use key as in &cosigner, eg. "cosigner#"
template
string | object Required One of: Leaf value for a script designating a cosigner co-sharing the script.
Format should match the following pattern:
^(cosigner#)[0-9]*$
.Hide attribute Show attribute
-
Script primitive for which all signing keys corresponding to all list cosigners' verification keys are expected to make the script valid.
At least
1
element.One of: Leaf value for a script designating a cosigner co-sharing the script.
Format should match the following pattern:
^(cosigner#)[0-9]*$
.Hide attribute Show attribute
-
Script primitive for which at least a given number of signing keys corresponding to the list cosigners' verification keys are expected to make the script valid.
-
Hide attribute Show attribute
-
Script primitive for which a signing key corresponding to any of the list cosigners' verification keys is expected to make the script valid. It is equivalent to
some
with"at_least"=1
.At least
1
element.One of: Leaf value for a script designating a cosigner co-sharing the script.
Format should match the following pattern:
^(cosigner#)[0-9]*$
.Hide attribute Show attribute
-
Script primitive for which at least a given number of signing keys corresponding to the list cosigners' verification keys are expected to make the script valid.
-
Hide attribute Show attribute
-
Script primitive for which at least a given number of signing keys corresponding to the list cosigners' verification keys are expected to make the script valid.
Hide some attributes Show some attributes object
-
Minimum value is
1
, maximum value is255
. -
At least
1
element.One of: Leaf value for a script designating a cosigner co-sharing the script.
Format should match the following pattern:
^(cosigner#)[0-9]*$
.Hide attribute Show attribute
-
Script primitive for which at least a given number of signing keys corresponding to the list cosigners' verification keys are expected to make the script valid.
-
-
-
-
Hide attributes Show attributes
-
A unique identifier for the wallet
Minimum length is
40
, maximum length is40
. -
Minimum length is
1
, maximum length is255
. -
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. -
Number of consecutive unused addresses allowed.
IMPORTANT DISCLAIMER: Using values other than
20
automatically makes your wallet invalid with regards to BIP-44 address discovery. It means that you will not be able to fully restore your wallet in a different software which is strictly following BIP-44.Beside, using large gaps is not recommended as it may induce important performance degradations. Use at your own risks.
IMPORTANT DISCLAIMER 2: There is no way to
import
addresses generated outside (e.g. using cardano-addresses) into the wallet. Wallet only discovers transactions on its used and unused addresses that are within its currently seenaddress_pool_gap
. Transactions on addresses that "belong" to the wallet but happen to be beyond itsaddress_pool_gap
will not be visible to the wallet. This is a technical limitation of the industry standard BIP-44. See also CIP-1852.Minimum value is
10
, maximum value is100000
. Default value is20
. -
Information about the wallet's passphrase
-
Hide payment_script_template attributes Show payment_script_template attributes object
-
Map of cosigners and their account public keys. Use key as in &cosigner, eg. "cosigner#"
template
string | object Required One of: Leaf value for a script designating a cosigner co-sharing the script.
Format should match the following pattern:
^(cosigner#)[0-9]*$
.Hide attribute Show attribute
-
Script primitive for which all signing keys corresponding to all list cosigners' verification keys are expected to make the script valid.
At least
1
element.One of: Leaf value for a script designating a cosigner co-sharing the script.
Format should match the following pattern:
^(cosigner#)[0-9]*$
.Hide attribute Show attribute
-
Script primitive for which at least a given number of signing keys corresponding to the list cosigners' verification keys are expected to make the script valid.
-
Hide attribute Show attribute
-
Script primitive for which a signing key corresponding to any of the list cosigners' verification keys is expected to make the script valid. It is equivalent to
some
with"at_least"=1
.At least
1
element.One of: Leaf value for a script designating a cosigner co-sharing the script.
Format should match the following pattern:
^(cosigner#)[0-9]*$
.Hide attribute Show attribute
-
Script primitive for which at least a given number of signing keys corresponding to the list cosigners' verification keys are expected to make the script valid.
-
Hide attribute Show attribute
-
Script primitive for which at least a given number of signing keys corresponding to the list cosigners' verification keys are expected to make the script valid.
Hide some attributes Show some attributes object
-
Minimum value is
1
, maximum value is255
. -
At least
1
element.One of: Leaf value for a script designating a cosigner co-sharing the script.
Format should match the following pattern:
^(cosigner#)[0-9]*$
.Hide attribute Show attribute
-
Script primitive for which at least a given number of signing keys corresponding to the list cosigners' verification keys are expected to make the script valid.
-
-
-
-
-
Hide delegation_script_template attributes Show delegation_script_template attributes object
-
Map of cosigners and their account public keys. Use key as in &cosigner, eg. "cosigner#"
template
string | object Required One of: Leaf value for a script designating a cosigner co-sharing the script.
Format should match the following pattern:
^(cosigner#)[0-9]*$
.Hide attribute Show attribute
-
Script primitive for which all signing keys corresponding to all list cosigners' verification keys are expected to make the script valid.
At least
1
element.One of: Leaf value for a script designating a cosigner co-sharing the script.
Format should match the following pattern:
^(cosigner#)[0-9]*$
.Hide attribute Show attribute
-
Script primitive for which at least a given number of signing keys corresponding to the list cosigners' verification keys are expected to make the script valid.
-
Hide attribute Show attribute
-
Script primitive for which a signing key corresponding to any of the list cosigners' verification keys is expected to make the script valid. It is equivalent to
some
with"at_least"=1
.At least
1
element.One of: Leaf value for a script designating a cosigner co-sharing the script.
Format should match the following pattern:
^(cosigner#)[0-9]*$
.Hide attribute Show attribute
-
Script primitive for which at least a given number of signing keys corresponding to the list cosigners' verification keys are expected to make the script valid.
-
Hide attribute Show attribute
-
Script primitive for which at least a given number of signing keys corresponding to the list cosigners' verification keys are expected to make the script valid.
Hide some attributes Show some attributes object
-
Minimum value is
1
, maximum value is255
. -
At least
1
element.One of: Leaf value for a script designating a cosigner co-sharing the script.
Format should match the following pattern:
^(cosigner#)[0-9]*$
.Hide attribute Show attribute
-
Script primitive for which at least a given number of signing keys corresponding to the list cosigners' verification keys are expected to make the script valid.
-
-
-
-
-
Wallet current Ada balance(s).
Hide balance attributes Show balance attributes object
-
Available Ada UTxO balance (funds that can be spent without condition).
-
The Ada balance of the reward account for this wallet.
-
Total Ada balance (available balance plus pending change and reward balance).
-
-
Current non-Ada asset holdings of the wallet.
The amount of assets available to spend may be less than the total unspent assets due to transaction change amounts which are yet to be fully confirmed (pending).
Hide assets attributes Show assets attributes object
-
Available UTxO asset balances (funds that can be spent without condition).
An asset on the Cardano blockchain. An asset is uniquely identified by its
policy_id
andasset_name
(together, these form the asset id).Two assets with the same
asset_name
andpolicy_id
are interchangeable. Yet, different assets with a samepolicy_id
but differentasset_name
are treated as separate assets, as are two assets with the sameasset_name
but differentpolicy_id
.Hide available attributes Show available attributes object
-
A unique identifier of the asset's monetary policy. The policy controls how assets of this kind are created and destroyed.
The contents are the blake2b-224 hash of the monetary policy script, encoded in hexadecimal.
Minimum length is
56
, maximum length is56
. -
The asset on-chain type which acts as a sub-identifier within a policy. Although we call it "asset name", the value needn't be text, and it could even be empty.
For policies with a single fungible asset item, asset name is typically an empty string.
This value can be up to 32 bytes of arbitrary data (which is 64 hexadecimal digits).
Maximum length is
64
. -
Number of assets for the given
policy_id
andasset_name
.Minimum value is
0
.
-
-
Total asset balances (available balances plus pending change balances).
An asset on the Cardano blockchain. An asset is uniquely identified by its
policy_id
andasset_name
(together, these form the asset id).Two assets with the same
asset_name
andpolicy_id
are interchangeable. Yet, different assets with a samepolicy_id
but differentasset_name
are treated as separate assets, as are two assets with the sameasset_name
but differentpolicy_id
.Hide total attributes Show total attributes object
-
A unique identifier of the asset's monetary policy. The policy controls how assets of this kind are created and destroyed.
The contents are the blake2b-224 hash of the monetary policy script, encoded in hexadecimal.
Minimum length is
56
, maximum length is56
. -
The asset on-chain type which acts as a sub-identifier within a policy. Although we call it "asset name", the value needn't be text, and it could even be empty.
For policies with a single fungible asset item, asset name is typically an empty string.
This value can be up to 32 bytes of arbitrary data (which is 64 hexadecimal digits).
Maximum length is
64
. -
Number of assets for the given
policy_id
andasset_name
.Minimum value is
0
.
-
-
-
Delegation settings
Hide delegation attributes Show delegation attributes object
-
Currently active delegation status.
Hide active attributes Show active attributes object
-
Values are
not_delegating
,delegating
,voting
, ordelegating_and_voting
. -
A unique Stake-Pool identifier (present only if status =
delegating
) voting
string | string(bech32) Decentralized representative (DRep) that the wallet is delegating its vote to. One can abstain, give no confidence vote, or vote for a representative specified by a key hash or script hash. Vote delegation can be done together with stake delegation action.
-
-
Next delegation status becomes active at the start of the second epoch after the corresponding delegation certificate was discovered. The exact moment is specified by changes_at
Hide next attributes Show next attributes object
-
Values are
not_delegating
,delegating
,voting
, ordelegating_and_voting
. -
A unique Stake-Pool identifier (present only if status =
delegating
) voting
string | string(bech32) Decentralized representative (DRep) that the wallet is delegating its vote to. One can abstain, give no confidence vote, or vote for a representative specified by a key hash or script hash. Vote delegation can be done together with stake delegation action.
-
-
-
Whether a wallet is ready to use or still syncing
Hide state attributes Show state attributes object
-
A reference to a particular time slot, and the block height at that point.
Hide tip attributes Show tip attributes object
-
The 0-based slot index starting from genesis of the blockchain.
Minimum value is
0
. -
The zero-based slot index within an epoch.
Minimum value is
0
. -
An epoch is a time period which is divided into slots.
Minimum value is
0
.
-
-
curl \
--request PUT 'https://localhost:8090/v2/shared-wallets/{walletId}' \
--header "Content-Type: application/json" \
--data '{"name":"Alan's Wallet","one_change_address_mode":false}'
{
"name": "Alan's Wallet",
"one_change_address_mode": false
}
{
"message": "string",
"code": "unsupported_media_type"
}
{
"message": "string",
"code": "not_acceptable"
}
{
"message": "string",
"code": "no_such_wallet",
"info": {
"wallet_id": "2512a00e9653fe49a44a5886202e24d77eeb998f"
}
}
{
"message": "string",
"code": "bad_request"
}
{
"id": "2512a00e9653fe49a44a5886202e24d77eeb998f",
"name": "Alan's Wallet",
"account_index": "1852H",
"address_pool_gap": 20,
"payment_script_template": {
"cosigners": [
{
"cosigner#0": "acct_shared_xvk1z8kc04yh544ksc9h2yhp7p6qwpf6syv5qnm8sgnhdne5z2esht5cwssxsec2wzw3nhxm2d9ph4s6ldmqdvxa0zuxzmukpajhyc7flug3te037"
}
],
"template": "string"
},
"delegation_script_template": {
"cosigners": [
{
"cosigner#0": "acct_shared_xvk1z8kc04yh544ksc9h2yhp7p6qwpf6syv5qnm8sgnhdne5z2esht5cwssxsec2wzw3nhxm2d9ph4s6ldmqdvxa0zuxzmukpajhyc7flug3te037"
}
],
"template": "string"
},
"state": {
"status": "incomplete"
}
}
{
"id": "2512a00e9653fe49a44a5886202e24d77eeb998f",
"name": "Alan's Wallet",
"account_index": "1852H",
"address_pool_gap": 20,
"passphrase": {
"last_updated_at": "2019-02-27T14:46:45Z"
},
"payment_script_template": {
"cosigners": [
{
"cosigner#0": "acct_shared_xvk1z8kc04yh544ksc9h2yhp7p6qwpf6syv5qnm8sgnhdne5z2esht5cwssxsec2wzw3nhxm2d9ph4s6ldmqdvxa0zuxzmukpajhyc7flug3te037"
}
],
"template": "string"
},
"delegation_script_template": {
"cosigners": [
{
"cosigner#0": "acct_shared_xvk1z8kc04yh544ksc9h2yhp7p6qwpf6syv5qnm8sgnhdne5z2esht5cwssxsec2wzw3nhxm2d9ph4s6ldmqdvxa0zuxzmukpajhyc7flug3te037"
}
],
"template": "string"
},
"balance": {
"available": {
"quantity": 42000000,
"unit": "lovelace"
},
"reward": {
"quantity": 42000000,
"unit": "lovelace"
},
"total": {
"quantity": 42000000,
"unit": "lovelace"
}
},
"assets": {
"available": [
{
"policy_id": "65ab82542b0ca20391caaf66a4d4d7897d281f9c136cd3513136945b",
"asset_name": "string",
"quantity": 42
}
],
"total": [
{
"policy_id": "65ab82542b0ca20391caaf66a4d4d7897d281f9c136cd3513136945b",
"asset_name": "string",
"quantity": 42
}
]
},
"delegation": {
"active": {
"status": "delegating",
"target": "1423856bc91c49e928f6f30f4e8d665d53eb4ab6028bd0ac971809d514c92db1"
},
"next": [
{
"status": "not_delegating",
"changes_at": {
"epoch_number": 14,
"epoch_start_time": "2020-01-22T10:06:39Z"
}
}
]
},
"state": {
"status": "ready"
},
"tip": {
"absolute_slot_number": 8086,
"slot_number": 1337,
"epoch_number": 14,
"time": "2019-02-27T14:46:45Z",
"height": {
"quantity": 1337,
"unit": "block"
}
}
}