The XRPL Standard Library provides safe, type-safe access to XRPL host functions for WebAssembly smart contract development. This no_std
library offers zero-cost abstractions over raw host function calls and handles memory management, error handling, and type conversions.
There is an interface available at https://ripple.github.io/xrpl-wasm-std/ui/ for local or Devnet testing.
- hello_world - Basic escrow with logging
- oracle - Price-based release using oracle data
- kyc - Credential-based verification
- notary - Multi-signature authorization
- nft_owner - NFT ownership verification
- ledger_sqn - Sequence-based release
Section | Description |
---|---|
Complete Developer Guide | Comprehensive guide with working internal links |
Rust API Docs | Generated API documentation (cargo doc ) |
The complete developer guide includes:
- Getting Started - Installation, first contract, core concepts
- API Reference - Complete API documentation and usage patterns
- Examples - Smart escrow examples and tutorials
- Development Guide - Building, testing, and CI setup
- Type-safe access to transaction and ledger data
- Memory-safe operations with no heap allocations
- Deterministic execution across all nodes/validators
- Zero-cost abstractions over host functions
- Comprehensive error handling with custom
Result
types
Smart escrows run in a constrained WebAssembly environment:
- Read-only ledger access (except escrow data updates)
- Deterministic execution required
- Resource limits enforced
- No network/file system access
See CONTRIBUTING.md for detailed guidelines on:
- Development setup and workflow
- Code standards and style guidelines
- Pull request process
- Testing requirements
- Release procedures
We welcome contributions of all kinds!