Fungible Tokens (2024)

Last updated

Edit

Anyone can issue fungible tokens on the XRP Ledger, ranging from informal "IOUs" to fiat-backed stablecoins, purely digital fungible and semi-fungible tokens, and more.

Fungible tokens are interchangeable and indistinguishable from one another. They can be swapped and substituted for other tokens of equivalent value. To create fungible tokens, you set up a trust line, a form of accounting relationship, between two accounts, then send payments between them. For most use cases, there are also some settings you should configure first.

Trust Lines

Trust lines are structures in the XRP Ledger for holding fungible tokens. Trust lines enforce the XRP Ledger's rule that you cannot cause someone else to hold a token they don't want. This precaution is necessary to enable the XRP Ledger's use case for community credit among other benefits.

Each "trust line" is a bidirectional relationship consisting of:

  • The identifiers for the two accounts that the trust line connects.
  • A single, shared balance, which is positive from the perspective of one account and negative from the other perspective.
    • The account with a negative balance is generally considered the "issuer" of the tokens. However, in the APIs, the name issuer can refer to either side.
  • Various settings and metadata. Each of the two accounts can control its own settings on the trust line.
    • Most importantly, each side sets a limit on the trust line, which is 0 by default. Each account's balance (from its perspective on the trust line) can't go above that account's limit, except through that account's own actions.

Each trust line is specific to a given currency code. Two accounts can have any number of trust lines between them for different currency codes, but only one shared trust line for any particular currency code.

The balance on a trust line is negative or positive depending on which side you view it from. The side with the negative balance is called the "issuer" and can control some properties of how those tokens behave. When you send tokens to another account that isn't the issuer, those tokens "ripple" through the issuer and possibly other accounts using the same currency code. This is useful in some cases, but can cause unexpected and undesirable behavior in others. You can use the No Ripple flag on trust lines to prevent those trust lines from rippling.

Creation

Any account can unilaterally "trust" another account to issue a token by sending a TrustSet transaction with a nonzero limit and their own settings. This creates a line with a zero balance, and sets the other side's settings to the default.

Trust lines can be implicitly created by some transactions, such as when you buy a token in the decentralized exchange. In this case, the trust line uses entirely default settings.

Going Above the Limit

There are three cases where you can hold a balance that is greater than your limit on that trust line:

  1. When you acquire more of that token through trading.
  2. When you decrease the limit on a trust line that has a positive balance.
  3. When you acquire more of that token by cashing a Check. (Requires the CheckCashMakesTrustLine amendment)

Trust Line Settings

