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

Function main

packages/airnode-examples/src/scripts/make-withdrawal-request.ts:62–70  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

60};
61
62const main = async () => {
63 await printWalletBalances();
64 cliPrint.info('Making withdrawal request...');
65 const requestId = await setMaxPromiseTimeout(makeWithdrawalRequest(), 80 * 1000);
66 cliPrint.info('Waiting for fulfillment...');
67 await waitForFulfillment(requestId);
68 cliPrint.info('Withdrawal request fulfilled');
69 await printWalletBalances();
70};
71
72runAndHandleErrors(main);

Callers

nothing calls this directly

Calls 5

printWalletBalancesFunction · 0.85
setMaxPromiseTimeoutFunction · 0.85
makeWithdrawalRequestFunction · 0.85
infoMethod · 0.80
waitForFulfillmentFunction · 0.70

Tested by

no test coverage detected