Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
@api3/airnode-admin
Advanced tools
> A package/CLI tool to interact with the Airnode contracts across chains
@airnode/admin
@api3/airnode-admin
A package/CLI tool to interact with the Airnode contracts across chains
All commands require you to either provide a providerUrl
(e.g., https://ropsten.infura.io/v3/<KEY>
) or a chain
(e.g., ropsten
).
Using chain
will use the default ethers.js provider, which may rate-limit you.
Furthermore, it may not support the chain you want to use (xDai, Fantom, etc.)
Commands that require mnemonic
will make an on-chain transaction.
Make sure that the wallet that is associated with the mnemonic is funded on the target chain.
The application will not exit until the transaction is confirmed.
To see all commands:
npx @api3/airnode-admin --help
To see the parameters of a command:
npx @api3/airnode-admin $COMMAND --help
create-requester
Creates a requester and returns a requester index. Note down your requester index because you will be using it in future interactions.
npx @api3/airnode-admin create-requester \
--chain ropsten \
--mnemonic "nature about salad..." \
--requesterAdmin 0x5c17cb...
update-requester-admin
Updates the requester admin.
The mnemonic
you provide here has to belong to the previous requester admin.
npx @api3/airnode-admin update-requester-admin \
--chain ropsten \
--mnemonic "nature about salad..." \
--requesterIndex 6 \
--requesterAdmin 0xe97301...
derive-designated-wallet
Derives the address of the wallet designated by a provider for a requester.
npx @api3/airnode-admin derive-designated-wallet \
--chain ropsten \
--providerId 0xe1e0dd... \
--requesterIndex 6
endorse-client
Endorses a client contract so that its requests can be fulfilled by the requester's designated wallet.
The mnemonic
you provide here has to belong to the requester admin.
npx @api3/airnode-admin endorse-client \
--chain ropsten \
--mnemonic "nature about salad..." \
--requesterIndex 6 \
--clientAddress 0x2c2e12...
unendorse-client
Unendorses a client contract so that its requests can no longer be fulfilled by the requester's designated wallet.
The mnemonic
you provide here has to belong to the requester admin.
npx @api3/airnode-admin unendorse-client \
--chain ropsten \
--mnemonic "nature about salad..." \
--requesterIndex 6 \
--clientAddress 0x2c2e12...
create-template
Reads a file, uses its contents to create a template and returns the template ID.
See the /example
directory for an example template file.
npx @api3/airnode-admin create-template \
--chain ropsten \
--mnemonic "nature about salad..." \
--templateFilePath ./template.json
request-withdrawal
Requests a withdrawal from the wallet designated by a provider for a requester, and returns the request ID.
The mnemonic
you provide here has to belong to the requester admin.
npx @api3/airnode-admin request-withdrawal \
--chain ropsten \
--mnemonic "nature about salad..." \
--providerId 0xe1e0dd... \
--requesterIndex 6 \
--destination 0x98aaba...
check-withdrawal-request
Checks the status of the withdrawal request with the given ID.
npx @api3/airnode-admin check-withdrawal-request \
--chain ropsten \
--withdrawalRequestId 0x011d1b...
create-provider
Creates a provider and returns a provider ID.
You probably should not be using this. Airnode will create your provider during deployment.
npx @api3/airnode-admin create-provider \
--chain ropsten \
--mnemonic "nature about salad..." \
--providerAdmin 0xc2193d...
update-provider-admin
Updates the provider admin.
The mnemonic
you provide here has to belong to the previous provider admin.
npx @api3/airnode-admin update-provider-admin \
--chain ropsten \
--mnemonic "nature about salad..." \
--providerId 0xe1e0dd... \
--providerAdmin 0x60558a...
derive-endpoint-id
Derives the endpoint ID using the OIS title and the endpoint name using the convention described here.
npx @api3/airnode-admin derive-endpoint-id \
--oisTitle "My OIS title..." \
--endpointName "My endpoint name..."
update-authorizers
Updates the authorizers of an endpoint belonging to a provider.
The mnemonic
you provide here has to belong to the provider admin.
See the /example
directory for an example authorizers file.
npx @api3/airnode-admin update-authorizers \
--chain ropsten \
--mnemonic "nature about salad..." \
--providerId 0xe1e0dd... \
--endpointId 0x260558... \
--authorizersFilePath ./authorizers.json
FAQs
> A package/CLI tool to interact with the Airnode contracts across chains
The npm package @api3/airnode-admin receives a total of 144 weekly downloads. As such, @api3/airnode-admin popularity was classified as not popular.
We found that @api3/airnode-admin demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.