To add an ABI, use the addABI()
method.
1const isAdded = await fuel.addABI(contractId, abi);
2console.log("ABI is added", isAdded);
To retrieve the ABI of a contract, use the getAbi()
method.
1const abiInfo = await fuel.getABI(contractId);
2console.log("Abi ", abiInfo);