Frontend dApps

Developing the frontend of a dApp on Self Chain involves connecting to wallets, interacting with the blockchain through RPC endpoints, and signing and broadcasting transactions.

Wallet Connection

Connecting to wallets is a crucial step in developing dApps. Here are some recommended libraries for wallet connection, each with its specific advantages:

  • CosmosKit: A React-based library for Cosmos ecosystem dApps, facilitating wallet connection and interaction. Supports all cross-chain wallets like Keplr and Leap.

  • CosmJS: A JavaScript library for interacting with Cosmos blockchains, providing tools to handle wallet connections, transactions, and more. Offers comprehensive tools for Cosmos SDK based blockchains.

  • graz: is a collection of React hooks containing everything you need to start working with the Cosmos Ecosystem.

RPC Endpoints

dApps need to connect to an RPC provider to broadcast transactions or query the chain. For more information and links, refer to the Self Chain networks.

API Endpoints

API endpoints serve as the entry points for interacting with an application or service via its exposed interfaces. These endpoints define the functionality and behavior of the API, specifying the methods, parameters, and data formats supported by the service. Developers can use API endpoints to perform various operations such as retrieving data, updating resources, and executing actions within the application.

Please visit our documentation https://api.selfchain.io/

CLI References

The Self Chain Command Line Interface (CLI) is a versatile tool that allows users to interact directly with the Self Chain network through the command line. With the selfchaind CLI, you can perform various tasks, including:

  • Logging in with a Self Chain account.

  • Deploying contracts.

  • Interacting with and querying information from deployed contracts.

The chain code compiles into a single binary executable, providing a comprehensive suite of CLI commands. You can access detailed explanations of all available commands by using the --help option, which empowers users with a clear understanding of the chain code’s functionality and capabilities.

Please visit the binary file releases to download the latest installation file.

Last updated