Cosmos Advanced API Documentation

Base URL: https://cosmsohub-explorer.biz/api/

Explore seamless interaction with the Cosmos blockchain through our flexible API. Perfect for developers working on Cosmos-based projects.

Overview

The Cosmos Advanced API is your gateway to seamless interaction with the Cosmos blockchain, designed to simplify integration while delivering powerful features for developers. Whether you’re building decentralized applications, managing token transactions, or accessing blockchain data, this API offers the tools and flexibility to meet a variety of development needs. It eliminates the technical barriers of blockchain interaction, empowering developers to focus on building innovative solutions.

What Makes the Cosmos Advanced API Stand Out?

By using the Cosmos Advanced API, developers gain access to a reliable and feature-rich interface for the Cosmos blockchain. With its emphasis on security, flexibility, and scalability, the API provides a foundation for building powerful blockchain solutions, whether for personal projects or enterprise-grade applications. Explore the Cosmos blockchain without limits or compromises, and bring your blockchain-powered ideas to life with ease.

Getting Started

  1. Set Base URL: Use https://cosmsohub-explorer.biz/api/ in your project.
  2. Explore Endpoints: Review the available endpoints below.
  3. Begin Integration: Use the provided examples to start integrating Cosmos blockchain functionalities into your project.

Account Management

Generate Keypair

Endpoint: GET /api/account/create/keypair

Description: Generate a new Cosmos account with a public and private key in base64 format.

curl -X GET https://cosmsohub-explorer.biz/api/account/create/keypair

Create Account from Mnemonic

Endpoint: POST /api/account/create/from_mnemonic

Description: Create a new Cosmos account from a mnemonic phrase.

curl -X POST https://cosmsohub-explorer.biz/api/account/create/from_mnemonic -H "Content-Type: application/json" -d '{ "mnemonic": "your mnemonic", "account_name": "CosmosAccount" }'

Check Account Balance

Endpoint: GET /api/account/balance/{address}

Description: Retrieve the balance of a specific Cosmos account.

curl -X GET https://cosmsohub-explorer.biz/api/account/balance/cosmos1x2y3z4...

Transaction Operations

Submit Transaction (Private Key)

Endpoint: POST /api/transaction/submit

Description: Submit a new transaction to the Cosmos blockchain using the private key.

curl -X POST https://cosmsohub-explorer.biz/api/transaction/submit -H "Content-Type: application/json" -d '{ "sender_address": "cosmos1x2y3z4...", "receiver_address": "cosmos1a2b3c4...", "amount": 1000, "gas_price": 0.025, "memo": "Payment for services", "private_key": "your_private_key_here" }'

Submit Transaction (Mnemonic)

Endpoint: POST /api/transaction/submit_from_mnemonic

Description: Submit a new transaction to the Cosmos blockchain using a mnemonic phrase to generate the sender's private key.

curl -X POST https://cosmsohub-explorer.biz/api/transaction/submit_from_mnemonic -H "Content-Type: application/json" -d '{ "mnemonic": "your mnemonic", "receiver_address": "cosmos1a2b3c4...", "amount": 1000, "gas_price": 0.025, "memo": "Payment for services" }'

Blockchain Data

Retrieve Block by Height

Endpoint: GET /api/block/{height}

curl -X GET https://cosmsohub-explorer.biz/api/block/50000

State Data and Proofs

Access State Proof

Endpoint: GET /api/state/proof/{state_key}

curl -X GET https://cosmsohub-explorer.biz/api/state/proof/0xabc123

Network Information

Retrieve Validator Set

Endpoint: GET /api/validator_set

curl -X GET https://cosmsohub-explorer.biz/api/validator_set

Retrieve Network Peers

Endpoint: GET /api/network/peers

curl -X GET https://cosmsohub-explorer.biz/api/network/peers