|
| 1 | +--- |
| 2 | +description: >- |
| 3 | + The Taproot Assets Daemon tapd implements the Taproot Assets Protocol for |
| 4 | + issuing assets on the Bitcoin blockchain. |
| 5 | +--- |
| 6 | + |
| 7 | +# Get Started |
| 8 | + |
| 9 | +## #Craeful <a href="#docs-internal-guid-f9af6317-7fff-eeb2-2957-b358d3da86da" id="docs-internal-guid-f9af6317-7fff-eeb2-2957-b358d3da86da"></a> |
| 10 | + |
| 11 | +Taproot Assets is alpha software. It is configured to run on regtest, testnet3 and simnet only, where it’s okay if bitcoin or Taproot Assets are irrevocably lost. |
| 12 | + |
| 13 | +## Prerequisites <a href="#docs-internal-guid-29b5ec39-7fff-4a26-d7e9-dfa1d01ff2c6" id="docs-internal-guid-29b5ec39-7fff-4a26-d7e9-dfa1d01ff2c6"></a> |
| 14 | + |
| 15 | +Taproot Assets requires [LND](https://github.com/lightningnetwork/lnd/) v0.16.2. If [compiled from source](../lnd/run-lnd.md#docs-internal-guid-8ffda72d-7fff-a07e-3bb8-93cdf01b5103), it needs to be built with `tags=signrpc walletrpc chainrpc invoicesrpc`. LND needs to be synced and running on the same bitcoin network as you are doing your testing. RPC connections need to be accepted and Macaroons need to be set. [Learn how to set up LND using the default configuration here](../lnd/run-lnd.md). |
| 16 | + |
| 17 | +## Installation: <a href="#docs-internal-guid-0652b60a-7fff-d0e5-15fc-159e8557bc88" id="docs-internal-guid-0652b60a-7fff-d0e5-15fc-159e8557bc88"></a> |
| 18 | + |
| 19 | +### From source: <a href="#docs-internal-guid-5879af55-7fff-021d-8347-7ef95cd98105" id="docs-internal-guid-5879af55-7fff-021d-8347-7ef95cd98105"></a> |
| 20 | + |
| 21 | +Compile Taproot Assets from source by cloning the taproot-assets repository. [Go version 1.18](https://go.dev/dl/) or higher is required (you may check what version of go is running with go version). |
| 22 | + |
| 23 | +`git clone https://github.com/lightninglabs/taproot-assets.git`\ |
| 24 | +`cd taproot-assets`\ |
| 25 | +`make install` |
| 26 | + |
| 27 | +## Configuration: <a href="#docs-internal-guid-8aa3849c-7fff-4b8e-530a-a563b8d9d0b8" id="docs-internal-guid-8aa3849c-7fff-4b8e-530a-a563b8d9d0b8"></a> |
| 28 | + |
| 29 | +Optionally, create a Taproot Assets configuration file under `~/.taproot-assets/tap.conf` on Linux or BSD, `~/Library/Application Support/Taproot-assets/tap.conf` in Mac OS or `$LOCALAPPDATA/Taproot-assets/tap.conf` in Windows. |
| 30 | + |
| 31 | +Within the `tap.conf` file you can permanently set your variables, such as directory, macaroon or other paths and how to connect to your LND. |
| 32 | + |
| 33 | +## Running tapd: <a href="#docs-internal-guid-ebf73e49-7fff-b5ed-44ff-b9b0953c6082" id="docs-internal-guid-ebf73e49-7fff-b5ed-44ff-b9b0953c6082"></a> |
| 34 | + |
| 35 | +Run Taproot Assets with the command `tapd`. Specify how Taproot Assets can reach LND and what bitcoin network to run Taproot Assets with by passing it additional flags. |
| 36 | + |
| 37 | +`tapd –network=testnet –debuglevel=debug —lnd.host=localhost:10009 --lnd.macaroonpath=/.lnd/data/chain/bitcoin/testnet/admin.macaroon --lnd.tlspath=/.lnd/tls.cert --tapdir=~/.taprooot-assets --rpclisten=127.0.0.1:10029 --restlisten=127.0.0.1:8089` |
| 38 | + |
| 39 | +You may run multiple tapd instances on the same machine, but you will also have to set up multiple LND instances. [Refer to this guide](../lnd/run-lnd.md) for how to set up multiple LND instances with a single Bitcoin backend using `rpcpolling`. When running multiple `tapd` instances on one machine, don’t forget to set an alternate Taproot Assets directory and API endpoints and specify these when calling `tapcli` as well. |
| 40 | + |
| 41 | +You can make use of `tapcli profiles` to make calls to separate `tapd` instances on the same machine. |
| 42 | + |
0 commit comments