Osmosis Quickstart

How to get started building on Osmosis.

You'll need to create a free All That Node account first!

What is Osmosis?

Osmosis is an advanced AMM protocol built with the Cosmos SDK that will allow developers to design, build, and deploy their own customized AMMs with multiple tokens and parameters.

For more information on Osmosis APIs, please check out the official documentation.


Endpoints

๐Ÿšง

The Cosmos Hub is currently only provided as a custom plan or a dedicated node.

NetworkAPI TypeEndpoint
MainnetREST API (LCD)https://osmosis-mainnet-rpc.allthatnode.com:1317
--header "x-allthatnode-api-key: 'YOUR-API-KEY'"
MainnetTendermint RPChttps://osmosis-mainnet-rpc.allthatnode.com:26657/'YOUR-API-KEY'
TestnetREST API (LCD)https://osmosis-testnet-rpc.allthatnode.com:1317
--header "x-allthatnode-api-key: 'YOUR-API-KEY'"
TestnetTendermint RPChttps://osmosis-mainnet-rpc.allthatnode.com:26657/'YOUR-API-KEY'

*Find 'YOUR-API-KEY' by going to the Dashboard menu (Dashboard > Project Detail Page).

Sample

Request

curl https://osmosis-mainnet-rpc.allthatnode.com:1317/syncing \
--header "x-allthatnode-api-key: 'YOUR-API-KEY'"
curl https://osmosis-mainnet-rpc.allthatnode.com:26657/'YOUR-API-KEY' \
--request POST \
--header "Content-Type: application/json" \
--data '{ "jsonrpc":"2.0", "method":"status","params":[],"id":1}'

Response

{
    "jsonrpc": "2.0",
    "result": false,
    "id": 1
}
{
    "jsonrpc": "2.0",
    "id": 1,
    "result": {
        "node_info": {
            "protocol_version": {
                "p2p": "8",
                "block": "11",
                "app": "0"
            },
            "id": "093e33f123c4201855a2387513b5e5dea064e479",
            "listen_addr": "tcp://0.0.0.0:26656",
            "network": "cosmoshub-4",
            "version": "0.34.29",
            "channels": "40202122233038606100",
            "moniker": "arccrab",
            "other": {
                "tx_index": "on",
                "rpc_address": "tcp://0.0.0.0:26657"
            }
        },
        "sync_info": {
            "latest_block_hash": "1A0661750F773E3C3D2E66D45BDDEE0C720536D7E617F858B6D52B74EABBE767",
            "latest_app_hash": "651F7FD7DF21A437CC458ABE2E47C936ECCCF3D4C2A9F4F38DDC15B8B0AA1502",
            "latest_block_height": "17735017",
            "latest_block_time": "2023-11-06T07:52:30.723254342Z",
            "earliest_block_hash": "1455A0C15AC49BB506992EC85A3CD4D32367E53A087689815E01A524231C3ADF",
            "earliest_app_hash": "E3B0C44298FC1C149AFBF4C8996FB92427AE41E4649B934CA495991B7852B855",
            "earliest_block_height": "5200791",
            "earliest_block_time": "2019-12-11T16:11:34Z",
            "catching_up": false
        },
        "validator_info": {
            "address": "89A4833D3DB4FDAE9A97B4374AA197E41C3C3AFF",
            "pub_key": {
                "type": "tendermint/PubKeyEd25519",
                "value": "S8aP7m5WVnF6WDVlFiSKBpvtKRyjY4PGwbVTpW6nhjU="
            },
            "voting_power": "0"
        }
    }
}