Create and start a wallet and add to store.
POST/start
Create and start a wallet and add to store.
Request
- application/json
Body
required
Data to start the wallet
Defines the key of wallet that future requests will need to use as a reference.
Passphrase of the wallet that will be created.
Key of the corresponding seed in the config file to create the wallet.
24-words seed separated with spaces. This parameter is incompatible with seedKey. Either seed or seedKey are required.
Account level xpubkey. This will be used to start wallet on readonly mode.
Start as a multisig wallet. Requires multisig configuration.
Key of the multisig wallet data in the config. This allow wallets to be started without a seedKey, e.g. with the seed on the parameters or from an xpubkey.
Possible values: [gap-limit
, index-limit
]
Default value: gap-limit
Address scanning policy to use.
Gap limit to use when scanning addresses. Only used when scanPolicy is set to 'gap-limit'. If not given the configured default will apply.
Default value: 0
Load addresses starting from this index. Only used when scanPolicy is set to 'index-limit'.
Stop loading addresses at this index. Only used when scanPolicy is set to 'index-limit'. Defaults to policyStartIndex
Possible values: [polling_http_api
, xpub_stream_ws
, manual_stream_ws
]
Default value: polling_http_api
History sync mode for the wallet to use.
Responses
- 200
Start a wallet
- application/json
- Schema
- success
- seed-not-found
- no-wallet-id
- wallet-already-started
- start-failed
Schema
any
Success
{
"success": true
}
Seed key sent does not exist in config file.
{
"success": false,
"message": "Seed not found."
}
No wallet id parameter
{
"success": false,
"message": "Parameter 'wallet-id' is required."
}
Wallet with same id was already started.
{
"success": false,
"message": "Failed to start wallet with id X",
"errorCode": "WALLET_ALREADY_STARTED"
}
Wallet failed to start.
{
"success": false,
"message": "Failed to start wallet with id X"
}