Skip to content

@ecp.eth/sdk


@ecp.eth/sdk / core

core

Ethereum Comments Protocol SDK Core Core functionality for the Ethereum Comments Protocol

Type Aliases

Type AliasDescription
Hextype for hex format string, e.g. 0x1234567890abcdef
RunAsyncOptions-
WaitableWriteContractHelperResult-
WriteContractHelperResultThe result of a write contract function

Variables

VariableDescription
HexSchema-

Functions

FunctionDescription
createWaitableWriteContractHelperThis function wraps the write function to add a wait() method in the returned object. The wait() method waits the transaction receipt and returns the event arguments specified by the write function, within the transaction.
getOneDayFromNowInSecondsGet the number of seconds to one day from now
getOneMinuteFromNowInSecondsGet the number of seconds to one minute from now
isZeroHexCheck if a hex string is zero
runAsyncRun an async function with retries and backoff.