Module grpc

Module grpc 

Source
Expand description

gRPC client implementation for the dYdX v4 protocol.

This module provides gRPC client functionality for interacting with the dYdX v4 protocol via the Cosmos SDK. It handles:

  • Transaction signing and broadcasting using cosmrs.
  • gRPC communication with validator nodes.
  • Protocol Buffer message encoding/decoding.
  • Cosmos SDK account management.

The client supports dYdX trading operations including:

  • Order placement, modification, and cancellation.
  • Transfer operations between subaccounts.
  • Subaccount management.
  • Transaction signing with secp256k1 keys.

§Architecture

dYdX v4 is built on the Cosmos SDK and uses gRPC for all state-changing operations (placing orders, transfers, etc.). The HTTP/REST API (Indexer) is read-only and used for querying market data and historical information.

Re-exports§

pub use builder::TxBuilder;
pub use client::DydxGrpcClient;
pub use client::Height;
pub use client::TxHash;
pub use order::DEFAULT_RUST_CLIENT_METADATA;
pub use order::OrderBuilder;
pub use order::OrderFlags;
pub use order::OrderGoodUntil;
pub use order::OrderMarketParams;
pub use order::SHORT_TERM_ORDER_MAXIMUM_LIFETIME;
pub use types::ChainId;
pub use wallet::Account;
pub use wallet::Subaccount;
pub use wallet::Wallet;

Modules§

builder
Transaction builder for dYdX v4 protocol.
client
gRPC client implementation for dYdX v4 protocol.
order
Order types and builders for dYdX v4.
types
Type definitions for dYdX v4 gRPC operations.
wallet
Wallet and account management for dYdX v4.