CalebEverett / arloader

Rust command line application and client for uploading files to Arweave.
Apache License 2.0
83 stars 23 forks source link

Allow setting solana_url #4

Closed znebby closed 2 years ago

znebby commented 2 years ago

This would let us use private nodes or chains other than the mainnet

CalebEverett commented 2 years ago

Good point - I've seen a lot of private rpc usage. I can add that in. Although with the bundled transaction format, there are many fewer transactions and rate limits shouldn't be a problem.

On Tue, Dec 7, 2021, 1:00 AM znebby @.***> wrote:

This would let us use private nodes or chains other than the mainnet

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/CalebEverett/arloader/issues/4, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACEIMQYODO6JWI37WXDQLFLUPXEJ7ANCNFSM5JQWCM4Q . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

CalebEverett commented 2 years ago

Actually, I don't think this really works. Non-main net chains don't work because you need to have actually transferred SOL in order to pay for the signing of the AR transaction, which only has a mainnet, no dev net. Also, the concept of submitting a url to the signing service that it then uses to sign is beyond the scope of the service. Users submit signed, but unsubmitted transactions to the service api. It is then up to the service api to decide where it wants to submit those transactions to get them recorded and verified.

znebby commented 2 years ago

Actually - it works with Devnet Solana, with the tool in Metaplex. There may be some restrictions on the file-size, but it's good for testing.

CalebEverett commented 2 years ago

I think they are paying actual AR to make that work. One difference here is that the process stops after the file load and doesn't do anything with Solana (other than completing the funding transaction), so if you wanted to test with a small number of small files, the cost of doing that is almost negligible. You would just send those through as you would the normal ones and then check the links.