GetETHSignatureTracker
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
# [collectionId] [approvalLevel] [approverAddress] [approvalId] [challengeTrackerId] [signature]
bb query tokenization num-used-for-eth-signature-challenge 1 collection "" two-factor twofa-signatures 0xab99124b11e595ee42fb667fc5e0d350a2858f6115c9c34471c926b79d917077aaf8862dd21cebd059a20dda810b3a2e14fb4f3ba336e901c63f7ae1dbc6fde01bcurl "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
| Field | Type | Description |
|---|---|---|
collectionId | string | Collection ID. |
approvalLevel | string | collection, incoming, or outgoing. |
approverAddress | string | Empty for collection. |
approvalId | string | Approval ID. |
challengeTrackerId | string | challengeTrackerId from the ETH signature challenge. |
signature | string | Full 0x-prefixed Ethereum signature. |
Response
{ "numUsed": "1" }| Field | Type | Description |
|---|---|---|
numUsed | string | Uses 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.