View as Markdown

SDK reference · Rails

verifyUsageStatement

verifyUsageStatement in @provenanceauth/rails/tabs, Rails. Verify a usage statement against the seller's registered keys.

Signature

verifyUsageStatement(statement: string, opts: { keys: SellerKey[]; seller?: string }): Promise<{ valid: boolean; detail?: string; payload: UsageStatementPayload | null }>

Parameters

statementstringRequired
opts{ keys: SellerKey[]; seller?: string }Required

Returns

Promise<{ valid: boolean; detail?: string; payload: UsageStatementPayload | null }>

HTTP operation

Runs locally, with no request to the API.

Was this page helpful? Send us feedback

LLM? Read llms.txt.