SHOWING: First 60
#74,421,871text#74,421,870text#74,421,869text#74,421,868text#74,421,867text#74,421,866text#74,421,865text#74,421,864text#74,421,863text#74,421,862text#71,636,829texttransfer100.pizza#71,332,237brc-20be the bitmap#56,281,897texttransfer2,000,000.ligo#55,511,765brc-20mint1,000,000.ligo#55,166,644brc-20mint1,000,000.ligo#55,166,643brc-20
let response = test_server.get("/blockcount");
assert_eq!(response.status(), StatusCode::OK);
assert_eq!(response.text().unwrap(), "2");
}
#[test]
fn block_height_endpoint() {
let test_server = TestServer::new();
let response = test_server.get("/blockheight");
assert_eq!(response.status(), StatusCode::OK);
assert_eq!(response.text().unwrap(), "0");
test_server.mine_blocks(2);
let response = test_server.get("/blockheight");
assert_eq!(response.status(), StatusCode::OK);
assert_eq!(response.text().unwrap(), "2");
}
#[test]
fn block_hash_endpoint() {
let test_server = TestServer::new();
let response = test_server.get("/blockhash");
assert_eq!(response.status(), StatusCode::OK);
assert_eq!(
response.text().unwrap(),
"000000000019d6689c085ae165831e934ff763ae46a2a6c172b3f1b60a8ce26f"
);
}
#[test]
fn block_hash_from_height_endpoint() {
let test_server = TestServer::new();
let response = test_server.get("/blockhash/0");#44,991,509text