zeroExSettlerNonce
zeroExSettlerNonce(
chainId,address,registry?,maxNonce?):number|null
Defined in: protocol-swap2-0x/src/settler.ts:128
Which deployment of the registry’s taker feature address is on chainId (its nonce), or null when it is none of
deployments 1…maxNonce — by default the newest one the default table accepts on the chain
(ZeroExChain.newestLiveNonce plus ZEROEX_SETTLER_NONCE_MARGIN; a chain outside the table has none:
null). An RPC (or an API) can therefore only ever name a contract 0x’s own registry deployed as a Settler — never an
arbitrary contract or account. Bounded by the pin, an address that is no Settler costs a few dozen derivations, not
a thousand. Memoized per chain.
Parameters
Section titled “Parameters”chainId
Section titled “chainId”number
address
Section titled “address”string
registry?
Section titled “registry?”string = ZEROEX_SETTLER_REGISTRY
maxNonce?
Section titled “maxNonce?”number
Returns
Section titled “Returns”number | null