Create a new wallet
This endpoint will store one or more Bitcoin addresses that will be used to withdraw Bitcoin to. You can either specify an extended public key or a list of addresses. We never store the extended public key but simply derive 500 addresses from it and store those addresses instead.
Request Body | ||
---|---|---|
extendedPublicKey stringExtended public key of the wallet. | ||
btcAddresses object[]List of Bitcoin addresses to be used in the wallet
| ||
displayName stringWallet name used to identify this wallet in the Swan Bitcoin UI (usually this will be your app name) | ||
metadata objectMetadata to be stored with the wallet |
Responses | ||||||
---|---|---|---|---|---|---|
200 success
| ||||||
400 Missing or invalid parameters. | ||||||
401 Access token is missing or invalid, or access is out of scope. | ||||||
422 Invalid extended public key or error deriving addresses from extended public key. |