🏗️
Ansybl Docs
  • Ansybl
  • 🟢Canto
    • Canto API
    • Dedicated Nodes
Powered by GitBook
On this page
  • EVM RPC
  • Cosmos REST (1317)
  • Tendermint RPC (26657)
  1. Canto

Canto API

Access to fast, reliable, and secure API endpoints for the Canto ecosystem.

PreviousAnsyblNextDedicated Nodes

Last updated 1 year ago

Network
Endpoint

Canto Mainnet

Canto Testnet

EVM RPC

Example: get latest block

curl 'https://rpc.ansybl.io/canto/mainnet/evm_rpc/?X-API-KEY=<YOUR_API_KEY>' --data '{"jsonrpc":"2.0","method":"eth_getBlockByNumber","params":["latest", false],"id":1}' --header 'Content-Type: application/json'

You can alternatively pass your api key as a header. Example:

curl https://rpc.ansybl.io/canto/mainnet/evm_rpc/ --header "X-API-KEY: <YOUR_API_KEY>" --data '{"jsonrpc": "2.0","method": "eth_getBlockByNumber","params": ["latest", false],"id": 1}' --header 'Content-Type: application/json'

Cosmos REST (1317)

Example: get latest block

curl 'https://rpc.ansybl.io/canto/mainnet/api/cosmos/base/tendermint/v1beta1/blocks/latest?X-API-KEY=<YOUR_API_KEY>' --header 'Content-Type: application/json'

View full endpoint docs

Tendermint RPC (26657)

Example: get latest block

curl 'https://rpc.ansybl.io/canto/mainnet/rpc/block?X-API-KEY=<YOUR_API_KEY>' --header 'Content-Type: application/json'

/<endpoint>

/<endpoint>

View full endpoint docs

🟢
https://rpc.ansybl.io/canto/mainnet/evm_rpc/
https://rpc.ansybl.io/canto/mainnet/api/
https://v1.cosmos.network/rpc/v0.45.1
https://rpc.ansybl.io/canto/mainnet/rpc/
https://docs.tendermint.com/v0.34/rpc/
https://rpc.ansybl.io/canto/mainnet
https://rpc.ansybl.io/canto/testnet