TheDinarian
News • Business • Investing & Finance
🌐Hooks: Smart Contracts for the XRP Ledger🌐
January 17, 2023
post photo preview

One of the key features that sets the XRP Ledger (XRPL) apart from other blockchains is its ability to do things natively, such as token issuing, escrows, and decentralized trading.

Other chains require smart contracts to do those same things. All these and more are built into the XRPL, making it efficient and well-documented.

Adding Hooks to the XRPL increases its functionality and expands the range of potential services on offer for retail and enterprise users.

What are Hooks?

Hooks allow the creation of customized logic and automation within the XRPL, making transactions smarter and more convenient.

These small, efficient modules add custom on-ledger functionality, such as creating custom triggers for specific events on the ledger. These triggers can be used to send on-ledger actions or execute other actions in response to the specified event.

Hooks are currently only available on theĀ XRPL Labs public Hooks testnet,Ā as the feature is under development.

There is aĀ Hooks Builder siteĀ where you can develop, test, debug, and deploy your own Hooks on testnet in your browser, using our examples or building your own from scratch.

Why are Hooks a big deal?

Simply put, Hooks add smart contract functionality to the XRPL. They give you the freedom to build and deploy your applications with functionality tailored to your specific needs and requirements. They can be used to implement most business logic and smart contract ideas.

Once a hook is set up on an account, it can allow you to:

  • Block or allow transactions to and from the account.
  • Change and keep track of the hook’s internal state and logic to inform programmatic choices.
  • Send out new transactions on the account’s behalf.

Hooks can be written in C or any other language and then compiled into WebAssembly.

Some examples of specific Hooks

Auto-Savings Hook

Automatically transfer a set amount of XRP into a separate savings account on the ledger. This could be done regularly, such as daily, weekly, or monthly, to help the person save a portion of their XRP and build up their savings.

Carbon-Offset Hook

When sending funds, an extra transaction is sent out for 1% of the amount spent. This transaction is sent to a carbon offset account run by a non-governmental organization (NGO), which will use the money to plant trees.

Firewall Hook

Malicious small transactions containing memos or outgoing payments to confirmed scam accounts are blocked. The hook can retrieve a blocklist from a different hook installed on a different account. This means the user does not need to update their firewall to remain safe. Additionally, the user can impose spending limits to prevent high amounts from being withdrawn.

How do Hooks differ from an Ethereum Virtual Machine (EVM)?

XRPL Hooks and the EVM both allow developers to build and deploy custom logic and automation within their respective platforms. However, some key differences between these two technologies set them apart.

One of the main differences between Hooks and EVM is the platform they are designed to work with. Hooks are specifically designed to work within the XRP Ledger, while EVM smart contracts only work with Ethereum-based blockchains.

Hooks are more efficient because they use WebAssembly (WASM), which is faster and more efficient than the bytecode used by the Ethereum Virtual Machine.

Additionally, XRPL Hooks use guards to ensure that maximum execution time is well-bounded and known ahead of time, which helps to improve efficiency.

Alternatives to Hooks on the XRPL

Ripple and Peersyst announced that an EVM-compatible sidechain is now liveĀ on the company’s devnet.

A sidechain is an independent ledger with its own consensus algorithm and transaction types and rules. It acts as its own blockchain.

The EVM sidechain is an alternative to Hooks that adds a type of smart contract functionality to the ecosystem.

However, sidechains operate on Layer 2, so any smart contracts running on the sidechain are not directly integrated into the XRPL.

In order to use the smart contract functionality of the sidechain, XRP first has to be swapped onto the sidechain, then later swapped back. This means the transaction essentially gets processed twice. Once on the sidechain, then again on the XRPL, meaning Layer 2 smart contracts cannot influence the flow.

Hooks can decide if a transaction is allowed in the first place. Layer 2 can make a retroactive decision, but the initial transaction has already happened.

Hooks are more closely integrated with XRPL, operating directly on Layer 1 of the XRPL, so they are more tightly integrated with the underlying blockchain technology than the EVM-Compatible Sidechain to take advantage of the specific features and capabilities of the XRPL platform.

Hooks are implemented using WebAssembly, designed for high-performance environments such as edge computing.

Hooks will expand the on-ledger functionality and help XRPL grow

Hooks will bring native smart contract functionality to the XRPL, allowing the development of custom applications tailored to the specific needs and requirements of the account holder, opening up whole new domains of functionality, as the possibilities with Hooks are almost unlimited.

