View as Markdown

SDK reference · Rails

verifyOffer

verifyOffer in @provenanceauth/rails/deals, Rails. Verify a signed offer against the seller's REGISTERED keys (never a key inside the offer): the signature, the key's status, expiry, the totals, the size, and aud when you pass the buyer.

Signature

verifyOffer(offer: string, opts: { keys: SellerKey[]; now?: number; buyerAgentId?: string; seller?: string }): Promise<OfferVerifyResult>

Parameters

offerstringRequired
opts{ keys: SellerKey[]; now?: number; buyerAgentId?: string; seller?: string }Required

Returns

Promise<OfferVerifyResult>

HTTP operation

Runs locally, with no request to the API.

Was this page helpful? Send us feedback

LLM? Read llms.txt.