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

Welcome to integrate GMGN's ETH/Base trading API for fast quantitative trading.

ETH/Base chain Swap transaction steps:

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

  1. After selecting the route, call the simulated transaction

💻Swap transaction simulation (ETH/Base)

  1. 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

Last updated