diff --git a/src/api.rs b/src/api.rs index 5578094916..45200115e6 100644 --- a/src/api.rs +++ b/src/api.rs @@ -19,6 +19,7 @@ pub struct Block { pub inscriptions: Vec, pub runes: Vec, pub target: BlockHash, + pub transactions: Vec, } impl Block { @@ -36,6 +37,7 @@ impl Block { best_height: best_height.0, inscriptions, runes, + transactions: block.txdata, } } } diff --git a/tests/json_api.rs b/tests/json_api.rs index 5cc7afa88b..1f209de852 100644 --- a/tests/json_api.rs +++ b/tests/json_api.rs @@ -396,6 +396,7 @@ fn get_block() { height: 0, inscriptions: Vec::new(), runes: Vec::new(), + transactions: block_json.transactions.clone(), } ); }