@@ -42,6 +42,37 @@ Methods for working with the Lightning Network
4242
4343To connect to an LND node, authentication details are required.
4444
45+ ## Taproot Assets Support
46+
47+ This library includes support for Taproot Assets via the ` tapd ` daemon. Currently supported methods:
48+
49+ - ** listTaprootAssetBalances** : List Taproot Asset balances
50+
51+ ## Tapd Authentication
52+
53+ To connect to a Tapd node, authentication details are required, similar to LND.
54+
55+ Export credentials via CLI or manually:
56+
57+ Run ` base64 ` on the tls.cert and admin.macaroon files to get the encoded
58+ authentication data to create the Tapd connection. You can find these files in
59+ the Tapd directory. (~ /.tapd or ~ /Library/Application Support/Tapd)
60+
61+ base64 -w0 ~/.tapd/tls.cert
62+ base64 -w0 ~/.tapd/data/mainnet/admin.macaroon
63+
64+ You can then use these to interact with your Tapd node directly:
65+
66+ ``` node
67+ const {authenticatedTapdGrpc } = require (' lightning' );
68+
69+ const {tapd } = authenticatedTapdGrpc ({
70+ cert: ' base64 encoded tls.cert file' ,
71+ macaroon: ' base64 encoded admin.macaroon file' ,
72+ socket: ' 127.0.0.1:10029' ,
73+ });
74+ ```
75+
4576Export credentials via CLI:
4677[ balanceofsatoshis] ( https://github.com/alexbosworth/balanceofsatoshis ) :
4778` npm install -g balanceofsatoshis ` and export via ` bos credentials --cleartext `
@@ -393,3 +424,7 @@ variables set:
393424 Verify that a chain address message has a valid ECDSA signature
394425- [ verifyMessage] ( https://github.com/alexbosworth/ln-service#verifymessage ) : Check that a
395426 message from a node in the graph has a valid signature.
427+
428+ ## Taproot Assets Methods
429+
430+ - ** listTaprootAssetBalances** : List Taproot Asset balances grouped by asset ID or group key.
0 commit comments