BitTap Documentation
  • About BitTap
  • Wallet Product
    • Custodial vs. Non-Custodial
    • Off-Chain Proof
    • Get Started
    • Privacy Policy
  • DEX PRODUCT
    • Overview
  • Developer Guides
    • Overview
    • API Reference
      • CreateWallet
      • NewAddr
      • DecodeAddr
      • QueryAddrs
      • ImportAsset
      • QueryAssetStat
      • ListAssetHistory
      • Estimate-tx-fee
      • GetAssetBalance
      • GetBtcBalance
      • 💎SendAsset
        • TransferAsset
        • AnchorVirtualPsbt
        • PublishTransfer
      • 💎SendBtc
        • TransferBtc
        • PublishTransferBtc
    • JS SDK
Powered by GitBook
On this page
  1. Developer Guides
  2. API Reference

CreateWallet

Create a wallet for the end user.

POST /api/create-wallet

Headers

Name
Value

Content-Type

application/json

Authorization

Bearer <token>

Body

Name
Type
Description

asset_pubkey

string

Account extended public key to derive asset keys

account_pubkey

string

Account extended public key to derive BTC keys

Request

{
"asset_pubkey":"zpub6rCz8eKwNryyQifJK4yj7KEKzA5XDp31DGf6EpmBgdZnDjPajMVgRJMB8hzNLYmaufVRqXBWcKV5aeepJSY3uSF5z3yPB14jFPhi6Aq2Y2T",
"account_pubkey":"zpub6rU6HxpLkQUXeiHJTr43TW6uNaNZGvsrKT5YKiVBmwkKwvwTm5AXKTynsmUewP8TFRvccq6Z4EJ4L7q7ycc416fT8TGdoTYHn1BmSAuMkSJ"
}

Response

{
  "wallet_id": "263afad1-a7a0-4af9-8ceb-5722aa0114fa",
  "address": "bc1qp9zm6x5q6y02036l2q93936c4fs3acjr546yly"
}
{
  "error": "Invalid request"
}
PreviousAPI ReferenceNextNewAddr

Last updated 9 months ago