XRP 백서

bitpro가 원문에서 글자만 모은 내용이에요. 표·그림·수식은 빠지거나 깨질 수 있어요. 전체 28쪽 중 5쪽

assets, there can be up to one AMM in the ledger. You can create the AMM for an asset pair with your new token if it doesn't exist yet, or deposit to an existing AMM. Those who deposit assets into an AMM are called liquidity providers (LPs) and receive LP Tokens from the AMM. See Automated Market Makers . Requires the AMM amendment . Loading... ## /docs/use-cases/tokenization/nft-mkt-overview NFT Marketplace Overview Copy Key Features XRPL native support for NFTs provides tools that let you do the following. Mint, sell, and burn NFTs Kick start an NFT project in little time at low expense Assign a broker to arrange transfers between sellers and bidders Authorize another account to mint NFTs for you Receive creator-friendly, on-ledger royalties that are honored by marketplaces All this on top of the XRP Ledger’s greater than 10 years of performance and reliability. Understand Your Goals Start by deciding what sort of marketplace you want to create. Marketplace, selling NFTs minted by others Authorized minter, minting NFTs for artists Digital artist, creating and selling your own NFTs There are 4 essential areas of preparation for starting your NFT business. Deciding how you will connect to the network Setting up your blockchain behavior Indexing required NFT information Determining your permanent storage strategy to cache your NFTs Connect to XRPL If you want to set up a smaller site with fewer transactions, you can work with one of the free XRP Ledger public servers. See Public servers . If you want to set up a larger site with high volume, it might be worth investing in your own XRP Ledger server instance. See Install xrpld . See also: Pros and cons of running your own server . Set Up Basic Blockchain Functions You can begin to build your marketplace by minting some NFTs to sell. To create your first NFTs, follow the instructions in the tutorial Mint and Burn NFTokens . See Mint and Burn NFTokens . The NFToken URL is a link to the location where the content of the NFT is stored. One option is create an IPFS account and store the NFToken content at a persistent URL. See Best Practices for Storing NFT Data . If you, as the issuer, want to be able to burn the token in the future, set the Flags field to 1. To make the NFT transferable, set the Flags field to 8 . Set the Flags field to 9 to make the NFT both burnable and transferable. See Burnable flag and Transferable flag . You can collect royalties from future sales by setting a transfer fee . This is a value from 0-50000 representing 0-50% of the sale price. See Transfer Fee . You can mint NFTs in logical collections using the TokenTaxon field. See Minting NFTs into Collections . You can mint your own NFTs with content you create yourself, but you can also become an authorized minter to generate NFTs on behalf of another creator. This allows the creator to focus on making new NFTs while you handle production and sales of the NFTs. Once the authorized minter has finished creating NFTs for you, you can revoke their privileges so that they no longer have any control over your NFTs. See Authorized Minter . Minted NFTs are listed on a NFTokenPage . There is a reserve requirement of 0.2 XRP for every NFTokenPage on your account. See NFT Reserve Requirements . Each NFTokenPage holds 16-32 NFTs. Minting a large number of NFTs can tie up a great deal of your XRP. You can keep your XRP liquid by minting on demand (or lazy minting ). For details of different approaches, see Batch minting . Setting up a wallet Set up a new wallet. See Xaman . When you set up your account, keep in mind that there is a base reserve requirement of 1 XRP . See Reserves . Transferring NFTs You transfer NFTs by creating a sell offer or accepting a buy offer. See Transfer NFTokens . You can sell your NFTs in an auction format. See Running an NFT Auction . You can act as a broker, connecting sellers with bidders, completing the transfer and keeping a percentage of the purchase price. See Broker a NFToken sale . Reserve requirements There are several XRP reserve requirements when you mint NFTs for sale. Each NFToken page requires a reserve of 0.2 XRP . A NFToken page can store 16-32 NFTs. Each NFTokenOffer object requires a reserve of 0.2 XRP . When you post the NFTokenOffer or sell the NFT, there are trivial transfer fees (roughly 6000 drops, or .006 XRP). When you are selling at a high volume, the trivial amounts can add up quickly, and need to be considered as part of your cost of doing business. See: NFTokenOffer NFToken page ( Owner reserve ) Trivial transfer fees Checkout The most straightforward payment for XRPL NFTs is XRP. For examples of selling and buying NFTs using XRP, see Transfer NFTokens . For trade in other currencies, you can leverage the DEX to accept and convert issued currencies of all kinds. See Trade in the Decentralized Exchange . Indexing NFTs When listing NFTs for sale, it can be useful to use object metadata to organize them. You can use queries in the XRPL libraries, the Clio server, and extensions in the XRPL API and Bithomp libraries to sort and filter NFTs by creator, price, collection, rarity, and more. See: Clio setup XRPL Data API Bithomp NFT Caching NFTs that are created in the crypto space are expected to store metadata, including media, attributes, and so on. Currently most are stored on IPFS or Arweave to avoid centralization. Although IPFS / Arweave are great solutions to promote decentralization, fetching the metadata efficiently is a problem. Reaching IPFS / Arweave directly to fetch metadata is not fast enough for modern websites that require immediate responses from users that are scrolling through multiple pages of NFTs with high-quality media. Many NFT marketplaces on XRPL today are storing cached versions of the IPFS originals to have fast and reliable responsive websites, but this process is expensive and inefficient. Cloudflare, Infura, and many other providers are increasingly focusing on storing these decentralized files and retrieving them fast for users. See NFT Caching . ## /docs/use-cases/defi/institutional-credit-facilities Institutional Credit Facilities Copy Financial institutions need efficient ways to provide credit facilities while maintaining regulatory compliance. Traditional uncollateralized lending faces challenges with liquidity management, credit assessment, and operational efficiency. The XRPL's Lending Protocol, combined with Single Asset Vaults, Credentials, and Permissioned Domains, provides a solution for institutional credit facilities. Requires the LendingProtocol amendment . Loading... Requires the LendingProtocolV1_1 amendment . Loading... Background: Challenges with traditional credit facilities Institutional lending typically involves multiple challenges in the current financial system: Liquidity Management : Capital inefficiently distributed across multiple lending pools, which makes it difficult to source at low cost. Credit Assessment : Complex verification and management of institutional creditworthiness Settlement Delays : Multi-day settlement cycles for loan disbursement and repayment Operational Overhead : Manual processing of loan documentation and approvals Regulatory Compliance : Resource-intensive KYC and reporting requirements Solution: Lending on the XRPL The XRPL lending protocol addresses these challenges through: Efficient Liquidity Pooling You can create Single Asset Vaults to aggregate lender assets into unified pools and programmatically loan those assets out. The following scenario is difficult to achieve in TradFi because you would have to manage deposits across multiple banks, conduct KYC on each user, handle repayments, and absorb the costs of inefficient rails and transaction fees. Single Asset Vaults provide benefits to all participants in the lending protocol: Depositors gain access to larger lending markets by aggregating deposits with other small-sized depositors. This lets them participate in loans they normally wouldn’t be able to in tradfi scenarios which require far more capital. This enables them to earn yield on otherwise idle assets. Lenders can source from these vaults cheaply and and quickly, capitalizing on the spread. Borrowers gain access to reliable liquidity. Single Asset Vaults automate liquidity management, handling deposits and redemptions through a sophisticated exchange algorithm that: Converts deposits into shares for vault depositors. Manages redemptions back into assets. Dynamically adjusts exchange rates to reflect true vault value when interest from loans are paid back into the vault. Single Asset Vaults support multiple asset types (XRP, Trust Line Tokens such as RLUSD, or Multi-purpose Tokens). Regulatory Compliance Accounts on the XRPL can be vetted by a trusted credential issuer. Credentials can be issued and revoked based on relevant criteria, such as credit score. Permissioned Domains act as a gateway, limiting who can access the credit facilities based on accepted credentials you define. All credential and loan info is transparent on the XRPL, which makes compliance reporting and monitoring simpler and tamper-proof. Streamlined Credit Operations You can reduce the overhead of managing loans by programmatically setting the terms of loans with the Lending Protocol, which then handles loan disbursements and repayments. The Lending Protocol utilizes uncollateralized loans, but the design is simple and flexible enough for you to add additional logic on top of the primitive. For example, if you need collateralized loans, you can utilize on-chain custodians. Built-in first-loss capital features automatically protect against asset losses from defaults. User Journeys There are three users that enable institutional credit facilities on the XRP Ledger: Loan Brokers, Lenders, and Borrowers. The tabs below outline which features and transactions each user typically uses in the lending process. Loan Broker Lender Borrower As a Loan Broker , I need to: Create a LoanBroker entry to define the configuration of a Lending Protocol. Maintain the required first-loss capital to protect deposits in my Single Asset Vault. Step Description Technical Implementation Vault Setup The Loan Broker creates a Single Asset Vault to aggregate one type of asset to lend out. They define a permissioned domain to ensure only accounts that meet KYB (Know Your Business) compliance requirements can deposit into the vault. - Manage Permissioned Domains - Create a Single Asset Vault Lending Protocol Setup The Loan Broker sets up the Lending Protocol instance, linking it to the Single Asset Vault they created, and defining parameters such as payment fees. Create a Loan Broker First-loss Capital Maintenance The Loan Broker deposits first-loss capital into the Lending Protocol to meet the minimum cover required. When there is excess cover, they withdraw first-loss capital. Deposit and Withdraw First-Loss Capital ## /docs/use-cases/trading Skip to content Develop Developer's Home Learn Code Samples Docs API Reference Tutorials Concepts Infrastructure Client Libraries JavaScript Python PHP Go Use Cases Payments Direct XRP Payments Cross-currency Payments Escrow Checks Tokenization Stablecoin NFT Credit Lending (Open for Voting) Trading DEX Permissioned Trading AMM Community Community Events Blog Funding Contribute Bug Bounty Research Ecosystem Map Network Resources About Download XRPL Brand Kit Insights Explorers Amendment Voting Status En Trading on the XRP Ledger Institutional DeFi (iDeFi) on the XRPL delivers high-speed, low-cost, compliance-first infrastructure for crypto trading and liquidity. Built for financial institutions, Web2 platforms, and crypto-native businesses, XRPL’s DEX and protocol ecosystem reduces complexity while preserving trust, transparency, and scale. Why Trade on XRPL? 01 Instant Settlement and Low Fees Settle transactions in 3-5 seconds for a fraction of a cent. 02 No Third-Party Contract Risk Built into XRPL for safer use: no third-party contract risks, MEV-resistant by design, and self-custody of your funds by default. 03 Unified Liquidity Unified liquidity pools for better pricing and execution. 04 Compliance-First Asset controls and permissioned environments for regulatory alignment. Use Cases to Meet Your Needs Financial Institutions Permissioned FX trading with on-chain liquidity Tokenized asset exchanges with compliance controls Integrate onchain credit markets to fund strategies Learn More Fintechs Embed instant, global payments in apps Tap into a multi-asset liquidity ecosystem Cross-border settlement without intermediaries Learn More Unified Liquidity Deploy trading pairs without contract risk Tap into a multi-asset liquidity ecosystem Integrate lending and borrowing with native XRPL tools Learn More Defining Trading Features on XRPL Hybrid DEX Utilize XRP Ledger's native decentralized exchange (DEX) with integrated Automated Market Makers (AMM) and onchain 24/7 order books, providing a developer-friendly environment to create DeFi solutions for traditional finance applications. Compliance Primitive Use built-in logic to stay compliant: freeze funds, manage access, control order books, and enforce access controls on-chain based on verified credentials. Token Standards Adopt token standards that fit your business and regulatory needs: MPTs, stablecoins, IOUs, and NFTs. Transaction Simulation Remove execution risk and achieve clarity on transaction economics with transaction simulation. Native Lending Protocol Access deep, affordable capital directly on-chain to power your trading strategies. Get Started Read the Trading Documentation Deep dive into XRPL’s DEX, liquidity pools, and lending protocols. Read the Documentation • Join the Developer Community Explore Ecosystem Partners Connect with other builders and XRPL engineers. Find tooling, integrations, and liquidity providers. Explore Partners Ask AI ## /docs/concepts/tokens/decentralized-exchange Decentralized Exchange (DEX) Copy The XRP Ledger has possibly the world's oldest decentralized exchange (sometimes abbreviated "DEX"), operating continuously since the XRP Ledger's launch in 2012. The exchange allows users to buy and sell tokens for XRP or other tokens, with minimal fees charged to the network itself (not paid out to any party). Caution Anyone can issue a token with any currency code or ticker symbol they want and sell it in the decentralized exchange. Always perform due diligence before buying a token, and pay attention to the issuer. Otherwise, you might give up something of value and receive worthless tokens in exchange. What is a Decentralized Exchange? A decentralized exchange, abbreviated "DEX", is a platform that enables anyone to directly buy, sell, and trade digital assets with one another, without relying on a centralized intermediary like a bank or traditional exchange. DEXes typically use smart contracts and automated market makers (AMMs) to facilitate peer-to-peer trading and liquidity provision, enabling users to retain control over their assets while interacting in a decentralized manner. The XRP Ledger's CLOB DEX is unique in that it does not require AMMs to swap. Trades on the XRP Ledger can use AMMs to swap too, but unlike other DEXes, an AMM is not required. DEX Structure The XRP Ledger's decentralized exchange consists of an unlimited number of currency pairs, tracked on-demand when users make trades. A currency pair can consist of XRP and a token or two different tokens; tokens are always identified by the combination of an issuer and a currency code. It is possible to trade between two tokens with the same currency code and different issuers, or the same issuer and different currency codes. As with all changes to the XRP Ledger, you need to send a transaction to make a trade. A trade in the XRP Ledger is called an Offer . An Offer is effectively a limit order to buy or sell a specific amount of one currency (XRP or a token) for a specific amount of another. When the network executes an Offer, if there are any matching Offers for the same currency pair, they are consumed starting with the best exchange rate first. An Offer can be fully or partially filled; if it's not fully filled right away, it becomes a passive Offer object in the ledger for the remaining amount. Later on, other Offers or Cross-currency payments can match and consume the Offer. Because of this, Offers can execute at better than their requested exchange rate when initially placed, or at exactly their stated exchange rate later on (aside from minor differences to account for rounding). Offers can be manually or automatically canceled after being placed. For details on this and other properties of Offers, see Offers . When trading two tokens, auto-bridging improves exchange rates and liquidity by automatically trading token-to-XRP and XRP-to-token when doing so is cheaper than trading directly token-to-token. Example Trade The above diagram shows an example trade in the decentralized exchange. In this example, a trader named Tran places an Offer to buy 100 tokens with the currency code FOO issued by a fictional business called WayGate. (For brevity, "FOO.WayGate" refers to these tokens.) Tran specifies that he is willing to spend up to 1000 XRP for the full total. When Tran's transaction is processed, the following things happen: The network calculates the exchange rate of Tran's Offer, by dividing the amount to buy by the amount to pay. The network finds the order book for the reverse of Tran's Offer: in this case, that means the order book for selling FOO.WayGate and buying XRP. This order book already has several existing Offers from other traders for varying amounts and exchange rates. Tran's Offer "consumes" matching Offers, starting with the best exchange rate and working its way down, until either Tran's Offer has been fully filled, or there are no more Offers whose exchange rate is equal or better than the rate specified in Tran's Offer. In this example, only 22 FOO.WayGate are available at the requested rate or better. The consumed Offers are removed from the order book. Tran receives the amount of FOO.WayGate that the trade was able to acquire, from the various traders who had previous placed orders to sell it. These tokens go to Tran's trust line to WayGate for FOO. (If Tran did not already have that trust line, one is automatically created.) In return, those traders receive XRP from Tran according to their stated exchange rates. The network calculates the remainder of Tran's Offer: since the original Offer was to buy 100 FOO.WayGate and so far Tran has received 22, the remainder is 78 FOO.WayGate. Using the original exchange rate, that means that the rest of Tran's Offer is now to buy 78 FOO.WayGate for 780 XRP. The resulting "remainder" gets placed onto the order book for trades going the same direction as Tran's: selling XRP and buying FOO.WayGate. Later transactions, including ones executed immediately after Tran's in the same ledger, use the updated order books for their trades, so they can consume part or all of Tran's Offer until it's fully filled or Tran cancels it. Note The canonical order transactions execute in when a ledger is closed and validated is not the same as the order those transactions were sent. When multiple transactions affect the same order book in the same ledger, the final results of those transactions may be very different than the tentative results calculated at the time of transaction submission. For more details on when transactions' results are or are not final, see Finality of Results . DEX Limitations The decentralized exchange is designed with the following limitations: Because trades are only executed each time a new ledger closes (approximately every 3-5 seconds), the XRP Ledger is not suitable for high-frequency trading . The order transactions execute within a ledger is
프로젝트로 돌아가기