Label: Smart Contracts
Pages about XRP Ledger features that can be used to build smart contracts.
Use cryptographic keys to approve transactions so the XRP Ledger can execute them.
Use multi-signing for greater security sending transactions.
Escrows set aside XRP and deliver it later when certain conditions are met. Escrows can depend on time limits, cryptographic conditions, or both.
Payment Channels enable fast, asynchronous XRP payments that can be divided into very small increments and settled later.
Send a Time-Held Escrow
Create an escrow whose only condition for release is that a specific time has passed.
Send a Conditionally-Held Escrow
Create an escrow whose release is based on a condition being fulfilled.
Cancel an Expired Escrow
Cancel an expired escrow.
Look up escrows
Look up pending escrows by sender or destination address.
Use an Escrow as a Smart Contract
Use a cryptographic escrow as a smart contract to ensure a recipient gets paid only if they successfully perform a service.
Use Specialized Payment Types
Use Payment Channels
Payment Channels are an advanced feature for sending "asynchronous" XRP payments that can be divided into very small increments and settled later. This tutorial walks through the entire process of using a payment channel, with examples using the JSON-RPC API of a local rippled server.