Interface: iEVMQueryChallengeWithDetails<T>
EVM query challenge with optional resolved metadata (WithDetails pattern). Used in approval criteria and collection invariants when returned from the API.
Defined in: packages/bitbadgesjs-sdk/src/interfaces/types/core.ts:869
EVM query challenge with optional resolved metadata (WithDetails pattern). Used in approval criteria and collection invariants when returned from the API.
Extends
Type Parameters
T
T extends NumberType
Properties
calldata
calldata:
string
Defined in: packages/bitbadgesjs-sdk/src/interfaces/types/core.ts:818
ABI-encoded function selector + arguments (hex string). Example: "70a08231000000000000000000000000{address}" for balanceOf(address) Placeholders: $initiator, $sender, $recipient, $collectionId, $recipients
Inherited from
comparisonOperator?
optionalcomparisonOperator?:string
Defined in: packages/bitbadgesjs-sdk/src/interfaces/types/core.ts:830
Comparison operator: "eq" (equals), "ne" (not equals), "gt" (greater than), "gte", "lt", "lte" Only "eq" and "ne" work for non-numeric types. Default is "eq".
Inherited from
iEVMQueryChallenge.comparisonOperator
contractAddress
contractAddress:
string
Defined in: packages/bitbadgesjs-sdk/src/interfaces/types/core.ts:811
The EVM contract address to query (0x format or bb1 format)
Inherited from
iEVMQueryChallenge.contractAddress
customData?
optionalcustomData?:string
Defined in: packages/bitbadgesjs-sdk/src/interfaces/types/core.ts:845
Arbitrary custom data
Inherited from
expectedResult?
optionalexpectedResult?:string
Defined in: packages/bitbadgesjs-sdk/src/interfaces/types/core.ts:824
Expected return value (hex string). If empty, any non-error result passes. For boolean checks, use "0000...0001" for true.
Inherited from
iEVMQueryChallenge.expectedResult
gasLimit
gasLimit:
T
Defined in: packages/bitbadgesjs-sdk/src/interfaces/types/core.ts:835
Gas limit for the query (default 100000, max 500000)
Inherited from
metadata?
optionalmetadata?:iEVMQueryChallengeMetadata
Defined in: packages/bitbadgesjs-sdk/src/interfaces/types/core.ts:871
Resolved metadata from the challenge URI, when populated by the indexer/API
uri?
optionaluri?:string
Defined in: packages/bitbadgesjs-sdk/src/interfaces/types/core.ts:840
The URI associated with this challenge (metadata)