Giter Club home page Giter Club logo

rust-sdk's Introduction

Bundlr Rust SDK

SDK for interacting with Bundlr network, using Rust.

Examples

Code examples can be found in examples directory

Client

For using the client binary, you have to build it using:

cargo build --release --features="build-binary"

The client bin will be generated at target/release/cli. Then you can execute the binary with ./cli --help

USAGE:
    cli <SUBCOMMAND>

OPTIONS:
    -h, --help    Print help information

SUBCOMMANDS:
    balance       Gets the specified user's balance for the current Bundlr node
    fund          Funds your account with the specified amount of atomic units
    help          Print this message or the help of the given subcommand(s)
    price         Check how much of a specific currency is required for an upload of <amount>
                      bytes
    upload        Uploads a specified file
    upload-dir    Uploads a folder (with a manifest)
    withdraw      Sends a fund withdrawal request

Examples

./cli balance   <address>   --host <host> --currency <currency>
./cli price     <bytes>     --host <host> --currency <currency>
./cli fund      <amount>    --host <host> --currency <currency> --wallet <path | private_key>
./cli withdraw  <amount>    --host <host> --currency <currency> --wallet <path | private_key>
./cli upload    <file>      --host <host> --currency <currency> --wallet <path | private_key>

Roadmap

Some functionalities are still work in progress. If you need to use one of them, you may want to have a look in the js-sdk, or open an issue in this repository.

Item Arweave Solana Ethereum ERC20 Cosmos Aptos
Balance [x] [x] [x] [ ] [ ] [ ]
Price [x] [x] [x] [ ] [ ] [ ]
Fund [x] [ ] [ ] [ ] [ ] [ ]
Withdraw [x] [ ] [ ] [ ] [ ] [ ]
Upload [x] [x] [x] [ ] [ ] [ ]
Upload Directory [ ] [ ] [ ] [ ] [ ] [ ]

rust-sdk's People

Contributors

bluekirby1111 avatar samuelvanderwaal avatar mikonieminen avatar joshbenaron avatar dev43 avatar

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.