MCPcopy Create free account
hub / github.com/api3dao/airnode / verifyCallApi

Function verifyCallApi

packages/airnode-node/src/api/index.ts:140–149  ·  view source on GitHub ↗
(payload: ApiCallPayload)

Source from the content-addressed store, hash-verified

138}
139
140export function verifyCallApi(payload: ApiCallPayload) {
141 switch (payload.type) {
142 case 'regular':
143 return verifyRegularCallApiParams(payload);
144 case 'http-signed-data-gateway':
145 return verifyHttpSignedCallApiParams(payload);
146 default:
147 return null;
148 }
149}
150
151export function verifyRegularCallApiParams(payload: RegularApiCallPayload) {
152 const verifications = [verifyRequestId, verifyTemplateId];

Callers 1

callApiFunction · 0.85

Calls 2

Tested by

no test coverage detected