Docs Icon ChevronRight For Developers Icon ChevronRight ABIs

ABIs

Adding ABI

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

AddAbi.tsx Icon Link
1const isAdded = await fuel.addABI(contractId, abi);
2console.log("ABI is added", isAdded);

Get ABI of contract ID

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

Abi.tsx Icon Link
1const abiInfo = await fuel.getABI(contractId);
2console.log("Abi ", abiInfo);