A proposed amendment to the XRP ledger, Lot (XLS-56)is generating excitement among both developers and validators.
a pseudonym XRP validator, veterinarianhas shared its experience testing Batch functionality on the development network, where multiple transactions, including non-fungible token (NFT) minting and payments, can be bundled and automatically executed.
The amendment, according to Vet, allows for the creation of a fully peer-to-peer NFT-to-NFT trading platform, allowing users to conduct barter-like NFT exchanges in a single transaction.
For example, one could exchange five of their NFTs for two NFTS from another party, all processed simultaneously to ensure atomicity and security. Veterinarian said in Xsuggesting a game-inspired interface, similar to the classic RuneScape, to make this NFT-to-NFT trading more engaging and intuitive for users.
At the time of writing, the batch amendment has achieved 68.57% consensus among validators, 80% being necessary for activation. The XRP Ledger (XRPL) is an open source decentralized blockchain used by Ripple to create a cross-border payments solution.
What is batch amendment?
The batch amendment introduces atomic transaction capabilities to the XRP Ledger, allowing multiple trades to be grouped and executed simultaneously as a single unified transaction.
It takes an all-or-nothing approach: either all transactions in the group complete successfully or none of them complete, thus eliminating the risk of partial execution failures.
This principle of atomicity has its roots in computer science and database management, where a sequence of operations is treated as a single, indivisible unit of work. Therefore, an atomic process means that the entire set of transactions is completely executed or completely rolled back to ensure data integrity.
The atomicity in the XRP Ledger could be valuable in complex NFT trades or exchanges involving multiple steps, facilitating the development of sophisticated NFT marketplaces.
“This new amendment dramatically changes the functionality of the XRP Ledger by allowing up to 8 transactions to be grouped and sorted in a single batch operation. It also introduces atomic execution via ALLORNOTHING as one of its execution modes for batch transactions.” Teucrio said in a Substack post.
A total of four batch modes are supported: ALL, ONLY ONE, UNTILFAILURE, and INDEPENDENT. The availability of four modes will ensure flexibility in how multiple transactions are executed as a group, helping developers choose the best approach for their use case.
