Sequentia docs
  • 💡INTRODUCTION
    • Introduction
  • 🖱️TESTNET
    • What to know before starting
    • Download and Installation
    • Demo the "No Coin" feature
      • 1. Set up your wallet
      • 2. Transfer TEST paying fees in TEST
      • 3. Create a new asset
      • 4. Pay transaction fees in the newly issued asset
      • 5. Replace By Fee (RBF) with different assets
  • 📖WHITE PAPER
    • 1. The Mission
    • 2. Sequentia Overview
    • 3. Blockchain Architecture
      • 3.1. Orange pilled
      • 3.2. Open fee market
      • 3.3. Market-driven governance
      • 3.4. Bitcoin anchoring
      • 3.5. Immediate transaction finality
      • 3.6. Full node sovereignty
      • ­­­­­­­­3.7. Cross-chain consistency
      • 3.8. Escaping stall
      • 3.9. No inflation
      • 3.10. Cheap to handle
      • 3.11. Bitcoin checkpoints
    • 4. Asset tokenization
      • 4.1. Why tokenization: security tokens and stablecoins
      • 4.2. The RAS standard
      • 4.3. Lightning Network payments
      • 4.4. Peer-to-peer batching
      • 4.5. Access-Control-List
      • 4.6. Programmable Accounts
    • 5. Decentralized Exchange
      • 5.1. Atomic swap
      • 5.2. Lightning Network swap
      • 5.3. Standardized order package
      • 5.4. Distributed Hash Table (DHT)
      • 5.5. Market incentives
      • 5.6. Watchtower and Book aggregator
    • Disclaimer
  • 🔗Links
    • Sequentia Theoretical Paper
    • Sequentia Lightpaper
    • Sequentia website
    • Join on socials
Powered by GitBook
On this page
Export as PDF
  1. TESTNET
  2. Demo the "No Coin" feature

2. Transfer TEST paying fees in TEST

Now let’s generate a second address and try sending TEST for the first time. The transaction fee will be subtracted from the amount, therefore you will pay the fee in TEST directly

With the following commands, we first generate a new address (let’s refer to it as GENERATED_ADDRESS_2) and then we send 50.0 TEST to this address. We can then check our history of received assets using the getreceivedbyaddress command.

.\elements-cli getnewaddress
.\elements-cli -named sendtoaddress address=<GENERATED_ADDRESS_2> amount=50.0 subtractfeefromamount=true

Although the transaction is correct, if you check the balance of the new address now, it will still be zero. That is because your transaction still needs to be confirmed in a block. So, create a new Sequentia block by using the command:

.\elements-cli generatetoaddress 1 <GENERATED_ADDRESS>
  1. Now check that the 50 TEST have been sent to the new address

.\elements-cli getreceivedbyaddress <GENERATED_ADDRESS_2>

If everything is correct, your command prompt will look similar to this:

.\elements-cli getreceivedbyaddress ert1qspt937gpfmeghshpaucar2d94g4hftq4m5zfg4
{
"TEST": 49.99999645
}

Showing that the fee has been paid in TEST and has been subtracted from the amount sent (50.0)

Previous1. Set up your walletNext3. Create a new asset

Last updated 4 months ago

🖱️