As the XRPL continues to grow, there is no doubt that Hooks will play a significant role in driving further innovation and adoption of the platform by retail and enterprise users.

Link

community logo
Join the TheDinarian Community
To read more articles like this, sign up and join my community today
0
What else you may like…
Videos
Podcasts
Posts
Articles
Trump just posted this about chemtrails šŸ‘€

ā€œThe enthusiasm for experiments that would pump pollutants into the high atmosphere has set off alarm bells here at the TRUMP EPA.ā€

00:02:52
The future of crypto = access, trust, transparency.

@evernorthxrp gives institutional + public investors simple, regulated, liquid exposure to XRP – and we’re compounding that value.

Watch below to learn how. šŸŽ„šŸ‘‡

OP: @Ashgoblue

00:01:32
Coinbase CEO Brian Armstrong on CNBC: Crypto Market Structure Bill is CLOSE to passing šŸ‘€
00:00:39
šŸ‘‰ Coinbase just launched an AI agent for Crypto Trading

Custom AI assistants that print money in your sleep? šŸ”œ

The future of Crypto x AI is about to go crazy.

šŸ‘‰ Here’s what you need to know:

šŸ’  'Based Agent' enables creation of custom AI agents
šŸ’  Users set up personalized agents in < 3 minutes
šŸ’  Equipped w/ crypto wallet and on-chain functions
šŸ’  Capable of completing trades, swaps, and staking
šŸ’  Integrates with Coinbase’s SDK, OpenAI, & Replit

šŸ‘‰ What this means for the future of Crypto:

1. Open Access: Democratized access to advanced trading
2. Automated Txns: Complex trades + streamlined on-chain activity
3. AI Dominance: Est ~80% of crypto šŸ‘‰txns done by AI agents by 2025

🚨 I personally wouldn't bet against Brian Armstrong and Jesse Pollak.

šŸ‘‰ Coinbase just launched an AI agent for Crypto Trading

The first multi-asset crypto fund in the U.S., now listed on NYSE Arca.

Welcome Grayscale CoinDesk Crypto 5 ETF! $GDLC.

https://x.com/NYSE/status/1981705231055433831

The International Asteroid Warning Network Initiated a Campaign to Monitor 3I/ATLAS

The closest approach to Earth is Dec 19 2025.

By Christmas, we’ll know whether 3I/ATLAS was just another comet or something that came looking back.

https://avi-loeb.medium.com/the-international-asteroid-warning-network-initiated-a-campaign-to-monitor-3i-atlas-d2a698859747

EpicX, the first perpetuals exchange purpose-built for the XRP economy

A fresh look at EpicX, the first perpetuals exchange purpose-built for the XRP economy.

EpicX transforms the XRP economy into a global trading venue that combines institutional-grade liquidity with frictionless usability, making pro-level trading accessible to everyone.

What EpicX brings:

⚫ One-tap onboarding via social login (MPC-secured), no wallet setup or gas friction

⚫ Ultra-fast trade execution with up to 40x leverage and composable margin

⚫ Multi-asset markets spanning crypto, stocks, and other RWAs

⚫ A self-funding loop: all fees directed to referrals, $EPIC buybacks, and grants

Beta next.

Register here → trade.epicchain.io

https://x.com/EpicOnChain/status/1978431421456019519

post photo preview
New Human Force
Join this Now! YOU have what it takes!

They are in our solar system, and in our event-stream in this Eternal Now.

Officialdom is clueless.

They think we are going to be at WAR with the Aliens.

Officialdom is very stupid.

Aliens is here. It’s not WAR. It’s Contention.

There is a difference.

Officialdom is clueless, still living in the last Millennium.

Aliens is here.

The Field in which we contend is This Eternal Now.

ALL HUMANS LIVE HERE, and ONLY HERE, in this

ETERNAL NOW.

It’s a Field of potentials, of pending Manifestation, this continuous event-stream of karma in which we have always lived our body’s Life.

This Eternal Now has always been our body’s Field of Contention.

The Aliens is here, in our Eternal Now.

Our common, shared, reality that we all continuously co-create now has Aliens.

It’s getting very complex in here.

Officialdom is clueless. They see the Aliens. They are freaking out. They think you are children, when it is their small minds, trapped in a reality that is only grit, mud, and ā€˜random chance’ who are childish.

