ImportAsset

Import a Taproot Asset from other universe.

POST /api/import-asset

Headers

NameValue

Content-Type

application/json

Authorization

Bearer <token>

Body

NameTypeDescription

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"
}

Last updated