pub struct Node { /* private fields */ }Implementations§
Source§impl Node
impl Node
pub fn connect(config: NodeConfig) -> Result<Self, Error>
pub fn public(chain: Chain) -> Result<Self, Error>
pub fn with_public_sources( chain: Chain, endpoints: Vec<PublicEndpoint>, ) -> Result<Self, Error>
pub fn is_public(&self) -> bool
pub fn inclusion_evidence(&self) -> &'static str
pub fn chain(&self) -> Chain
pub fn tip_height(&self) -> Result<u64, Error>
pub fn block_hash(&self, height: u64) -> Result<BlockHash, Error>
pub fn block(&self, height: u64) -> Result<Block, Error>
pub fn confirmations(&self, txid: Txid) -> Result<u32, Error>
pub fn call(&self, method: &str, args: &[Value]) -> Result<Value, Error>
pub fn require_txindex(&self) -> Result<(), Error>
pub fn verify_network(&self) -> Result<(), Error>
pub fn tip(&self) -> Result<(u64, String), Error>
pub fn transaction(&self, txid: Txid) -> Result<Transaction, Error>
pub fn presence(&self, txid: Txid) -> Result<Presence, Error>
pub fn utxos(&self, signer: &impl IdentitySigner) -> Result<Vec<Utxo>, Error>
pub fn available_utxos( &self, signer: &impl IdentitySigner, ) -> Result<Vec<Utxo>, Error>
pub fn select_funding( &self, signer: &impl IdentitySigner, minimum: u64, ) -> Result<Funding, Error>
Auto Trait Implementations§
impl !Freeze for Node
impl !RefUnwindSafe for Node
impl !UnwindSafe for Node
impl Send for Node
impl Sync for Node
impl Unpin for Node
impl UnsafeUnpin for Node
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