In addition to the shared balance, each account has its own settings on the trust line, which consist of the following:

  • The Limit, a number from 0 to the maximum token amount. Payments and other accounts' actions cannot cause the trust line's balance (from this account's perspective) to go over the limit. The default is 0.
  • Authorized: A true/false value used with Authorized Trust Lines to allow the other side to hold tokens this account issues. The default is false. Once set to true, this cannot be changed back.
  • No Ripple: A true/false value to control whether tokens can ripple through this trust line. The default depends on the account's "Default Ripple" setting; for new accounts, "Default Ripple" is off which means that true is the default for No Ripple. Usually, issuers should allow rippling and non-issuers should disable rippling unless they are using trust lines for community credit.
  • Freeze: A true/false value indicating whether an individual freeze is in effect on this trust line. The default is false.
  • Quality In and Quality Out settings, which allow the account to value tokens issued by the other account on this trust line at less (or more) than face value. For example, if a stablecoin issuer charges a 3% fee for withdrawing tokens for the equivalent off-ledger assets, you could use these settings to value those tokens at 97% of face value. The default, 0, represents face value.

Reserves and Deletion

Since a trust line occupies space in the ledger, a trust line increases the XRP your account must hold in reserve. Either or both accounts in the trust line may be charged the reserve for the trust line, depending on the status of the trust line: if any of your settings are not the default, or if you hold a positive balance, it counts as one item toward your owner reserve.

Generally, this means that the account that created the trust line is responsible for the reserve and the issuer is not.

Trust lines are automatically deleted if both sides' settings are in the default state and the balance is 0. This means that, to delete a trust line, you need to:

  1. Send a TrustSet transaction to set your settings to the defaults.
  2. Offload any positive balance you have on the trust line. You could do this by sending a payment, or by selling the currency in the decentralized exchange.

If your balance is negative (you are the issuer) or the other side's settings are not in the default state, you cannot cause the trust line to be totally deleted, but you can make it so that it does not count towards your owner reserve by following the same steps.

Since the Authorized setting cannot be turned off after it has been turned on, it does not count toward the trust line's default state.

Free Trust Lines

[Source]

Since trust lines are a powerful feature of the XRP Ledger, there is a special feature to make an account's first two trust lines "free".

When an account creates a new trust line, if the account owns at most 2 items in the ledger including the new line, the account's owner reserve is treated as zero instead of the normal amount. This allows the transaction to succeed even if the account does not hold enough XRP to meet the increased reserve requirement for owning objects in the ledger.

When an account owns 3 or more objects in the ledger, the full owner reserve applies.

See Also

Previous page

Next page

Fungible Tokens (2024)

FAQs

What is the meaning of fungible token? ›

A representation of an asset on a blockchain that is interchangeable. Cryptocurrencies are the prime example of fungible tokens because each coin has the same value as any other coin of the same type at any given moment.

What is the difference between NFT and fungible tokens? ›

Unlike fungible tokens, which are interchangeable and have uniform value (such as crypto like Bitcoin or Ethereum), each NFT is distinct and cannot be exchanged on a one-to-one basis with another NFT. NFTs are indivisible, meaning you can't send fractions of an NFT; you can only transfer the entire token.

What are examples of fungible token? ›

One example of a fungible token is the FLOW token. It is divisible and non-unique. Any FLOW token can be traded for another FLOW token, and will hold the same value no matter where or when it is issued. Other examples of fungible tokens are Bitcoin (BTC), Ether (ETH), Solana (SOL), Litecoin (LTC), and Polygon (MATIC).

What is fungible vs non-fungible? ›

Fungibility is the ability of a good or asset to be readily interchanged for another of like kind. Goods and assets such as cars and houses that aren't interchangeable are non-fungible. Money is a prime example of a fungible asset because a $1 bill is easily convertible into four quarters or 10 dimes.

What is the point of an NFT? ›

NFTs have been used to exchange digital tokens that link to a digital file asset. Ownership of an NFT is often associated with a license to use such a linked digital asset but generally does not confer the copyright to the buyer.

Why is it called fungible? ›

The fungi in fungible is there because of the Latin verb fungi, meaning “to perform,” ancestor of both fungible and function. Fungible is considerably less familiar than its cousin to most English users, but it pops up like toadstools (sorry) in legal, technological, and economic contexts.

Which is better NFT or Bitcoin? ›

The NFT is stored, and the security of the underlying blockchain. However, in general, NFTs may be observed as more secure than cryptocurrencies due to their unique identity and the fact that they are not subject to the same type of double-spending attack that plagues cryptocurrencies.

What is the most expensive NFT ever sold? ›

The most expensive NFT was sold for $91.8 million. Most recently, the CryptoPunk #3100 NFT was sold for 4,500 Ether, worth over $16 million in March 2024.

What is an NFT in simple terms? ›

NFT stands for 'non-fungible token'. Non-fungible means that something is unique and can't be replaced. By contrast, physical money and cryptocurrencies are fungible, which means they can be traded or exchanged for one another. Every NFT contains a digital signature which makes each one unique.

Is gold a fungible token? ›

For example, gold is generally fungible because its value does not depend on any specific form, whether of coins, ingots, or other states.

What are real examples of NFT? ›

NFT use cases: 8 innovative ways to use non-fungible tokens
  • Own digital collectibles.
  • Collect fine art.
  • Buy a home.
  • Fractionally invest in real assets.
  • Buy a car.
  • Get insurance.
  • Borrow money.
  • Earn reward tokens.
Aug 10, 2024

What is a fungible good example? ›

Fungible goods are items that are interchangeable because they are identical to each other for practical purposes. Commodities, common shares, options, and dollar bills are examples of fungible goods.

Why would someone buy a non-fungible token? ›

Investors buy and sell NFTs for many reasons. Some are interested in owning the underlying asset, and others may perceive value in tokenizing an asset into an NFT. Some investors might simply enjoy speculating on its potential to appreciate.

Why is Bitcoin not fungible? ›

Bitcoin and Ether are prominent examples of fungible crypto assets— one bitcoin is equal to any other bitcoin and can be divided into equal pieces of similar value. Conversely, non-fungible crypto assets, commonly referred to as nonfungible tokens, are unique and non-divisible.

Why does money need to be fungible? ›

Fungibility is a desirable property for many goods, but it is an essential property for money. If money is not fungible, each unit of the money will carry a different value, and the money will have lost its medium of exchange property.

What is an example of fungible money? ›

Commodities, common shares, options, and dollar bills are examples of fungible goods. Assets like diamonds, land, or baseball cards are not fungible because each unit has unique qualities that add or subtract value.

What does fungible mean in Bitcoin? ›

Fungibility is a property of goods whose units are interchangeable. Fungibility is critical to preserving Bitcoin's censorship resistance and privacy. Goods which are not fungible or divisible serve as poor monetary goods. Bitcoin has infinite divisibility and strong fungibility.

Top Articles
Employers' Liability Insurance Costs (2024)
Sales techniques: 5 highly effective modern sales methods
English Bulldog Puppies For Sale Under 1000 In Florida
Katie Pavlich Bikini Photos
Gamevault Agent
Pieology Nutrition Calculator Mobile
Hocus Pocus Showtimes Near Harkins Theatres Yuma Palms 14
Hendersonville (Tennessee) – Travel guide at Wikivoyage
Compare the Samsung Galaxy S24 - 256GB - Cobalt Violet vs Apple iPhone 16 Pro - 128GB - Desert Titanium | AT&T
Vardis Olive Garden (Georgioupolis, Kreta) ✈️ inkl. Flug buchen
Craigslist Dog Kennels For Sale
Things To Do In Atlanta Tomorrow Night
Non Sequitur
Crossword Nexus Solver
How To Cut Eelgrass Grounded
Pac Man Deviantart
Alexander Funeral Home Gallatin Obituaries
Shasta County Most Wanted 2022
Energy Healing Conference Utah
Geometry Review Quiz 5 Answer Key
Hobby Stores Near Me Now
Icivics The Electoral Process Answer Key
Allybearloves
Bible Gateway passage: Revelation 3 - New Living Translation
Yisd Home Access Center
Home
Shadbase Get Out Of Jail
Gina Wilson Angle Addition Postulate
Celina Powell Lil Meech Video: A Controversial Encounter Shakes Social Media - Video Reddit Trend
Walmart Pharmacy Near Me Open
Marquette Gas Prices
A Christmas Horse - Alison Senxation
Ou Football Brainiacs
Access a Shared Resource | Computing for Arts + Sciences
Vera Bradley Factory Outlet Sunbury Products
Pixel Combat Unblocked
Movies - EPIC Theatres
Cvs Sport Physicals
Mercedes W204 Belt Diagram
Mia Malkova Bio, Net Worth, Age & More - Magzica
'Conan Exiles' 3.0 Guide: How To Unlock Spells And Sorcery
Teenbeautyfitness
Where Can I Cash A Huntington National Bank Check
Topos De Bolos Engraçados
Sand Castle Parents Guide
Gregory (Five Nights at Freddy's)
Grand Valley State University Library Hours
Holzer Athena Portal
Hello – Cornerstone Chapel
Stoughton Commuter Rail Schedule
Selly Medaline
Latest Posts
Article information

Author: Jerrold Considine

Last Updated:

Views: 6559

Rating: 4.8 / 5 (78 voted)

Reviews: 93% of readers found this page helpful

Author information

Name: Jerrold Considine

Birthday: 1993-11-03

Address: Suite 447 3463 Marybelle Circles, New Marlin, AL 20765

Phone: +5816749283868

Job: Sales Executive

Hobby: Air sports, Sand art, Electronics, LARPing, Baseball, Book restoration, Puzzles

Introduction: My name is Jerrold Considine, I am a combative, cheerful, encouraging, happy, enthusiastic, funny, kind person who loves writing and wants to share my knowledge and understanding with you.