List

GET /shared-wallets

status: stable

Return a list of known shared wallets, ordered from oldest to newest.

Responses

  • 406 application/json

    Not Acceptable

    Hide response attributes Show response attributes object
    • message string Required

      May occur when providing an invalid 'Accept' header.

    • code string Required

      Value is not_acceptable.

  • 200 application/json

    Ok

    One of:
    Hide attributes Show attributes
    • id string(hex) Required

      A unique identifier for the wallet

      Minimum length is 40, maximum length is 40.

    • name string Required

      Minimum length is 1, maximum length is 255.

    • account_index string Required

      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 a H suffix are called Soft.

    • address_pool_gap integer Required

      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 seen address_pool_gap. Transactions on addresses that "belong" to the wallet but happen to be beyond its address_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 is 100000. Default value is 20.

    • Additional properties are allowed.

      Hide payment_script_template attributes Show payment_script_template attributes object
      • cosigners object Required

        Map of cosigners and their account public keys. Use key as in &cosigner, eg. "cosigner#"

        Hide cosigners attribute Show cosigners attribute object
        • * string(bech32) Additional properties

          An extended account public key (public key + chain code) of shared wallet

          Format should match the following pattern: ^(acct_shared_xvk)1[0-9a-z]*$.

      • 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]*$.

    • Additional properties are allowed.

      Hide delegation_script_template attributes Show delegation_script_template attributes object
      • cosigners object Required

        Map of cosigners and their account public keys. Use key as in &cosigner, eg. "cosigner#"

        Hide cosigners attribute Show cosigners attribute object
        • * string(bech32) Additional properties

          An extended account public key (public key + chain code) of shared wallet

          Format should match the following pattern: ^(acct_shared_xvk)1[0-9a-z]*$.

      • 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]*$.

    • state object Required

      Additional properties are allowed.

      Hide state attribute Show state attribute object
      • status string Required

        An incomplete shared wallet does not have a complete set of keys, so the only possible status is incomplete.

        Value is incomplete.

GET /shared-wallets
curl \
 --request GET 'https://localhost:8090/v2/shared-wallets'
Response examples (406)
{
  "message": "string",
  "code": "not_acceptable"
}
Response examples (200)
[
  {
    "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"
    }
  }
]