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

Function signWithRequestId

packages/airnode-node/src/api/index.ts:82–90  ·  view source on GitHub ↗
(requestId: string, data: string)

Source from the content-addressed store, hash-verified

80}
81
82export function signWithRequestId(requestId: string, data: string) {
83 const airnodeWallet = getAirnodeWalletFromPrivateKey();
84
85 return airnodeWallet.signMessage(
86 ethers.utils.arrayify(
87 ethers.utils.keccak256(ethers.utils.solidityPack(['bytes32', 'bytes'], [requestId, data || '0x']))
88 )
89 );
90}
91
92export function signWithTemplateId(templateId: string, timestamp: string, data: string) {
93 const airnodeWallet = getAirnodeWalletFromPrivateKey();

Callers 1

processSuccessfulApiCallFunction · 0.85

Calls 1

Tested by

no test coverage detected