📔 ABI
Definition
ABI is Application Binary Interface. It is like a header file for your source code. A lot of chains provide such capability. With ABI, Sentio could generate typesafe SDK for users.
EVM
You can read an article for Ethereum ABI here.
Normally, you can either generate ABI from your solidity code or get it from etherscan.
![](https://raw.githubusercontent.com/sentioxyz/docs/main/.gitbook/assets/image (1) (5).png)
Solana Anchor
Anchor can generate IDL specifications for Solana programs, we treat them as ABIs in Solana.
If your Solana program is built by Anchor, you can find the IDL after running the Anchor build, normally placed in target/idl
folder.
Aptos & SUI
Aptos and SUI use move language. Their ABI could be downloaded via their API, e.g.
- Aptos: use account module API https://mainnet.aptoslabs.com/v1/accounts/0x7d7e436f0b2aafde60774efb26ccc432cf881b677aca7faaf2a01879bd19fb8/modules
- SUI: use
sui_getNormalizedMoveModulesByPackage
JSON RPC call.
curl -L -X POST 'https://fullnode.devnet.sui.io/' -H 'Content-Type: application/json' --data-raw '{ "jsonrpc": "2.0", "id": 1, "method": "sui_getNormalizedMoveModulesByPackage", "params": [ "0x2" ] }'
Updated 3 months ago