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

ImportAsset

Import a Taproot Asset from other universe.

POST /api/import-asset

Headers

Name
Value

Content-Type

application/json

Authorization

Bearer <token>

Body

Name
Type
Description

universe_host

string

The host:port or just host of the remote universe

asset_id

string

The asset ID to import from the universe

Request

{
    "universe_host": "universe.lightning.finance:10029",
    "asset_id":"75efd20fbe6bee21182c64d5c9954182f3d1fff9f815bfbb364e260b1b6b4113"
}

Response

{
    "code": 0,
    "data": {
        "asset_id": "75efd20fbe6bee21182c64d5c9954182f3d1fff9f815bfbb364e260b1b6b4113",
        "name": "bits",
        "asset_type": "NORMAL",
        "total_supply": 100000000,
        "genesis_point": "74990e35efe603b89adb1afbb703b240e296c76650033fe7e401fc42863af6e4:1"
    },
    "message": "",
    "traceid": "6cd94418-2871-464d-b4de-5e3d14195f07"
}
{
  "error": "Invalid request"
}
PreviousQueryAddrsNextQueryAssetStat

Last updated 11 months ago