For AI agents: an LLM-friendly Markdown version of every page is available by appending .md to its URL or by sending an Accept: text/markdown request header. The full documentation index is at https://www.ankr.com/docs/llms.txt
Skip to main content

Secret Network


Secret Network API is available on Web3 API platform.

Secret Network is the first blockchain with customizable privacy. You get to choose what you share, who you share with, and how long you share it for. This protects users and empowers developers to build a better Web3.

We support the following networks and protocols for Secret Network:

Currently, we provide two interfaces to query Secret Network API — JSON-RPC and REST. Responses for both of them come in JSON format.

Here is the request/response structure to use for querying:

curl -X POST https://rpc.ankr.com/scrt/YOUR_ANKR_API_KEY \
-H 'Content-Type: application/json' \
-d '{
"jsonrpc": "2.0",
"method": "block",
"params": ["1"],
"id": 1
}'

Tendermint JSON-RPC/REST methods

Info — node information:

Tx — transactions broadcast information:

  • broadcast_tx_sync — returns with the response from CheckTx. Does not wait for DeliverTx result.
  • broadcast_tx_async — returns right away, with no response. Does not wait for CheckTx nor DeliverTx results.
  • broadcast_tx_commit — returns with the responses from CheckTx and DeliverTx.
  • check_tx — checks the transaction without executing it.

ABCI — ABCI info:

  • abci_info — retrieves info about the application.
  • abci_query — queries the application for some information.

Cosmos REST methods

Gaia REST:

  • /node_info — retrieves the properties of the connected node.

Transactions:

  • /txs — broadcasts a signed transaction to a full node.

Staking:

Query:

Services:


Methods

Information, Transactions, ABCI, Gaia REST, Staking

Query

Services