Security News
Input Validation Vulnerabilities Dominate MITRE's 2024 CWE Top 25 List
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
pontem-cli
Advanced tools
A simple cli interface to the Pontem network.
Fork of @polkadot/api.
Install:
npm install -g pontem-cli
Commands are of the form,
pontem-cli [options] <type> <...params>
Where type is the type of query to be made, this takes the form of <type>.<section>.<method>
where type
is one of consts
, derive
, query
, rpc
tx
(mapping to the API) and the section
and method
are available calls.
For instance to make a query to retrieve Alice's balances, you can do
pontem-cli query.system.account 5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY
To do the same, running as a subscription and streaming results
pontem-cli query.system.account 5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY --sub
To make a transfer from Alice to Bob, the following can be used -
pontem-cli tx.balances.transfer 5FHneW46xGXgs5mUiveU4sbTyGBzmstUspZC92UhjJM694ty 12345 --seed "//Alice"
It is often desirable to include large binary blobs as transaction parameters. These blobs are often already present in the local filesystem. Therefore, the CLI has special syntax to make life easier: any transaction parameter whose initial character is @
is treated as a path to a binary file; its contents are automatically converted into appropriate hex form before sending the tx.
The sudo
example demonstrates this.
Some transactions require superuser access. For example, to change the runtime code, you can do
pontem-cli --sudo --seed "//Alice" tx.system.setCode @test.wasm
In all cases when sudoing, the seed provided should be that of the superuser. For most development nets, that is "//Alice"
.
The --ws
param can be used to connect to other Websocket endpoints, when submitting transactions, you can use the --seed <seed>
to specify an account seed. To read documentation on a call, use the --info
command.
To specify types for a specific chain, you can use the --types <types.json>
param, injecting the specified types into the API on construction.
For a complete list of available commands, you can use --help
FAQs
A commandline API interface for interacting with a chain
The npm package pontem-cli receives a total of 0 weekly downloads. As such, pontem-cli popularity was classified as not popular.
We found that pontem-cli demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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.
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.
Research
Security News
A threat actor's playbook for exploiting the npm ecosystem was exposed on the dark web, detailing how to build a blockchain-powered botnet.