}
let witness = Witness::from_slice(&[builder.into_bytes(), Vec::new()]);
let txid = server.bitcoin_rpc_server.broadcast_tx(TransactionTemplate {
inputs: &[(2, 0, 0, witness), (2, 1, 0, Default::default())],
..Default::default()
});
server.mine_blocks(1);
let first_child_inscription_id = InscriptionId { txid, index: 0 };
let hundredth_child_inscription_id = InscriptionId { txid, index: 99 };
let hundred_first_child_inscription_id = InscriptionId { txid, index: 100 };
let hundred_eleventh_child_inscription_id = InscriptionId { txid, index: 110 };
let children_json =
server.get_json::<ChildrenJson>(format!("/r/children/{parent_inscription_id}"));
assert_eq!(children_json.ids.len(), 100);
assert_eq!(children_json.ids[0], first_child_inscription_id);
assert_eq!(children_json.ids[99], hundredth_child_inscription_id);
assert!(children_json.more);
assert_eq!(children_json.page, 0);
let children_json =
server.get_json::<ChildrenJson>(format!("/r/children/{parent_inscription_id}/1"));