# 🤝🏻 Cooperation-API:🕹Integrate GMGN ETH/Base/BSC Trading API

✅ Approved: API Key sent to your email\
❌ Rejected: No notification sent

#### Authentication

* GMGN provides professional users with SOL/BSC/Base/ETH Trading API. Access is granted solely based on sufficient **Trading Volume** on GMGN. Review will be completed within 24 hours after submission
* To access the GMGN Trade API, apply for permission by filling out the following Google Form: <https://forms.gle/CWABDLRe8twvygvy5>
* Upon approval, GMGN will issue an API Key to your email. Include the API Key in the request header with the name: `x-route-key`
* Each API Key is rate-limited to one call every 5 seconds

**ETH/Base chain Swap transaction steps:**

1. **Get the transaction route, recommended slippage, and recommended gas price at the same time**

* Get transaction routing: [Get the available routing for ETH/Base transactions](/index/cooperation-api-integrate-gmgn-eth-base-bsc-trading-api/get-the-available-routing-for-eth-base-bsc-transactions.md)
* Get recommended slippage: [Get the recommended slippage value of ETH/Base token](/index/cooperation-api-integrate-gmgn-eth-base-bsc-trading-api/get-the-recommended-slippage-value-of-eth-base-bsc-token.md)
* Get recommended gas price: [Get the recommended gas price for ETH/Base chain](/index/cooperation-api-integrate-gmgn-eth-base-bsc-trading-api/get-the-recommended-gas-price-for-eth-base-bsc-chain.md)

2. **After selecting the route, call the simulated transaction**

[💻Swap transaction simulation (ETH/Base)](/index/cooperation-api-integrate-gmgn-eth-base-bsc-trading-api/swap-transaction-simulation-eth-base-bsc.md)

3. **After the simulated transaction is passed, get the returned data field and use normal rpc or anti-pinch rpc to submit the formal transaction**

Submit transaction signature, you can use ethers js library

Signature transaction tutorial <https://docs.ethers.org/v6/api/providers/#Signer-signTransaction>

Ethers js library <https://github.com/ethers-io/ethers.js>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.gmgn.ai/index/cooperation-api-integrate-gmgn-eth-base-bsc-trading-api.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
