Skip to content

GetETHSignatureTracker returns how many times an Ethereum signature has been used for an ETH signature challenge.

Returns the number of times a given signature has been used to satisfy an ETH signature challenge.

Example

bash
# [collectionId] [approvalLevel] [approverAddress] [approvalId] [challengeTrackerId] [signature]
bb query tokenization num-used-for-eth-signature-challenge 1 collection "" two-factor twofa-signatures 0xab99124b11e595ee42fb667fc5e0d350a2858f6115c9c34471c926b79d917077aaf8862dd21cebd059a20dda810b3a2e14fb4f3ba336e901c63f7ae1dbc6fde01b
bash
curl "https://lcd.bitbadges.io/bitbadges/bitbadgeschain/tokenization/get_eth_signature_tracker/1/collection//two-factor/twofa-signatures/0xab99124b11e595ee42fb667fc5e0d350a2858f6115c9c34471c926b79d917077aaf8862dd21cebd059a20dda810b3a2e14fb4f3ba336e901c63f7ae1dbc6fde01b"

The REST path order is {collectionId}/{approvalLevel}/{approverAddress}/{approvalId}/{challengeTrackerId}/{signature}.

Request

FieldTypeDescription
collectionIdstringCollection ID.
approvalLevelstringcollection, incoming, or outgoing.
approverAddressstringEmpty for collection.
approvalIdstringApproval ID.
challengeTrackerIdstringchallengeTrackerId from the ETH signature challenge.
signaturestringFull 0x-prefixed Ethereum signature.

Response

json
{ "numUsed": "1" }
FieldTypeDescription
numUsedstringUses so far. "0" when never used.

Behavior

  • Each signature can be used once per challenge tracker. A value of "1" means the signature is spent and a transfer that presents it again fails.

Edit this page on GitHub