Integrating decentralized applications has proven to be difficult for many, but with Grindery, it just got a whole lot simpler. Grindery Gateway ABI is a tool that allows you to interact with any smart contract via Zapier. It is the ultimate Web3 smart contract connector. Whether you're an experienced developer or just starting out, Grindery Gateway ABI is designed to streamline the integration process. In this documentation, we will guide you through everything you need to know to get started with Grindery Gateway ABI.
Requirements: You should have minimal coding skills
A step-by-step guide
First, request access to use the Grindery Gateway ABI, once you have been granted access, head on to Zapier and follow the steps below to interact with your smart contract using the ABI.
- Get your smart contract address: You can get your contract address via your blockchain explorer; for instance, we will be using 0x06012c8cf97bead5deae237070f9587f8e7a266d in our tutorial, an Ethereum-based smart contract.
- Select your blockchain: On Zapier, click on create Zap and search for Grindery Gateway ABI. Afterwards, pick your blockchain. At this stage, you need to select a blockchain that matches your smart contract. Gateway ABI currently supports over ten blockchains including Avalance, Arbitrum, Binance, Celo, Cronos, Ethereum, Fantom, Gnosis, Goerli, Harmony, and Polygon. In our case, we are choosing Ethereum as our smart contract is Ethereum-based (Figure 1).
- Connect your Zapier account to Grindery workspace: This is easy, you only need to follow the prompts.
- Add the smart contract address obtained in step 1 to the provided space.
- Fetch ABI and paste in the custom ABI field: Now, you need to go get your ABI; then, copy and paste the custom ABI field. You can obtain the ABI for your smart contract in Remix or in the .json file generally created after the compilation process (for example, in Truffle or HardHat). You can also obtain your ABI from your blockchain explorer site. The explorer site to check depends on your contract’s chain. For example, you can get the ABI for an Ethereum smart contract on Ether Scan. You can edit your ABI if you wish to; e.g. changing trigger and action names or descriptions.
Note: An ABI (Application Binary Interface) provides a contract with the ability to interact with external apps and other smart contracts. In most cases, you don’t need to edit the ABI.
- Select Smart Contract Event: The next step is to select the smart contract event you want to use as a trigger. Thereafter, you will be able to set the parameters and test your trigger (Figure 2).
- Complete your Zap setup: Now, you can connect your smart contract with any app you want.
It is worth noting that you can also use Grindery Gateway ABI as an action as you will normally do with most apps on Zapier.