Skip to content

Props Diamond SDKDocs


getSelectors(contract): any

Gets function selectors from a contract interface

Parameters

contract: any

The contract to extract selectors from

Returns

any

Array of function selectors with additional helper methods

Example

ts
const myContract = new ethers.Contract(address, abi, provider);
const selectors = getSelectors(myContract);
// Returns: ['0x12345678', '0xabcdef12', ...]