Label: Smart Contracts
Pages about XRP Ledger features that can be used to build smart contracts.
Concepts
-
Accounts
Cryptographic Keys
Use cryptographic keys to approve transactions so the XRP Ledger can execute them.
-
Accounts
Multi-Signing
Use multi-signing for greater security sending transactions.
-
Payment Types
Escrow
Escrows set aside XRP and deliver it later when certain conditions are met. Escrows can depend on time limits, cryptographic conditions, or both.
-
Payment Types
Payment Channels
Payment Channels enable fast, asynchronous XRP payments that can be divided into very small increments and settled later.
Tutorials
-
Use Escrows
Send a Time-Held Escrow
Create an escrow whose only condition for release is that a specific time has passed.
-
Use Escrows
Send a Conditionally-Held Escrow
Create an escrow whose release is based on a condition being fulfilled.
-
Use Escrows
Cancel an Expired Escrow
Cancel an expired escrow.
-
Use Escrows
Look up escrows
Look up pending escrows by sender or destination address.
-
Use Escrows
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.
References
-
Subscription Methods
subscribe
Listen for updates about a particular subject.
-
Subscription Methods
unsubscribe
Stop listening for updates about a particular subject.