Straight-forward remote management for Nimiq Albatross nodes
npm install @sisou/albatross-remote@sisou/albatross-remote (arpl)
=======================
Straight-forward remote management for Nimiq Albatross nodes




* Usage
* Connection Options
* Request Options
* Commands
sh-session
$ npm install -g @sisou/albatross-remote
$ arpl COMMAND
running command...
$ arpl (-v|--version|version)
@sisou/albatross-remote/0.24.0 linux-x64 node-v20.17.0
$ arpl --help [COMMAND]
USAGE
$ arpl COMMAND
...
`
Connection Options
`sh-session
-u, --url The URL of the RPC server, overwrites host and port
options (default: [http|ws]://localhost:8648[/ws])
-h, --host Hostname of the RPC server (default: localhost)
-p, --port Port of the RPC server (default: 8648)`Request Options
`sh-session
-t, --timeout Timeout for request in ms, set to 0 to disable (default: 5000)
-m, --metadata Show response metadata (default: false)
`Commands
* arpl account:create
* arpl account:follow ADDRESS
* arpl account:get ADDRESS
* arpl account:import PRIVATEKEY
* arpl account:list
* arpl account:lock ADDRESS
* arpl account:transactions ADDRESS
* arpl account:unlock ADDRESS
* arpl block:follow
* [arpl block:get [NUMBER_OR_HASH]](#arpl-blockget-number_or_hash)
* [arpl help [COMMAND]](#arpl-help-command)
* arpl peer:id
* [arpl raw COMMAND [OPTIONS]](#arpl-raw-command-options)
* arpl repl
* arpl stake:add WALLET VALUE
* [arpl stake:deactivate WALLET [AMOUNT]](#arpl-stakedeactivate-wallet-amount)
* arpl stake:get STAKER_ADDRESS
* arpl stake:list
* arpl stake:move WALLET NEW_VALIDATOR_ADDRESS
* [arpl stake:remove WALLET [AMOUNT]](#arpl-stakeremove-wallet-amount)
* [arpl stake:retire WALLET [AMOUNT]](#arpl-stakeretire-wallet-amount)
* arpl stake:start WALLET VALIDATOR_ADDRESS VALUE
* arpl status
* arpl transaction:get HASH
* arpl transaction:send WALLET RECIPIENT VALUE
* arpl validator:deactivate WALLET VALIDATOR_ADDRESS SIGNING_SECRET_KEY
* arpl validator:delete WALLET
* arpl validator:get VALIDATOR_ADDRESS
* arpl validator:new WALLET SIGNING_SECRET_KEY VOTING_SECRET_KEY
* arpl validator:reactivate WALLET VALIDATOR_ADDRESS SIGNING_SECRET_KEY
* arpl validator:retire WALLET VALIDATOR_ADDRESS
* arpl validator:update WALLET VALIDATOR_ADDRESSarpl account:createCreate a new account in the node
`
USAGE
$ arpl account:createOPTIONS
--password=password Password to encrypt the key
--unlock Unlock the account after creation
`_See code: src/commands/account/create.ts_
arpl account:follow ADDRESSStream account events live
`
USAGE
$ arpl account:follow ADDRESSARGUMENTS
ADDRESS Address of the account to follow
`_See code: src/commands/account/follow.ts_
arpl account:get ADDRESSShow account information
`
USAGE
$ arpl account:get ADDRESSARGUMENTS
ADDRESS Address of the account to display
`_See code: src/commands/account/get.ts_
arpl account:import PRIVATEKEYImport an account by its private key
`
USAGE
$ arpl account:import PRIVATEKEYARGUMENTS
PRIVATEKEY Private key in HEX or Base64 format
OPTIONS
--password=password Password to encrypt the key
--unlock Unlock the account after import
`_See code: src/commands/account/import.ts_
arpl account:listList accounts available in node
`
USAGE
$ arpl account:list
`_See code: src/commands/account/list.ts_
arpl account:lock ADDRESSLock an account
`
USAGE
$ arpl account:lock ADDRESSARGUMENTS
ADDRESS Address of the account to lock
`_See code: src/commands/account/lock.ts_
arpl account:transactions ADDRESSList transactions for an address (newest first)
`
USAGE
$ arpl account:transactions ADDRESSARGUMENTS
ADDRESS Address to display transactions for
OPTIONS
-x, --extended show extra columns
--columns=columns only show provided columns (comma-separated)
--csv output is csv format [alias: --output=csv]
--filter=filter filter property by partial string matching, ex: name=foo
--max=max Max number of transactions to return
--no-header hide table header from output
--no-truncate do not truncate output to fit screen
--output=csv|json|yaml output in a more machine friendly format
--sort=sort property to sort by (prepend '-' for descending)
--startAt=startAt Transaction hash to start at, used for paging
ALIASES
$ arpl account:txs
`_See code: src/commands/account/transactions.ts_
arpl account:unlock ADDRESSUnlock an account
`
USAGE
$ arpl account:unlock ADDRESSARGUMENTS
ADDRESS Address of the account to unlock
OPTIONS
--password=password Password to decrypt the key
`_See code: src/commands/account/unlock.ts_
arpl block:followStream blocks live
`
USAGE
$ arpl block:follow
`_See code: src/commands/block/follow.ts_
arpl block:get [NUMBER_OR_HASH]Show block information
`
USAGE
$ arpl block:get [NUMBER_OR_HASH]ARGUMENTS
NUMBER_OR_HASH [default: latest] Block number or hash of the block to get
OPTIONS
--full Include block body (transactions, etc.)
`_See code: src/commands/block/get.ts_
arpl help [COMMAND]display help for arpl
`
USAGE
$ arpl help [COMMAND]ARGUMENTS
COMMAND command to show help for
OPTIONS
--all see all commands in CLI
`_See code: @oclif/plugin-help_
arpl peer:idGet the local peer ID of the node
`
USAGE
$ arpl peer:id
`_See code: src/commands/peer/id.ts_
arpl raw COMMAND [OPTIONS]Run a raw Nimiq JSON-RPC command
`
USAGE
$ arpl raw COMMAND [OPTIONS]
`_See code: src/commands/raw.ts_
arpl replOpen an interactive REPL session to run commands
`
USAGE
$ arpl replEXAMPLE
$ repl
`_See code: @sisou/oclif-plugin-repl_
arpl stake:add WALLET VALUEAdd stake to a staker
`
USAGE
$ arpl stake:add WALLET VALUEARGUMENTS
WALLET Address of unlocked account to add stake from
VALUE NIM amount to add
OPTIONS
--address=address Staker address to add stake to (default: sender address)
--dry Return serialized transaction without sending it
--fee=fee Fee in Luna (default: 0)
--validity-start=validity-start [default: +0] Validity start height of the transaction
ALIASES
$ arpl staker:stake
`_See code: src/commands/stake/add.ts_
arpl stake:deactivate WALLET [AMOUNT]Deactivate stake, for moving to another validator or retiring
`
USAGE
$ arpl stake:deactivate WALLET [AMOUNT]ARGUMENTS
WALLET Address of unlocked account that owns the stake
AMOUNT Amount of NIM that should be deactivated. Omit this argument and pass --all instead to deactivate all active
stake.
OPTIONS
--all Deactivate all active stake
--dry Return serialized transaction without sending it
--fee=fee Fee in Luna (default: 0)
--fee-wallet=fee-wallet Address of unlocked account to pay the fee from (default: fee is paid from stake)
--validity-start=validity-start [default: +0] Validity start height of the transaction
ALIASES
$ arpl staker:deactivate
`_See code: src/commands/stake/deactivate.ts_
arpl stake:get STAKER_ADDRESSShow information for a staker
`
USAGE
$ arpl stake:get STAKER_ADDRESSARGUMENTS
STAKER_ADDRESS Address of staker to show information for
OPTIONS
--plain Display plain command output
ALIASES
$ arpl staker:get
`_See code: src/commands/stake/get.ts_
arpl stake:listList validators and their stakes
`
USAGE
$ arpl stake:listOPTIONS
--plain Display plain command output
`_See code: src/commands/stake/list.ts_
arpl stake:move WALLET NEW_VALIDATOR_ADDRESSMove stake to another validator (update)
`
USAGE
$ arpl stake:move WALLET NEW_VALIDATOR_ADDRESSARGUMENTS
WALLET Address of unlocked account that owns the stake
NEW_VALIDATOR_ADDRESS Address of the validator to move stake to
OPTIONS
--dry Return serialized transaction without sending it
--fee=fee Fee in Luna (default: 0)
--fee-wallet=fee-wallet Address of unlocked account to pay the fee from (default: fee is paid from stake)
--no-reactivate Do not reactivate all stake after changing delegation
--validity-start=validity-start [default: +0] Validity start height of the transaction
ALIASES
$ arpl staker:update
`_See code: src/commands/stake/move.ts_
arpl stake:remove WALLET [AMOUNT]Remove stake (unstake) back to your account
`
USAGE
$ arpl stake:remove WALLET [AMOUNT]ARGUMENTS
WALLET Address of unlocked account that owns the stake
AMOUNT Amount of NIM that should be removed/unstaked. Omit this argument and pass --all instead to remove/unstake all
retired stake.
OPTIONS
--all Remove/unstake all retired stake
--dry Return serialized transaction without sending it
--fee=fee Fee in Luna (default: 0)
--recipient=recipient Address to receive stake (default: WALLET)
--validity-start=validity-start [default: +0] Validity start height of the transaction
ALIASES
$ arpl staker:remove
$ arpl stake:unstake
$ arpl staker:unstake
`_See code: src/commands/stake/remove.ts_
arpl stake:retire WALLET [AMOUNT]Retire stake, for removing/unstaking
`
USAGE
$ arpl stake:retire WALLET [AMOUNT]ARGUMENTS
WALLET Address of unlocked account that owns the stake
AMOUNT Amount of NIM that should be retired. Omit this argument and pass --all instead to retire all inactive stake.
OPTIONS
--all Retire all inactive stake
--dry Return serialized transaction without sending it
--fee=fee Fee in Luna (default: 0)
--fee-wallet=fee-wallet Address of unlocked account to pay the fee from (default: fee is paid from stake)
--validity-start=validity-start [default: +0] Validity start height of the transaction
ALIASES
$ arpl staker:retire
`_See code: src/commands/stake/retire.ts_
arpl stake:start WALLET VALIDATOR_ADDRESS VALUEStart staking with a validator (new staker)
`
USAGE
$ arpl stake:start WALLET VALIDATOR_ADDRESS VALUEARGUMENTS
WALLET Address of unlocked account to start staking from
VALIDATOR_ADDRESS Address of the validator to stake with
VALUE NIM amount to stake
OPTIONS
--dry Return serialized transaction without sending it
--fee=fee Fee in Luna (default: 0)
--staker-wallet=staker-wallet Address of unlocked staker account (default: WALLET)
--validity-start=validity-start [default: +0] Validity start height of the transaction
ALIASES
$ arpl staker:new
`_See code: src/commands/stake/start.ts_
arpl statusShow the current status of the node
`
USAGE
$ arpl status
`_See code: src/commands/status.ts_
arpl transaction:get HASHShow transaction information
`
USAGE
$ arpl transaction:get HASHARGUMENTS
HASH Transaction hash of the transaction to get
ALIASES
$ arpl tx:get
`_See code: src/commands/transaction/get.ts_
arpl transaction:send WALLET RECIPIENT VALUESend a transaction
`
USAGE
$ arpl transaction:send WALLET RECIPIENT VALUEARGUMENTS
WALLET Address of unlocked account to send transaction from
RECIPIENT Address of recipient
VALUE NIM amount to send
OPTIONS
--data=data HEX-encoded data
--dry Return serialized transaction without sending it
--fee=fee Fee in Luna (default: 0)
--validity-start=validity-start [default: +0] Validity start height of the transaction
ALIASES
$ arpl tx:send
`_See code: src/commands/transaction/send.ts_
arpl validator:deactivate WALLET VALIDATOR_ADDRESS SIGNING_SECRET_KEYDeactivate an active validator
`
USAGE
$ arpl validator:deactivate WALLET VALIDATOR_ADDRESS SIGNING_SECRET_KEYARGUMENTS
WALLET Address of unlocked account to send transaction from (fees are taken from this account)
VALIDATOR_ADDRESS Address of the validator
SIGNING_SECRET_KEY Secret key used to sign the deactivate transaction
OPTIONS
--dry Return serialized transaction without sending it
--fee=fee Fee in Luna (default: 0)
--validity-start=validity-start [default: +0] Validity start height of the transaction
`_See code: src/commands/validator/deactivate.ts_
arpl validator:delete WALLETDelete a retired validator
`
USAGE
$ arpl validator:delete WALLETARGUMENTS
WALLET Address of unlocked account that owns the validator
OPTIONS
--dry Return serialized transaction without sending it
--fee=fee Fee in Luna (default: 0)
--recipient=recipient Address to receive validator deposit (default: sender address)
--validity-start=validity-start [default: +0] Validity start height of the transaction
`_See code: src/commands/validator/delete.ts_
arpl validator:get VALIDATOR_ADDRESSShow information for a validator
`
USAGE
$ arpl validator:get VALIDATOR_ADDRESSARGUMENTS
VALIDATOR_ADDRESS Address of validator to show information for
OPTIONS
--plain Display plain command output
`_See code: src/commands/validator/get.ts_
arpl validator:new WALLET SIGNING_SECRET_KEY VOTING_SECRET_KEYRegister a new validator (requires 10k NIM deposit)
`
USAGE
$ arpl validator:new WALLET SIGNING_SECRET_KEY VOTING_SECRET_KEYARGUMENTS
WALLET Address of unlocked account to send transaction from (deposit and fees are taken from this
account)
SIGNING_SECRET_KEY Secret key used to sign Micro blocks and retire, reactivate & unpark transactions (default:
sending address)
VOTING_SECRET_KEY BLS secret key used when signing votes (for Macro blocks and view changes)
OPTIONS
--dry Return serialized transaction without sending it
--fee=fee Fee in Luna (default: 0)
--reward-address=reward-address Reward address for the validator (default: sending address)
--signal-data=signal-data 32-byte signal data (default: none)
--validator-address=validator-address Address of unlocked account that will own the validator (default: sending
address)
--validity-start=validity-start [default: +0] Validity start height of the transaction
`_See code: src/commands/validator/new.ts_
arpl validator:reactivate WALLET VALIDATOR_ADDRESS SIGNING_SECRET_KEYReactivate an inactive validator
`
USAGE
$ arpl validator:reactivate WALLET VALIDATOR_ADDRESS SIGNING_SECRET_KEYARGUMENTS
WALLET Address of unlocked account to send transaction from (fees are taken from this account)
VALIDATOR_ADDRESS Address of the validator
SIGNING_SECRET_KEY Secret key used to sign the reactivate transaction
OPTIONS
--dry Return serialized transaction without sending it
--fee=fee Fee in Luna (default: 0)
--validity-start=validity-start [default: +0] Validity start height of the transaction
`_See code: src/commands/validator/reactivate.ts_
arpl validator:retire WALLET VALIDATOR_ADDRESSRetire an active or deactivated validator
`
USAGE
$ arpl validator:retire WALLET VALIDATOR_ADDRESSARGUMENTS
WALLET Address of unlocked account to send transaction from (fees are taken from this account)
VALIDATOR_ADDRESS Address of unlocked account that owns the validator
OPTIONS
--dry Return serialized transaction without sending it
--fee=fee Fee in Luna (default: 0)
--validity-start=validity-start [default: +0] Validity start height of the transaction
`_See code: src/commands/validator/retire.ts_
arpl validator:update WALLET VALIDATOR_ADDRESSUpdate reward address or secret key of a validator
`
USAGE
$ arpl validator:update WALLET VALIDATOR_ADDRESSARGUMENTS
WALLET Address of unlocked account to send transaction from (fees are taken from this account)
VALIDATOR_ADDRESS Address of unlocked account that owns the validator
OPTIONS
--dry Return serialized transaction without sending it
--fee=fee Fee in Luna (default: 0)
--reward-address=reward-address New reward address for the validator (default: no change)
--signal-data=signal-data New 32-byte signal data (default: no change)
--signing-secret-key=signing-secret-key New secret key used to sign Micro blocks and retire, reactivate & unpark
transactions (default: no change)
--validity-start=validity-start [default: +0] Validity start height of the transaction
--voting-secret-key=voting-secret-key New BLS secret key used when signing votes (default: no change)
``_See code: src/commands/validator/update.ts_