pub struct ElementsRpc {
pub inner: Client,
pub auth: Auth,
pub url: String,
}Fields§
§inner: Client§auth: Auth§url: StringImplementations§
Source§impl ElementsRpc
impl ElementsRpc
pub fn new(url: String, auth: Auth) -> Result<ElementsRpc, RpcError>
pub fn get_new_address(&self, label: &str) -> Result<Address, RpcError>
pub fn send_to_address( &self, address: &Address, satoshi: u64, asset: Option<AssetId>, ) -> Result<Txid, RpcError>
pub fn rescan_blockchain( &self, start: Option<u64>, stop: Option<u64>, ) -> Result<(), RpcError>
pub fn generate_blocks(&self, block_num: u32) -> Result<(), RpcError>
pub fn sweep_initialfreecoins(&self) -> Result<(), RpcError>
Auto Trait Implementations§
impl !Freeze for ElementsRpc
impl !RefUnwindSafe for ElementsRpc
impl Send for ElementsRpc
impl Sync for ElementsRpc
impl Unpin for ElementsRpc
impl UnsafeUnpin for ElementsRpc
impl !UnwindSafe for ElementsRpc
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more