Skip to content

Verify a response fetched by the provider from its trusted chain node, never a client-supplied response.

verifySpendableCreditReceipt(collection, response, request): object

Defined in: packages/bitbadgesjs-sdk/src/core/spendable-credits.ts:179

Verify a response fetched by the provider from its trusted chain node, never a client-supplied response.

Parameters

collection

any

response

any

request

SpendableCreditRequest

Returns

object

collectionId

collectionId: string = expected.collectionId

height

height: string

provider

provider: string = request.provider

receiptId

receiptId: string

requestId

requestId: string = request.requestId

serviceId

serviceId: string = request.serviceId

txHash

txHash: string

units

units: string = request.units

wallet

wallet: string = request.wallet

Edit this page on GitHub