Get ABI

Gets a contract ABI as a JavaScript array. This method supports contracts used by the Onyx Protocol.

  • contract (string) The name of the contract.

  • RETURN (Array) Returns the ABI of the contract as a JavaScript array.

console.log('sETH ABI: ', Onyx.util.getAbi(Onyx.oETH));

Last updated