opensea.rs is a powerful Rust library and CLI tool designed to interact with the Opensea API and its associated Ethereum smart contracts. This project aims to provide developers with a robust and efficient interface for managing and transacting NFTs on the Opensea marketplace using the Rust programming language.
opensea.rs offers a range of features tailored for developers:
Opensea API: Provides comprehensive bindings to interact with the Opensea API.
Opensea Types: Includes essential types such as Orders, enabling seamless integration with Opensea's orderbook.
Contract Clients: Supports interactions with ERC721 and ERC1155 contracts, allowing users to fill sell orders and more.
CLI Tool: Features a command-line interface for various operations, including deploying contracts, querying prices, and purchasing NFTs. The CLI also supports Flashbots integration for private and efficient transactions.
The CLI tool is versatile and user-friendly. To access the top-level help menu, run:
This command provides information on available subcommands such as buying NFTs, deploying contracts, and querying prices. Each subcommand comes with its own help menu, accessible via:
The CLI allows for purchasing NFTs with detailed options for ERC1155 and ERC721 tokens. Here is an example command for buying ERC1155 NFTs using Flashbots:
The tool supports Flashbots, allowing transactions to be included in Flashbots bundles, ensuring efficient and private transaction execution. If Flashbots parameters are omitted, transactions are submitted via the public mempool.