pub struct Wallet { /* private fields */ }Implementations
sourceimpl Wallet
impl Wallet
pub fn new_random() -> Self
pub fn address(&self) -> String
pub fn from_secret(secret: &str) -> Result<Self, Error>
pub fn set_sequence(&mut self, sequence: u32)
pub fn set_fee(&mut self, drops: BigInt)
pub fn set_max_fee(&mut self, drops: BigInt)
pub fn set_ledger_offset<T: TryInto<BigInt>>(
&mut self,
ledger_offset: u32
) -> Result<(), Error>
pub async fn fill_and_sign<T: Transport>(
&mut self,
tx: &mut Transaction,
xrpl: &XRPL<T>
) -> Result<String, Error>
pub async fn auto_fill_fields<T: Transport>(
&mut self,
tx: &mut Transaction,
xrpl: &XRPL<T>
) -> Result<(), Error>
pub fn sign(&self, tx: &mut Transaction) -> Result<String, Error>
pub fn public_key(&self) -> String
pub fn private_key(&self) -> String
pub fn sign_message<T: Serialize>(&self, message: T) -> Result<String, Error>
pub fn sign_payment_channel_claim(
&self,
channel: String,
amount: BigInt
) -> Result<String, Error>
Auto Trait Implementations
impl RefUnwindSafe for Wallet
impl Send for Wallet
impl Sync for Wallet
impl Unpin for Wallet
impl UnwindSafe for Wallet
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
fn vzip(self) -> V
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more