MCPcopy Create free account
hub / github.com/ccxt/ccxt / getFunction

Method getFunction

ts/src/static_dependencies/ethers/interface.ts:566–568  ·  view source on GitHub ↗

* Get the [[FunctionFragment]] for %%key%%, which may be a function * selector, function name or function signature that belongs to the ABI. * * If %%values%% is provided, it will use the Typed API to handle * ambiguous cases where multiple functions match by name. *

(key: string, values?: Array<any | Typed>)

Source from the content-addressed store, hash-verified

564 * the ABI, this will throw.
565 */
566 getFunction(key: string, values?: Array<any | Typed>): null | FunctionFragment {
567 return this.#getFunction(key, values || null, true);
568 }
569
570 /**
571 * Iterate over all functions, calling %%callback%%, sorted by their name.

Callers 5

decodeFunctionDataMethod · 0.95
encodeFunctionDataMethod · 0.95
decodeFunctionResultMethod · 0.95
encodeFunctionResultMethod · 0.95
parseTransactionMethod · 0.95

Calls 1

#getFunctionMethod · 0.95

Tested by

no test coverage detected