dev-crew-it / easy-rgb

A collection of tools that make the integration of RGB on the lightning network easy
GNU General Public License v2.0
1 stars 0 forks source link

Tracking issue: RGB Support for core lightning #10

Open vincenzopalazzo opened 2 months ago

vincenzopalazzo commented 2 months ago

This is a tracking issue that covers the RGB support for core lightning

vincenzopalazzo commented 2 months ago

Receive an RGB asset

➜  easy-rgb git:(macros/cln-async) ✗ clightning --testnet -k rgbreceive
{
   "invoice": "rgb:~/~/utxob:2grrU8H-Kb4BjKfRv-AWB7TdKrt-3Y6QDM4t5-V7VqsaF9G-MAgQe92?expiry=1713100948&endpoints=rpcs://proxy.iriswallet.com/0.2/json-rpc",
   "recipient_id": "utxob:2grrU8H-Kb4BjKfRv-AWB7TdKrt-3Y6QDM4t5-V7VqsaF9G-MAgQe92",
   "expiration_timestamp": 1713100948,
   "batch_transfer_idx": 1
}
vincenzopalazzo commented 2 months ago

Issuing an RGB asset

➜  easy-rgb git:(macros/cln-async) ✗ clightning --testnet -k issueasset amounts='[ 1000 ]' ticker=MONKEY name=MonkeyCorp precision=0
{
   "asset_id": "rgb:3ee69MY-UKYCDFMtz-2j9miayQ7-ecvq2kVLT-2j8iXquaj-u1LrU1",
   "asset_iface": "RGB20",
   "ticker": "MONKEY",
   "name": "MonkeyCorp",
   "details": null,
   "precision": 0,
   "issued_supply": 1000,
   "timestamp": 1713016514,
   "added_at": 1713016514,
   "balance": {
      "settled": 1000,
      "future": 1000,
      "spendable": 1000
   },
   "media": null
}

P.S: Please not steal my coin name 😄