def METHOD_NAME(nblocks: int, address: str) -> List:
    payload1 = json.dumps(
        {"jsonrpc": "2.0", "method": "generatetoaddress", "params": [nblocks, address],
         "id": 0})
    result = requests.post(BITCOIN_NODE_URI, data=payload1)
    result.raise_for_status()
    block_hashes = []
    for block_hash in result.json()['result']:
        block_hashes.append(block_hash)
        logger.debug("newly mined blockhash: %s", block_hash)
    logger.debug("mined %s new blocks (funds to address=%s). use the "
                 "'regtest_topup_account' method to fund your account", nblocks, address)
    return block_hashes