pub struct Wallet {
pub bzz_address: Option<String>,
pub native_address: Option<String>,
pub chequebook_contract_address: Option<String>,
pub bzz_balance: Option<BigInt>,
pub native_token_balance: Option<BigInt>,
pub chain_id: i64,
pub wallet_address: String,
}Expand description
GET /wallet response. Mirrors bee-go WalletResponse.
API-version note: Bee 2.7.2 / API 8.0.0 dropped the legacy
bzzAddress / nativeAddress fields and renamed chequebook to
chequebookContractAddress. We accept both spellings: the legacy
fields are optional, and chequebook_contract_address carries an
alias for the old chequebook key so older Bee builds still parse.
Fields§
§bzz_address: Option<String>Legacy BZZ address field (Bee ≤ 2.7.1). None on 2.7.2+.
native_address: Option<String>Legacy native-token address field (Bee ≤ 2.7.1). None on 2.7.2+.
chequebook_contract_address: Option<String>Chequebook contract address. Accepts the new
chequebookContractAddress key (Bee 2.7.2+) and falls back to
the legacy chequebook key.
bzz_balance: Option<BigInt>BZZ balance in PLUR.
native_token_balance: Option<BigInt>Native token balance in wei.
chain_id: i64On-chain chain ID.
wallet_address: StringWallet (operator) address.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Wallet
impl<'de> Deserialize<'de> for Wallet
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for Wallet
impl StructuralPartialEq for Wallet
Auto Trait Implementations§
impl Freeze for Wallet
impl RefUnwindSafe for Wallet
impl Send for Wallet
impl Sync for Wallet
impl Unpin for Wallet
impl UnsafeUnpin for Wallet
impl UnwindSafe for Wallet
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more