This page uses machine translation from English, which may contain errors or unclear language. For the most accurate information, please see the original English version. Some content may be in the original English due to frequent updates. Help us improve this page's translation by joining our effort on Crowdin. (Crowdin translation page, Contributing guide)
5. Tham khảo API & SDK
5.1. Bộ công cụ phát triển phần mềm (SDKs)
Chức năng GA được đóng gói trong các SDK -ext
, các SDK này mở rộng chức năng của ethers.js và web3.js. Để xem tài liệu tham khảo chi tiết về API, vui lòng tham khảo các kho lưu trữ.
Kaia Ethers-ext SDK
- Kho lưu trữ: GitHub
- Ví dụ mã nguồn: gasless.js
- Ví dụ mã nguồn kèm hướng dẫn
- Phương pháp chính:
gasless.getGaslessSwapRouter
,gasless.getAmountRepay
,gasless.getMinAmountOut
,gasless.getAmountIn
,gasless.getApproveTx
,gasless.getSwapTx
.
Kaia Web3js-ext SDK
- Kho lưu trữ: GitHub
- Ví dụ mã nguồn: gasless.js
- Ví dụ mã nguồn kèm hướng dẫn
- Phương pháp chính:
web3.gasless.getGaslessSwapRouter
,web3.gasless.getAmountRepay
,web3.gasless.getMinAmountOut
,web3.gasless.getAmountIn
,web3.gasless.getApproveTx
,web3.gasless.getSwapTx
.