Building using Rayls SDK

The Rayls SDK supports the development of decentralised applications (dApps) that interact with the Rayls protocol, the cross-chain protocol underneath the Rayls ecosystem. Developers use it to integrate cross-chain communication, which is what allows data and assets to move securely and efficiently between different blockchains.

Key Features

  • Cross-Chain Message Sending: Send and receive messages between different chains using simplified functions that hold the complexity of cross-chain communication behind them.
  • Endpoint Management: Configure and manage endpoints so that decentralised applications communicate reliably with the blockchains they need to reach.
  • Resource Registration: Associate resource IDs with contract addresses, which preserves the integrity and traceability of transferred assets and data.
  • Transfer Metadata: Use detailed metadata to track and manage asset transfers between chains, which gives visibility and control over cross-chain operations.

Advantages

  • Simplified Integration: Clear interfaces and full documentation let developers integrate cross-chain functionality quickly.
  • Security: The SDK is built on established security practice, so that cross-chain communications are protected against interference and malicious attack.
  • Flexibility and Scalability: Designed to support a wide range of use cases and to scale as a project grows.

How to Use

  1. Installation: Import the Rayls SDK into your Solidity development project.
  2. Configuration: Initialise the SDK with the Rayls endpoint address you intend to use and configure the necessary parameters.
  3. Implementation: Use the functions provided by the SDK to send messages, register resources, and manage endpoints, which is what carries communication between different blockchains.

Usage Examples

  • Token Transfer: Transfer tokens securely between different chains.
  • Contract Registration: Register contracts and associate resource IDs so that assets can be tracked and managed.
  • Transfer Monitoring: Use transfer metadata to track the status and history of cross-chain operations.

The pages that follow cover installation and then each handler contract in turn, starting with the base RaylsApp contract that every other handler extends.


Did this page help you?