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
offerstringRequiredopts{ keys: SellerKey[]; now?: number; buyerAgentId?: string; seller?: string }Required
Returns
Promise<OfferVerifyResult>
HTTP operation
Runs locally, with no request to the API.