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

Function deriveAirnodeXpub

packages/airnode-admin/src/implementation.ts:133–136  ·  view source on GitHub ↗
(airnodeMnemonic: string)

Source from the content-addressed store, hash-verified

131};
132
133export const deriveAirnodeXpub = (airnodeMnemonic: string): string => {
134 const airnodeHdNode = ethers.utils.HDNode.fromMnemonic(airnodeMnemonic).derivePath("m/44'/60'/0'");
135 return airnodeHdNode.neuter().extendedKey;
136};
137
138export const verifyAirnodeXpub = (airnodeXpub: string, airnodeAddress: string): ethers.utils.HDNode => {
139 // The xpub is expected to belong to the hardened path m/44'/60'/0'

Callers 13

makeWithdrawalRequestFunction · 0.90
printWalletBalancesFunction · 0.90
mainFunction · 0.90
makeRequestFunction · 0.90
makeRequestFunction · 0.90
makeRequestFunction · 0.90
makeRequestFunction · 0.90
makeRequestFunction · 0.90
makeRequestFunction · 0.90
makeRequestFunction · 0.90
makeRequestFunction · 0.90
makeRequestFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected