8 releases

0.2.3 Mar 13, 2022
0.2.2 Mar 13, 2022
0.2.1 Nov 14, 2021
0.1.3 Oct 6, 2021
0.1.2 Sep 2, 2021

#19 in #submit

34 downloads per month

MIT/Apache

8KB
164 lines

txlog_client

rust implementation of a txlog client

Installation

Can be installed from cargo txlog_client

Usage

let url = "https://txlog.twetch.app".to_string();
let secret = "<jwt-goes-here>".to_string();
let txid = "b719054c19e96eba236b59056d7c66d64dac3a604a4d032594ae2b567e26a47d".to_string();

// create txlog client instance
let txlog = txlog_client::new(url, secret);

// fetch a rawtx
let rawtx = txlog.rawtx(txid).await.unwrap();

// get information about a transaction
let data = txlog.tx(txid).await.unwrap();

// submit a transaction
let submitted txlog.submit(rawtx, "based twetch").await.unwrap();

lib.rs:

txlog client implementation

provides functions to read and write bitcoin transactions from a txlog server

Dependencies

~4–8.5MB
~162K SLoC