GithubHelp home page GithubHelp logo

Comments (3)

CalebEverett avatar CalebEverett commented on July 22, 2024

Can you try using full paths - it doesn't like the ~. I will validate for that in a future release. Can you also try putting the AR keypair path as an environment variable? The command line parser expects it to precede the subcommand. If you pass it as an environment variable, you don't have to worry about the order in which you pass it.

I've found that order to be unintuitive myself. I will move it out so that it can be passed after the subcommands, e.g., estimate, in the next release.

In the mean time, you can run arloader estimate --help, for example, to check to make sure you are passing arguments in the expected order.

Prints the estimated cost of uploading file(s) matching provided glob.

USAGE:
    arloader --ar-keypair-path <AR_KEYPAIR_PATH> estimate [FLAGS] [OPTIONS] <GLOB>

FLAGS:
    -h, --help         Prints help information
    -n, --no-bundle    Specify whether to upload with individual transactions instead of in a bundle.
    -V, --version      Prints version information
        --with-sol     Specify whether to pay for transaction(s) with SOL.

OPTIONS:
    -o, --output <FORMAT>                    Return information in specified output format. [possible values: quiet,
                                             verbose, json, json-compact]
    -r, --reward-multiplier <REWARD_MULT>    Specify a reward multiplier as float. The reward from the network will be
                                             multiplied by this amount for submission. [default: 1.0]

I'm also going to make it so that you don't need either an AR or SOL wallet for commands other than the upload ones, per #1.

from arloader.

CalebEverett avatar CalebEverett commented on July 22, 2024

I'm going to close this since it seems like it's a matter of entering the commands in the order the parser expects, but feel free to open back up or add additional/comments questions if you still have trouble getting it going.

from arloader.

znebby avatar znebby commented on July 22, 2024

Thanks - I got it to work when putting the options in the correct order and using full paths without the ~.

However, I noticed you pushed out 0.1.36, which is meant to add support for ~ paths, but it's not working for me.

./arloader upload "*.png" --ar-keypair-path ./arweave-key --log-dir "status/asset/" --with-sol --sol-keypair-path "/home/user/.config/solana/id.json"
InsufficientSolFunds

Uploaded 0 KB in 0 files in 0 bundle transaction(s). Run arloader update-status --log-dir "status/asset/" to update statuses.

./arloader upload "*.png" --ar-keypair-path ./arweave-key --log-dir "status/asset/" --with-sol --sol-keypair-path "~/.config/solana/id.json"
error: Invalid value for '--sol-keypair-path <SOL_KEYPAIR_PATH>': Keypair path does not exist.

from arloader.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.