Repository navigation
v0.4.6
history --verify tells an executed payment from a cancelled one. Thank you GBLIN Protocol (on X) for the catch.
- EIP-3009
authorizationStateis true both after a payment is executed and after its nonce is cancelled (cancelAuthorization), so a cancelled nonce used to read asused. The wallet never cancels on its own, but a nonce cancelled by hand would have been shown as paid. - A
trueis now confirmed by the token contract'sAuthorizationUsedevent for that payer and nonce: first in the receipt of the settlement transaction the server named, otherwise in the blocks between signing and expiry, the only time the payment could have executed. Found:used. Not found:cancelled(spent nonce, no transfer). If the RPC cannot answer, the result iserror, never a guess. Base's public RPC refuses log searches, so a Base payment with no settlement transaction on record needsWAFERMAP_RPC_BASEset to another RPC. history --verifychecks four payments at a time instead of all at once, so public RPCs stop refusing long histories.- SDK:
checkPayment()returns the new"cancelled"state and takes the entry'satandtxwhen given.
Install: npm i -g @wafermapxyz/cli (npm, with provenance) or npm i -g https://wafermap.xyz/cli/wafermap.tgz.