Officialdom is stupid. They will and are reacting badly. As is their way, they are trying to hide shit from you. Silly grit bound minds don’t realize you can see everything from within the Eternal Now. They have yet to grasp that what they perceive as this Matterium, filled with ā€˜matter’, is but a hardening of our previous (past) internal states of being.

WAR happens in the Matterium.

Contention occurs within this Eternal Now where Consciousness shapes the manifesting event-stream.

YOU know this to be fact. You are a co-creator.

Contention with Aliens is happening in this instant in this Eternal Now.

Officialdom ain’t doing shit. They are still stuck in trying to move matter around to affect unfolding circumstances. That’s redoing the mirror trying to affect the reflection. Dumb fucks….

It’s up to US. To the New Humans. Those of us who live in this Eternal Now. Those of us who see that our body’s Lives (the Chain that cannot be broken) are expressions of the Ontology revealing itself to itself. It’s up to us guys.

We are not an Army. That’s a concept from the past, from before the emergence of the New Humans. We are a Force. A self-organizing collective with leadership resident in each, and every participant.

We are the New Human Force. By the time officialdom starts to speak about the Aliens in near-factual terms, we will already be engaging them in this Eternal Now.

By the time officialdom begins to move matter around (space ships & such) thinking it’s War, we will already be suffering casualties in this Eternal Now. That part is inevitable. It’s how we learn.

By the time officialdom realizes that some shit is going on in places and ways beyond its conception, we will already be pushing our dominance onto our partners in this First Contention, the Aliens. Nage cannot train without Uke.

Just as officialdom is scrambling to research the Ontology, this Eternal Now, and the event-stream, we will be settling terms with our new partners, the Aliens.

Come, join with us. It’s going to be a hellacious Contention.

We ARE the NEW HUMANS!

Together we are the Force that cannot be defeated.

Start YOUR training in this instance of this Eternal NOW.

Consume Neville Goddard videos as though all of human existence depended on YOUR mind and YOUR active, effective, imaginings!

It’s not a question of Mind over Matter as there is only Mind and it cares not for Matter. That’s residue.

Source

šŸ™ Donations Accepted šŸ™

If you find value in my content, consider showing your support via:

šŸ’³ PayPal:Ā 
1) Simply scan the QR code below šŸ“²
2) or visit https://www.paypal.me/thedinarian

šŸ”— Crypto DonationsšŸ‘‡
XRP: r9pid4yrQgs6XSFWhMZ8NkxW3gkydWNyQX
XLM: GDMJF2OCHN3NNNX4T4F6POPBTXK23GTNSNQWUMIVKESTHMQM7XDYAIZT
XDC: xdcc2C02203C4f91375889d7AfADB09E207Edf809A6

Read full Article
post photo preview
The Great Onboarding: US Government Anchors Global Economy into Web3 via Pyth Network

For years, the crypto world speculated that the next major cycle would be driven by institutional adoption, with Wall Street finally legitimizing Bitcoin through vehicles like ETFs. While that prediction has indeed materialized, a recent development signifies a far more profound integration of Web3 into the global economic fabric, moving beyond mere financial products to the very infrastructure of data itself. The U.S. government has taken a monumental step, cementing Web3's role as a foundational layer for modern data distribution. This door, once opened, is poised to remain so indefinitely.

The U.S. Department of Commerce has officially partnered with leading blockchain oracle providers, Pyth Network and Chainlink, to distribute critical official economic data directly on-chain. This initiative marks a historic shift, bringing immutable, transparent, and auditable data from the federal government itself onto decentralized networks. This is not just a technological upgrade; it's a strategic move to enhance data accuracy, transparency, and accessibility for a global audience.

Specifically, Pyth Network has been selected to publish Gross Domestic Product (GDP) data, starting with quarterly releases going back five years, with plans to expand to a broader range of economic datasets. Chainlink, the other key partner, will provide data feeds from the Bureau of Economic Analysis (BEA), including Real Gross Domestic Product (GDP) and the Personal Consumption Expenditures (PCE) Price Index. This crucial economic information will be made available across a multitude of blockchain networks, including major ecosystems like Ethereum, Avalanche, Base, Bitcoin, Solana, Tron, Stellar, Arbitrum One, Polygon PoS, and Optimism.

