To get the ABI of a contract ID use the getAbi('contractId')
method on the window.fuel
object.
1const abiInfo = await fuel.getAbi(contractId);
2console.log("Abi ", abiInfo);
To add Abi, use the wallet.addAbi
method and pass in the AbiMap
you want to add.
1const abiMap: AbiMap = {
2 [contractId]: abi,
3};
4await fuel.addAbi(abiMap);