Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 8 additions & 9 deletions docs/devs/EVM/api.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,11 @@ Quickly connect your app or client to CrossFi mainnet and public testnets. Head

The CrossFi Network supports different clients in order to support Cosmos and Ethereum transactions and queries. You can use Swagger as a REST interface for state queries and transactions:

| | Description | Default Port | Swagger |
|----------------------------------------------------------------------------------|--------------------------------------------------------------------------------------|--------------|-------------------------------------------------------------------------|
| **Cosmos [gRPC](./cosmos-grpc.md#cosmos-grpc)** | Query or send CrossFi transactions using gRPC | `9090` | |
| **Cosmos REST ([gRPC-Gateway](./cosmos-grpc.md#cosmos-http-rest-grpc-gateway))** | Query or send CrossFi transactions using an HTTP RESTful API | `9091` | [Testnet](https://api.CrossFi.dev/) [Mainnet](https://api.CrossFi.org/) |
| **Ethereum [JSON-RPC](./ethereum-json-rpc/index.md)** | Query Ethereum-formatted transactions and blocks or send Ethereum txs using JSON-RPC | `8545` | |
| **Ethereum [Websocket](./ethereum-json-rpc/index.md#ethereum-websocket)** | Subscribe to Ethereum logs and events emitted in smart contracts. | `8586` | |
| **Tendermint [RPC](#tendermint-rpc)** | Query transactions, blocks, consensus state, broadcast transactions, etc. | `26657` | [Localhost](https://docs.tendermint.com/v0.34/rpc/) |
| **Tendermint [Websocket](#tendermint-websocket)** | Subscribe to Tendermint ABCI events | `26657` | |
| **Command Line Interface ([CLI](../../protocol/CrossFi-cli))** | Query or send CrossFi transactions using your Terminal or Console. | N/A | |
| | Description | Default Port | Swagger | Public APIs |
|------------------------------|--------------------------------------------------------------------------------------|--------------|-----------------------------------------------|-----------------------------------|
| **Cosmos gRPC** | Query or send CrossFi transactions using gRPC | `9091` | | https://cosmos-rpc.testnet.ms |
| **Cosmos REST gRPC-Gateway** | Query or send CrossFi transactions using an HTTP RESTful API | `1317` | [Testnet](https://cosmos-api.testnet.ms/) | https://cosmos-api.testnet.ms |
| **Ethereum JSON-RPC** | Query Ethereum-formatted transactions and blocks or send Ethereum txs using JSON-RPC | `8545` | | https://rpc.testnet.ms |
| **Ethereum Websocket** | Subscribe to Ethereum logs and events emitted in smart contracts. | `8586` | | |
| **Tendermint RPC** | Query transactions, blocks, consensus state, broadcast transactions, etc. | `26657` | [Testnet](https://tendermint-rpc.testnet.ms/) | https://tendermint-rpc.testnet.ms |
| **Command Line Interface** | Query or send CrossFi transactions using your Terminal or Console. | N/A | | |