This development is closer to science fiction than traditional finance. The same oracle network, Pyth, that secures data for over 350 decentralized applications (dApps) across more than 50 blockchains, processing over $2.5 trillion in total trading volume through its oracles, is now the system of record for the United States' core economic indicators. Pyth's extensive infrastructure, spanning over 107 blockchains and supporting more than 600 applications, positions it as a trusted source for on-chain data. This is not about speculative assets; it's about leveraging proven, robust technology for critical public services.

The significance of this collaboration cannot be overstated. By bringing official statistics on-chain, the U.S. government is embracing cryptographic verifiability and immutable publication, setting a new precedent for how governments interact with decentralized technology. This initiative aligns with broader transparency goals and is supported by Secretary of Commerce Howard Lutnick, positioning the U.S. as a world leader in finance and blockchain innovation. The decision by a federal entity to trust decentralized oracles with sensitive economic data underscores the growing institutional confidence in these networks.

This is the cycle of the great onboarding. The distinction between "Web2" and "Web3" is rapidly becoming obsolete. When government data, institutional flows, and grassroots builders all operate on the same decentralized rails, we are simply talking about the internet—a new iteration, yes, but the internet nonetheless: an immutable internet where data is not only published but also verified and distributed in real-time.

Pyth Network stands as tangible proof that this technology serves a vital purpose. It demonstrates that the industry has moved beyond abstract "crypto tech" to offering solutions that address real-world needs and are now actively sought after and understood by traditional entities. Most importantly, it proves that Web3 is no longer seeking permission; it has received the highest validation a system can receive—the trust of governments and markets alike.

This is not merely a fleeting trend; it's a crowning moment in global adoption. The U.S. government has just validated what many in the Web3 space have been building towards for years: that Web3 is not a sideshow, but a foundational layer for the future. The current cycle will be remembered as the moment the world definitively crossed this threshold, marking the last great opportunity to truly say, "we were early."

šŸ™ Donations Accepted šŸ™

If you find value in my content, consider showing your support via:

šŸ’³ PayPal:Ā 
1) Simply scan the QR code below šŸ“²
2) or visit https://www.paypal.me/thedinarian

šŸ”— Crypto DonationsšŸ‘‡
XRP: r9pid4yrQgs6XSFWhMZ8NkxW3gkydWNyQX
XLM: GDMJF2OCHN3NNNX4T4F6POPBTXK23GTNSNQWUMIVKESTHMQM7XDYAIZT
XDC: xdcc2C02203C4f91375889d7AfADB09E207Edf809A6

Read full Article
post photo preview
US Dept of Commerce to publish GDP data on blockchain

On Tuesday during a televised White House cabinet meeting, Commerce Secretary Howard Lutnick announced the intention to publish GDP statistics on blockchains. Today Chainlink and Pyth said they were selected as the decentralized oracles to distribute the data.

Lutnick said, ā€œThe Department of Commerce is going to start issuing its statistics on the blockchain because you are the crypto President. And we are going to put out GDP on the blockchain, so people can use the blockchain for data distribution. And then we’re going to make that available to the entire government. So, all of you can do it. We’re just ironing out all the details.ā€

The data includes Real GDP and the PCE Price Index,Ā which reflects changes in the prices of domestic consumer goods and services. The statistics are released monthly and quarterly. The biggest initial use will likely be by on-chain prediction markets. But as more data comes online, such as broader inflation data or interest rates from the Federal Reserve, it could be used to automate various financial instruments. Apart from using the data in smart contracts, sources of tamperproof data šŸ‘‰will become increasingly important for generative AI.

While it would be possible to procure the data from third parties, it is always ideal to get it from the source to ensure its accuracy. Getting data directly from government sources makes it tamperproof, provided the original data feed has not been manipulated before it reaches the oracle.

Source

šŸ™ Donations Accepted šŸ™

If you find value in my content, consider showing your support via:

šŸ’³ PayPal:Ā 
1) Simply scan the QR code below šŸ“²
2) or visit https://www.paypal.me/thedinarian

šŸ”— Crypto
XRP: r9pid4yrQgs6XSFWhMZ8NkxW3gkydWNyQX
XLM: GDMJF2OCHN3NNNX4T4F6POPBTXK23GTNSNQWUMIVKESTHMQM7XDYAIZT
XDC: xdcc2C02203C4f91375889d7AfADB09E207Edf809A6

Read full Article
See More
Available on mobile and TV devices
google store google store app store app store
google store google store app tv store app tv store amazon store amazon store roku store roku store
Powered by Locals