Skip to content

Props Diamond SDKDocs


createABIFromContractInterface(contractInterface): any[]

Creates a standardized ABI from a contract interface

Parameters

contractInterface: any

The contract interface to process

Returns

any[]

Standardized ABI array including multicall functionality

Example

ts
const abi = createABIFromContractInterface(myContract.interface);
// Returns: [{
//   type: 'function',
//   name: 'transfer',
//   inputs: [...],
//   outputs: [...],
//   stateMutability: 'nonpayable'
// }, ...]