⌘K

Icon SunFilledIcon MoonStars

Icon LinkABIs

Icon LinkAdding ABI

To add an ABI, use the addABI() method.

const isAdded = await fuel.addABI(contractId, abi);
console.log("ABI is added", isAdded);
Icon LinkCheck it working

* Input's initial contractId and ABI are from  

SwaySwap Icon Link

Icon LinkGet ABI of contract ID

To retrieve the ABI of a contract, use the getAbi() method.

const abiInfo = await fuel.getABI(contractId);
console.log("Abi ", abiInfo);