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

Method hasEvent

js/src/static_dependencies/ethers/interface.js:448–450  ·  view source on GitHub ↗

* Returns true if %%key%% (an event topic hash, event name or * event signature) is present in the ABI. * * In the case of an event name, the name may be ambiguous, so * accessing the [[EventFragment]] may require refinement.

(key)

Source from the content-addressed store, hash-verified

446 * accessing the [[EventFragment]] may require refinement.
447 */
448 hasEvent(key) {
449 return !!this.#getEvent(key, null, false);
450 }
451 /**
452 * Get the [[EventFragment]] for %%key%%, which may be a topic hash,
453 * event name or event signature that belongs to the ABI.

Callers

nothing calls this directly

Calls 1

#getEventMethod · 0.95

Tested by

no test coverage detected