Skip to content
This repository was archived by the owner on Oct 16, 2025. It is now read-only.
This repository was archived by the owner on Oct 16, 2025. It is now read-only.

cargo stylus cache bid + private key #97

@anegg0

Description

@anegg0

Hi there!
Running cargo stylus cache bid requires a private key (since it's a transaction), but the CLI --help documents --private-key as an option.
Not sure if this is a bug or a feature, but I thought I'd let you know.

cargo stylus cache bid --help

Places a bid on a Stylus contract to cache it in the Arbitrum chain's wasm cache manager

Usage: cargo stylus cache bid [OPTIONS] <--private-key-path <PRIVATE_KEY_PATH>|--private-key <PRIVATE_KEY>|--keystore-path <KEYSTORE_PATH>> <ADDRESS> <BID>

Arguments:
  <ADDRESS>  Deployed and activated contract address to cache
  <BID>      Bid, in wei, to place on the desired contract to cache. A value of 0 is a valid bid

Options:
  -e, --endpoint <ENDPOINT>
          Arbitrum RPC endpoint [default: https://sepolia-rollup.arbitrum.io/rpc]
      --verbose
          Whether to print debug info
      --private-key-path <PRIVATE_KEY_PATH>
          File path to a text file containing a hex-encoded private key
      --private-key <PRIVATE_KEY>
          Private key as a hex string. Warning: this exposes your key to shell history
      --keystore-path <KEYSTORE_PATH>
          Path to an Ethereum wallet keystore file (e.g. clef)
      --keystore-password-path <KEYSTORE_PASSWORD_PATH>
          Keystore password file
      --max-fee-per-gas-gwei <MAX_FEE_PER_GAS_GWEI>
          Optional max fee per gas in gwei units
  -h, --help
          Print help
  -V, --version
          Print version

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions